[FFmpeg-trac] #979(undetermined:open): Unexpected Color Conversion (bgr->yuv vs rgb->yuv)

FFmpeg trac at avcodec.org
Sun Feb 5 16:46:25 CET 2012


#979: Unexpected Color Conversion (bgr->yuv vs rgb->yuv)
-------------------------------------+-------------------------------------
             Reporter:  natt         |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * status:  new => open
 * version:  unspecified => git-master


Comment:

 If there is an issue, is is reproducible with this command:
 {{{
 $ ./ffmpeg -i tests/lena.pnm -pix_fmt yuv420p -f crc - -vf format=bgr24
 -pix_fmt yuv420p -f crc -
 ffmpeg version N-37568-g8162c6f Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Feb  5 2012 16:31:32 with gcc 4.5.3
   configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
   libavutil      51. 37.100 / 51. 37.100
   libavcodec     54.  0.102 / 54.  0.102
   libavformat    54.  0.100 / 54.  0.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 61.100 /  2. 61.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.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
 [buffer @ 0x8dd20a0] w:256 h:256 pixfmt:rgb24 tb:1/1000000 sar:0/1
 sws_param:
 [buffersink @ 0x8dd2360] auto-inserting filter 'auto-inserted scale 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0x8dd28e0] w:256 h:256 fmt:rgb24 -> w:256 h:256 fmt:yuv420p
 flags:0x4
 [buffer @ 0x8de20e0] w:256 h:256 pixfmt:rgb24 tb:1/1000000 sar:0/1
 sws_param:
 [buffersink @ 0x8de1780] auto-inserting filter 'auto-inserted scale 1'
 between the filter 'Parsed_format_0' and the filter 'out'
 [format @ 0x8de0a80] auto-inserting filter 'auto-inserted scale 2' between
 the filter 'src' and the filter 'Parsed_format_0'
 [scale @ 0x8df3960] w:256 h:256 fmt:rgb24 -> w:256 h:256 fmt:bgr24
 flags:0x4
 [scale @ 0x8de0b40] w:256 h:256 fmt:bgr24 -> w:256 h:256 fmt:yuv420p
 flags:0x4
 Output #0, crc, to 'pipe:':
   Metadata:
     encoder         : Lavf54.0.100
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256,
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
 Output #1, crc, to 'pipe:':
   Metadata:
     encoder         : Lavf54.0.100
     Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 256x256,
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (ppm -> rawvideo)
   Stream #0:0 -> #1:0 (ppm -> rawvideo)
 Press [q] to stop, [?] for help
 CRC=0x7db3d981
 CRC=0x74eb2924
 frame=    1 fps=  0 q=0.0 Lq=0.0 size=       0kB time=00:00:00.04 bitrate=
 3.0kbits/s
 video:192kB audio:0kB global headers:0kB muxing overhead -99.992371%
 }}}

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


More information about the FFmpeg-trac mailing list