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

FFmpeg trac at avcodec.org
Sun Feb 5 06:26:56 CET 2012


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

Comment (by natt):

 Replying to [comment:1 richardpl]:
 > Whatever issue you are reporting I can not reproduce it.
 > rgb24(->bgr24)->yuv is fine here

 The two conversions should be identical, right?  Since rgb24<->bgr24 is
 lossless, bgr->rgb->yuv should produce the same output as bgr->yuv.  If it
 doesn't, it's not working right.

 ffmpeg -f rawvideo -video_size 256x256 -pix_fmt bgr24 -i testin.raw
 -sws_flags lanczos -f rawvideo -pix_fmt yuv420p md5:
 0ba2a7494930baaa64869462d54b85cc


 ffmpeg -f rawvideo -video_size 256x256 -pix_fmt bgr24 -i testin.raw
 -filter format=rgb24 -sws_flags lanczos -f rawvideo -pix_fmt yuv420p md5:
 d5bd2d94675b67d23eb2661ca462966d

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


More information about the FFmpeg-trac mailing list