Opened 20 months ago

Last modified 20 months ago

#4827 new defect

Many warnings shown when decoding j2k

Reported by: cehoyos Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: j2k
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

http://thread.gmane.org/gmane.comp.video.ffmpeg.user/58666
A user uploaded a j2k sequence that decodes fine with current FFmpeg afaict, but many warnings are shown for every frame.

$ ffmpeg -i frm_000127.j2c out.png
ffmpeg version N-74835-gbd6610c Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[jpeg2000 @ 0x26de900] End mismatch 1
    Last message repeated 4 times
[jpeg2000 @ 0x26de900] End mismatch 2
    Last message repeated 1 times
[jpeg2000 @ 0x26de900] End mismatch 1
    Last message repeated 28 times
[jpeg2000 @ 0x26de900] End mismatch 2
[jpeg2000 @ 0x26de900] End mismatch 1
    Last message repeated 19 times
Input #0, j2k_pipe, from 'frm_000127.j2c':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 2048x858, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.png':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: png, rgb48be, 2048x858, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.60.100 png
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> png (native))
Press [q] to stop, [?] for help
[jpeg2000 @ 0x2976ec0] End mismatch 1
    Last message repeated 4 times
[jpeg2000 @ 0x2976ec0] End mismatch 2
    Last message repeated 1 times
[jpeg2000 @ 0x2976ec0] End mismatch 1
    Last message repeated 28 times
[jpeg2000 @ 0x2976ec0] End mismatch 2
[jpeg2000 @ 0x2976ec0] End mismatch 1
    Last message repeated 19 times
frame=    1 fps=1.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:5354kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Attachments (1)

frm_000127.j2c (224.9 KB) - added by cehoyos 20 months ago.

Download all attachments as: .zip

Change History (3)

Changed 20 months ago by cehoyos

comment:1 Changed 20 months ago by cehoyos

  • Priority changed from minor to normal
  • Summary changed from Many warnings shown when decoding j2k to Many warnings and artefacts shown when decoding j2k

I originally thought that the artefacts on the left border are intended, they are definitely wrong.

comment:2 Changed 20 months ago by cehoyos

  • Priority changed from normal to minor
  • Summary changed from Many warnings and artefacts shown when decoding j2k to Many warnings shown when decoding j2k

The artefacts are produced by the colourspace conversion as can be shown for example with the following command line, the output shows no artefacts:

$ ffmpeg -i frm_000127.j2c -vcodec libopenjpeg out.j2k
ffmpeg version N-74866-g0cdba4a Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --enable-libopenjpeg
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[jpeg2000 @ 0x2107960] End mismatch 1
    Last message repeated 4 times
[jpeg2000 @ 0x2107960] End mismatch 2
    Last message repeated 1 times
[jpeg2000 @ 0x2107960] End mismatch 1
    Last message repeated 28 times
[jpeg2000 @ 0x2107960] End mismatch 2
[jpeg2000 @ 0x2107960] End mismatch 1
    Last message repeated 19 times
Input #0, j2k_pipe, from 'frm_000127.j2c':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: jpeg2000 (JPEG 2000 digital cinema 2K), xyz12le, 2048x858, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'out.j2k':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: jpeg2000 (libopenjpeg), xyz12le, 2048x858, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.60.100 libopenjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (jpeg2000 (native) -> jpeg2000 (libopenjpeg))
Press [q] to stop, [?] for help
[jpeg2000 @ 0xd645ac0] End mismatch 1
    Last message repeated 4 times
[jpeg2000 @ 0xd645ac0] End mismatch 2
    Last message repeated 1 times
[jpeg2000 @ 0xd645ac0] End mismatch 1
    Last message repeated 28 times
[jpeg2000 @ 0xd645ac0] End mismatch 2
[jpeg2000 @ 0xd645ac0] End mismatch 1
    Last message repeated 19 times
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:1639kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

I created ticket #4829 for the libswscale issue.

Note: See TracTickets for help on using tickets.