[FFmpeg-trac] #3785(swscale:closed): SWSCALE: in_range, in_color_matrix, out_range, out_color_matrix incorrect

FFmpeg trac at avcodec.org
Sat Apr 24 05:41:41 EEST 2021


#3785: SWSCALE: in_range, in_color_matrix, out_range, out_color_matrix incorrect
------------------------------------+-----------------------------------
             Reporter:  troy_s      |                    Owner:  (none)
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  swscale
              Version:  git-master  |               Resolution:  invalid
             Keywords:  range       |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Comment (by Balling):

 Replying to [comment:20 troy_s]:
 > You realize what luminance coefficients are and that they apply to every
 single RGB encoding colourspace?
 >
 > I give up. Clown fucking car.

 No, they only apply to YCbCr encoding. And it is luma (not luminance)
 coefficients, since it is after nonlinear transfer function. We are not
 encoding for russian SECAM IV that encoded on linear RGB, are we? LOL.

 Again, your commands are wrong. You should have added
 {{{
 -color_primaries 1 -color_trc 1 -colorspace 1
 }}}
  to mark it as bt.709/bt.709/bt.709 primaries/transfer/matrix. If you did
 not you 100% do not know what you are doing. Since this is 101 of encoding
 videos.

 You issue with full range may be a real one though. It is just hard to
 test.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/3785#comment:21>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list