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

FFmpeg trac at avcodec.org
Thu Jan 12 11:22:34 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:  git-master     |               Resolution:
             Keywords:  RGB YUV color  |               Blocked By:
             Blocking:                 |  Reproduced by developer:  1
Analyzed by developer:  0              |
---------------------------------------+-----------------------------------

Comment (by peter_b):

 I'm not sure what you're trying to tell me, but I've reproduced your
 conversion and attached the resulting RGB as PNG (not BMP, due to filesize
 issues):
 [[attachment:yuvj422jpg-N-36728-g794006f.png]]

 {{{
 $ ffmpeg -i yuvj422.jpg out/out.png

 ffmpeg version N-36728-g794006f Copyright (c) 2000-2012 the FFmpeg
 developers
   built on Jan 12 2012 09:16:04 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. 55.100 / 53. 55.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, image2, from 'yuvj422.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj422p, 720x576, 25 tbr, 25 tbn, 25 tbc
 Incompatible pixel format 'yuvj422p' for codec 'png', auto-selecting
 format 'rgb24'
 [buffer @ 0x9351e20] w:720 h:576 pixfmt:yuvj422p tb:1/1000000 sar:0/1
 sws_param:
 [buffersink @ 0x93487e0] auto-inserting filter 'auto-inserted scale 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0x9348d40] w:720 h:576 fmt:yuvj422p -> w:720 h:576 fmt:rgb24
 flags:0x4
 [swscaler @ 0x9357b60] No accelerated colorspace conversion found from
 yuv422p to rgb24.
 [swscaler @ 0x9367800] No accelerated colorspace conversion found from
 yuv422p to rgb24.
 [swscaler @ 0x936d2a0] No accelerated colorspace conversion found from
 yuv422p to rgb24.
 Output #0, image2, to 'out/out.png':
   Metadata:
     encoder         : Lavf53.29.100
     Stream #0:0: Video: png, rgb24, 720x576, q=2-31, 200 kb/s, 90k tbn, 25
 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg -> png)
 Press [q] to stop, [?] for help
 frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=
 0.0kbits/s
 video:5kB audio:0kB global headers:0kB muxing overhead -100.000000%

 }}}

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


More information about the FFmpeg-trac mailing list