[FFmpeg-trac] #538(avcodec:reopened): J2K files with 444p are incorrectly written

FFmpeg trac at avcodec.org
Sat Aug 24 12:36:35 CEST 2013


#538: J2K files with 444p are incorrectly written
------------------------------------+------------------------------------
             Reporter:  cehoyos     |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  j2k         |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by cehoyos):

 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 I don't think it can be expected behaviour if an encoder is fed with
 yuv444p and encodes rgb24.
 {{{
 $ ffmpeg -i tests/lena.pnm -pix_fmt yuv444p -strict -2 out.jp2
 ffmpeg version N-55749-g6067186 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Aug 24 2013 11:53:22 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 42.100 / 52. 42.100
   libavcodec     55. 29.100 / 55. 29.100
   libavformat    55. 14.102 / 55. 14.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.102 /  3. 82.102
   libswscale      2.  5.100 /  2.  5.100
   libswresample   0. 17.103 /  0. 17.103
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, image2, from 'tests/lena.pnm':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: ppm, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
 Output #0, image2, to 'out.jp2':
   Metadata:
     encoder         : Lavf55.14.102
     Stream #0:0: Video: jpeg2000, yuv444p, 256x256, q=2-31, 200 kb/s, 90k
 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (ppm -> jpeg2000)
 Press [q] to stop, [?] for help
 frame=    1 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
 video:76kB audio:0kB subtitle:0 global headers:0kB muxing overhead
 -100.028340%
 }}}
 {{{
 $ ffmpeg -i out.jp2
 ffmpeg version N-55749-g6067186 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Aug 24 2013 11:53:22 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl --disable-indev=jack
   libavutil      52. 42.100 / 52. 42.100
   libavcodec     55. 29.100 / 55. 29.100
   libavformat    55. 14.102 / 55. 14.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.102 /  3. 82.102
   libswscale      2.  5.100 /  2.  5.100
   libswresample   0. 17.103 /  0. 17.103
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, image2, from 'out.jp2':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0),
 rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
 At least one output file must be specified
 }}}
 {{{
 $ ffmpeg -i out.jp2
 ffmpeg version N-55750-gbbe0045 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Aug 24 2013 12:08:27 with gcc 4.7 (SUSE Linux)
   configuration: --enable-libopenjpeg --disable-decoder=jpeg2000
   libavutil      52. 42.100 / 52. 42.100
   libavcodec     55. 29.100 / 55. 29.100
   libavformat    55. 14.102 / 55. 14.102
   libavdevice    55.  3.100 / 55.  3.100
   libavfilter     3. 82.102 /  3. 82.102
   libswscale      2.  5.100 /  2.  5.100
   libswresample   0. 17.103 /  0. 17.103
 Input #0, image2, from 'out.jp2':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: jpeg2000, rgb24, 256x256, 25 tbr, 25 tbn, 25 tbc
 At least one output file must be specified
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/538#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list