This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Setting PAR and color matrix on container-level
#1
Hello again.

I have a workflow where I take SD videos, for example PAL 16:15, bt470bg/bt470bg/bt709, and I deinterlace + bob using Hybrid. However, the output file, no matter what container or encoder, will not contain the PAR or color matrix/curve hints. This causes players to stretch the video and/or display it using wrong colors. I found a work around - h264 and h265 encoders in Hybrid allow you to override these hints, and that gets picked up by players at the end. But for every other encoder type, e.g. UT-VIDEO, there is no such option. Currently I need a post-processing step like this:
ffmpeg -i hybrid.mkv -colorspace bt470bg -color_primaries bt470bg  -color_trc bt709 -aspect 4:3 -c copy -o fixed.mkv
This will merely adjust the hints without touching the video or audio streams, but obviously takes a long time as it needs to copy the whole file.

I was wondering is there any way to do this using Hybrid?

Thanks!

I actually found a solution for MKV files. In Config > Containers, add the following "Mkvmerge command line addition":
--aspect-ratio 0:4/3 --colour-matrix-coefficients 0:5 --colour-transfer-characteristics 0:1 --colour-primaries 0:5

However, I don't see a "command line addition" option for MP4Box or FFmpeg in general. Any chance to add them? Having that would allow one to customize the output beyond the options present in Hybrid.

Thanks!
Reply


Messages In This Thread
Setting PAR and color matrix on container-level - by potejan - 09.07.2022, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)