[FFmpeg-trac] #143(swscale:open): YUV video to RGB image export color conversion issue

FFmpeg trac at avcodec.org
Tue Jan 10 15:58:41 CET 2012


#143: YUV video to RGB image export color conversion issue
---------------------------------------+-----------------------------------
             Reporter:  peter_b        |                    Owner:
                 Type:  defect         |                   Status:  open
             Priority:  normal         |                Component:  swscale
              Version:  unspecified    |               Resolution:
             Keywords:  RGB YUV color  |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  0              |
---------------------------------------+-----------------------------------

Comment (by peter_b):

 I've checked [http://ffmpeg-users.933282.n4.nabble.com/YUV-video-to-RGB-
 image-export-color-conversion-issue-td3330185.html the mailing list
 archives], and the command line used was:

 {{{
 ffmpeg -vframes 4 -i 'testvideo_color_rectangles-YUV422P.avi' -pix_fmt
 rgb24 -f image2 '%03d.bmp'
 }}}

 I've tried right now, and the error still persists: The colors are still
 wrongly interpolated.

 == FFmpeg version: ==
 Git
 [http://git.videolan.org/?p=ffmpeg.git;a=commit;h=2169f971ad9b582cc3f1e6a1430aad44d64495d3
 2169f971ad9b582cc3f1e6a1430aad44d64495d3] (10 Jan 2012 06:15:18)
 == Uncut output: ==
 {{{
 ffmpeg version N-36659-g2169f97 Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan 10 2012 14:29:42 with gcc 4.4.5
   configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads
 --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid
 --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-
 encoder=png --enable-libdirac --enable-libschroedinger
   libavutil      51. 34.100 / 51. 34.100
   libavcodec     53. 54.100 / 53. 54.100
   libavformat    53. 29.100 / 53. 29.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 58.100 /  2. 58.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
   libpostproc    51.  2.100 / 51.  2.100
 Input #0, avi, from 'testvideo_color_rectangles-YUV422P.avi':
   Duration: 00:00:00.40, start: 0.000000, bitrate: 868 kb/s
     Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 10
 tbr, 10 tbn, 10 tbc
 Incompatible pixel format 'rgb24' for codec 'bmp', auto-selecting format
 'bgr24'
 [buffer @ 0xa336f80] w:720 h:576 pixfmt:yuv422p tb:1/1000000 sar:0/1
 sws_param:
 [buffersink @ 0xa3385c0] auto-inserting filter 'auto-inserted scale 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0xa330d80] w:720 h:576 fmt:yuv422p -> w:720 h:576 fmt:bgr24
 flags:0x4
 [swscaler @ 0xa3311c0] No accelerated colorspace conversion found from
 yuv422p to bgr24.
 [swscaler @ 0xa3463e0] No accelerated colorspace conversion found from
 yuv422p to bgr24.
 [swscaler @ 0xa34ae60] No accelerated colorspace conversion found from
 yuv422p to bgr24.
 Output #0, image2, to '%03d.bmp':
   Metadata:
     encoder         : Lavf53.29.100
     Stream #0:0: Video: bmp, bgr24, 720x576, q=2-31, 200 kb/s, 90k tbn, 10
 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (ffv1 -> bmp)
 Press [q] to stop, [?] for help
 frame=    4 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.40 bitrate=
 0.0kbits/s
 video:4860kB audio:0kB global headers:0kB muxing overhead -100.000000%
 }}}

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


More information about the FFmpeg-trac mailing list