[FFmpeg-trac] #9813(undetermined:new): lutrgb not clipping all pixels

FFmpeg trac at avcodec.org
Wed Jun 15 18:39:27 EEST 2022


#9813: lutrgb not clipping all pixels
-------------------------------------+-------------------------------------
             Reporter:  chris319     |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by chris319):

 To answer the question of "why":

 EBU R 103 states the following:

 Signals shall not exceed the “Total Video Signal Range”

 "Total video signal range" is given as 1 - 254 in 8-bit video.

 https://tech.ebu.ch/docs/r/r103.pdf

 Per ITU-R BT.709-6, the 8-bit values of 0 and 255 are reserved for sync.

 https://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-
 BT.709-6-201506-I!!PDF-E.pdf

 A file which does not conform to these specs could fail to pass a
 broadcaster's QC.

 The following code leaves behind pixels outside the 8-bit range of 16 -
 235, including pixels of 0 and 255.

 ffmpeg  -y  -i  "D:\Videos\SonyAX53\C0059.mp4"  -pix_fmt rgb24  -c:v
 libx264 -qp 0  -vf
 "lutrgb=r='clip(val,16,235)':g='clip(val,16,235)':b='clip(val,16,235)'"
 -c:a pcm_s16be  RGB.mkv
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9813#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list