Opened 11 years ago

Closed 9 years ago

#2871 closed defect (fixed)

jpeg2000: artefacts with 4:2:0 (and 4:2:2)

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: j2k
Cc: Michael Niedermayer Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

it's probably the same bug, so I post 2 samples in the same ticket

seems to work ok with forced -vcodec libopenjpeg

4:2:0:

http://www.datafilehost.com/d/b152402a

4:2:2:

http://www.datafilehost.com/d/9490fa34

C:\>ffmpeg -i 422_layers1.avi out.avi
ffmpeg version N-55393-g3b2e99f Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug  8 2013 21:32:57 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
enable-libxvid --enable-zlib
  libavutil      52. 41.100 / 52. 41.100
  libavcodec     55. 24.100 / 55. 24.100
  libavformat    55. 13.102 / 55. 13.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 82.100 /  3. 82.100
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, avi, from '422_layers1.avi':
  Duration: 00:00:24.80, start: 0.000000, bitrate: 3048 kb/s
    Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0) (MJ2C / 0x
43324A4D), yuv422p, 352x244, 5 tbr, 5 tbn, 5 tbc
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf55.13.102
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 352x244, q=2-31, 200
 kb/s, 5 tbn, 5 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 -> mpeg4)
Press [q] to stop, [?] for help
frame=  113 fps=0.0 q=16.7 size=     691kB time=00:00:22.60 bitrate= 250.5kbits/
frame=  124 fps=0.0 q=15.2 Lsize=     741kB time=00:00:24.80 bitrate= 244.7kbits
/s
video:732kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.162327%

Change History (7)

comment:1 by ami_stuff, 11 years ago

also no problem with 4:4:4 (I can upload a sample if needed)

comment:2 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavcodec
Keywords: j2k added
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:4 by ami_stuff, 11 years ago

currently the output looks much better than in the past

comment:5 by Michael Niedermayer, 9 years ago

Cc: Michael Niedermayer added

can you retest (the files are not online anymore and ive fixed a few related issues)
the Speedway.mj2 file seems to decode correctly now unless i misunderstand how its supposed to look

comment:7 by Carl Eugen Hoyos, 9 years ago

Resolution: fixed
Status: openclosed

The samples are decoded bit-exactly now.
Fixed by Michael in 074159ed70acd379d94378b72a9202283e651ba0

Note: See TracTickets for help on using tickets.