Here is the command line I've been using. Note that I am "cheating" by using lutrgb on a yuv file.
ffmpeg -y -i "D:\Videos\SonyAX53\C0060.MP4" -crf 0 -s 1280X720 -c:v huffyuv -pix_fmt yuv420p -s 1280x720 -r 59.94 -vf unsharp=luma_msize_x=7:luma_msize_y=7:luma_amount=-0.70,eq=brightness=0.00:saturation=1.00:gamma=0.81,lutyuv=y='clip(val*1.20,16,240)',lutrgb=r='clip(val,16,205)',lutrgb=g='clip(val,16,246)',lutrgb=b='clip(val,16,246)' -c:a copy processed.mkv Here is EBU r103. Ideally the y, r, g and b levels would range from 5 to 246 (8-bit video). In any event they MUST range from 1 - 254 as the values 0 and 255 are reserved for sync. https://tech.ebu.ch/docs/r/r103.pdf I have begun to try converting the y, u and v samples to rgb using pix_fmt rgb24 and have had some success but am having trouble making the rgb values meet the exact clip values I specify. lutrgb=r='clip(val,16,180)',lutrgb=g='clip(val,16,180)',lutrgb=b='clip(val,16,180)' I have set the clip values to 180 for testing. The source video is from a camcorder. -----Original Message----- From: Carl Eugen Hoyos <[email protected]> To: FFmpeg user questions <[email protected]> Sent: Wed, Oct 24, 2018 3:20 am Subject: Re: [FFmpeg-user] YUV RGB Video Levels 2018-10-22 23:54 GMT+02:00, Chris <[email protected]>: > I have a strange question. > > I have a YUV video file which must pass EBU r103. The RGB > components must be above 0 and less than 255. (I probably misunderstand but I would have assumed that it is technically impossible to output values that are not within these boundaries.) > How would I use ffmpeg to correct the levels of the R, G and > B components of YUV video? What did you do (command line and complete, uncut console output) to get output that you or EBu r103 did not like? Carl Eugen _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe". -----Original Message----- From: Carl Eugen Hoyos <[email protected]> To: FFmpeg user questions <[email protected]> Sent: Wed, Oct 24, 2018 3:20 am Subject: Re: [FFmpeg-user] YUV RGB Video Levels 2018-10-22 23:54 GMT+02:00, Chris <[email protected]>: > I have a strange question. > > I have a YUV video file which must pass EBU r103. The RGB > components must be above 0 and less than 255. (I probably misunderstand but I would have assumed that it is technically impossible to output values that are not within these boundaries.) > How would I use ffmpeg to correct the levels of the R, G and > B components of YUV video? What did you do (command line and complete, uncut console output) to get output that you or EBu r103 did not like? Carl Eugen _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
