Opened 13 years ago

Closed 13 years ago

#150 closed defect (fixed)

jpeg2000 decoder regression with lowres option enabled ( libavfilter)

Reported by: ami_stuff Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://www.openjpeg.org/samples/Cevennes1.j2k

the output bmp files looks wrong

most likely libavfilter-caused regression

C:\>ffmpeg -vlowres 1 -i Cevennes1.jp2 out.bmp
FFmpeg version git-N-29181-ga304071, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on Apr 18 2011 21:24:03 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-memalign-hack --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --cross-prefix=i686-w6
4-mingw32- --target-os=mingw32 --arch=x86_32 --extra-cflags=-I/home/kyle/softwar
e/ffmpeg/external-libraries/win32/include --extra-ldflags=-L/home/kyle/software/
ffmpeg/external-libraries/win32/lib --pkg-config=pkg-config
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.120. 0 / 52.120. 0
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 79. 0 /  1. 79. 0
  libswscale    0. 13. 0 /  0. 13. 0
Input #0, image2, from 'Cevennes1.jp2':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: libopenjpeg, rgb24, 1296x972, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'rgb24' for codec 'bmp', auto-selecting format 'bgr24'

[buffer @ 01CF14C0] w:1296 h:972 pixfmt:rgb24
[ffsink @ 01CF16E0] auto-inserting filter 'auto-inserted scaler 0' between the f
ilter 'src' and the filter 'out'
[scale @ 01CF1980] w:1296 h:972 fmt:rgb24 -> w:1296 h:972 fmt:bgr24 flags:0x4
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf52.108.0
    Stream #0.0: Video: bmp, bgr24, 1296x972, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    1 fps=  0 q=0.0 Lsize=      -0kB time=0.04 bitrate=  -4.4kbits/s
video:3691kB audio:0kB global headers:0kB muxing overhead -100.000582%

Attachments (2)

out.bmp (922.7 KB ) - added by ami_stuff 13 years ago.
out_noavf.bmp (922.7 KB ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 by Michael Niedermayer, 13 years ago

Resolution: worksforme
Status: newclosed

Cant reproduce, maybe one of todays bugfixes fixed this too.
Please reopen if not

comment:2 by ami_stuff, 13 years ago

Resolution: worksforme
Status: closedreopened

sorry, the problem happens with at least vlowres 2, not 1

ffmpeg -vlowres 2 -i Cevennes1.j2k out.bmp

out.bmp = with libavfilter
out_nolavf.bmp = without libavfilter

by ami_stuff, 13 years ago

Attachment: out.bmp added

by ami_stuff, 13 years ago

Attachment: out_noavf.bmp added

comment:3 by Michael Niedermayer, 13 years ago

Reproduced by developer: set
Resolution: fixed
Status: reopenedclosed

Now it should be really fixed

Note: See TracTickets for help on using tickets.