[FFmpeg-trac] #979(swscale:open): Abnormal colorspace conversion of BGR -> YUV comparing the RGB variant

FFmpeg trac at avcodec.org
Fri Aug 23 00:31:44 EEST 2024


#979: Abnormal colorspace conversion of BGR -> YUV comparing the RGB variant
------------------------------------+-----------------------------------
             Reporter:  natt        |                    Owner:  (none)
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  swscale
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Comment (by Balling):

 >-sws_flags +accurate_rnd

 sws_flags does not work at all, stop inserting it everywhere, it has no
 affect. -vf scale=flags=accurate_rnd is not the real fix for this, even if
 it works fine. The better fix is conversion to rgb24 first if you go from
 bgr to yuv420p. The reason being accurate_rnd has effect on rgb to yuv420p
 too.


 Also bmp is very much affected, since it uses bgr24.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/979#comment:17>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list