Opened 4 years ago

Closed 4 years ago

#1127 closed defect (fixed)

libopenjpeg: problem with grayscale mode

Reported by: ami_stuff Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: libopenjpeg regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I get a tif output in which left side is filled with decoded pic and the right side is empty.

Please test if this is really a regression and not a build's fault.

C:\>ffmpeg -i gray.jp2 out.tif
ffmpeg version N-38938-ge01f478 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 19 2012 23:16:52 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.101 /  2. 65.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'gray.jp2':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: j2k, gray16le, 320x200, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'gray16le' for codec 'tiff', auto-selecting format 'rg
b48le'
[buffer @ 021839C0] w:320 h:200 pixfmt:gray16le tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 02183C40] auto-inserting filter 'auto-inserted scale 0' between th
e filter 'src' and the filter 'out'
[scale @ 02183180] w:320 h:200 fmt:gray16le sar:0/1 -> w:320 h:200 fmt:rgb48le s
ar:0/1 flags:0x4
Output #0, image2, to 'out.tif':
  Metadata:
    encoder         : Lavf54.2.100
    Stream #0:0: Video: tiff, rgb48le, 320x200, q=2-31, 200 kb/s, 90k tbn, 25 tb
c
Stream mapping:
  Stream #0:0 -> #0:0 (libopenjpeg -> tiff)
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:379kB audio:0kB global headers:0kB muxing overhead -100.000000%

Attachments (1)

gray.jp2 (42.3 KB) - added by ami_stuff 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by ami_stuff

comment:1 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords libopenjpeg regression added
  • Priority changed from normal to important
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Attachment is actually 8bit gray.

comment:2 Changed 4 years ago by mbradshaw

I can confirm that this is not being decoded correctly (nor could an 8-bit gray video file of mine). image->comps[0].bpp is 0 in the decoder for some reason. However, I have not found why image->comps[0].bpp is 0 and will continue looking into this.

comment:3 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Fixed by Michael Bradshaw.

Note: See TracTickets for help on using tickets.