Hi... I am trying the new Topaz Video AI and on some files I have this problem:
no ICC profile found, will write nclx/nclc colour info instead.
I have found the problem:
All the files that don't have these information written on the files have this problem:
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
How can I write these information on a MP4 / MKV file?
+ Reply to Thread
Results 1 to 6 of 6
ffmpeg -i input.mp4 -c copy -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv output.mp4
Thanks, I tried, but the only information added to the output are these:
FromStats_BitRate : 83057384
FromStats_Duration : 01:51:19.005000000
FromStats_FrameCount : 400340
FromStats_StreamSize : 69342595879
Don't those stats have to be added at the bitstream filter level when remuxing?
ffmpeg -i input.mp4 -c copy -bsf:v h264_metadata=colour_primaries=1:transfer_characteristics=1:matrix_coefficients=1:video_full_range_flag=0 output.mp4
After a little experimentation: 1 is BT.709 for color_primaries, transfer_characteristics, and matrix_coefficients. 0 is limited range for video_full_range_flag. Values may be different for different bsf's. Above command line modified to reflect this.
MediaInfo report from an unflagged h.264 video remuxed with the above command line:
Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709
Last edited by jagabo; 10th Jan 2023 at 12:38.
You're right, jagabo (as you usually are)
Your command line should work for avc.
Yes, thank you, your command line worked.