VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. 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?
    Quote Quote  
  2. Try this
    ffmpeg -i input.mp4 -c copy -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv output.mp4
    Quote Quote  
  3. 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
    Quote Quote  
  4. Don't those stats have to be added at the bitstream filter level when remuxing?

    https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata

    something like:
    Code:
    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
    I don't know what values are correct. You'll have to look them up (or just experiment). And if it's not h.264 you'll have to specify the correct bitstream filter (hevc_metadata, prores-metadata, etc.).

    <edit>
    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:

    Code:
    Color range                              : Limited
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    </edit>
    Last edited by jagabo; 10th Jan 2023 at 11:38.
    Quote Quote  
  5. You're right, jagabo (as you usually are)
    Your command line should work for avc.
    Quote Quote  
  6. Yes, thank you, your command line worked.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!