Keiyakusha
31st December 2015, 21:10
Hey guys. Can you please suggest me what commandline I should use. I am trying to figure out the right one but FFMPEG's documentation is kinda lacking.
Here is a sample commandline:
ffmpeg -i <input> -vcodec <any> -an <output>
<input> is a some kind of RGB source. Let's assume UTvideo rgb24 for simplicity
<any> is any YUV codec but for this case we assume it expects 4:2:2 8bit input
<output> Container format hardly matters here.
Question: how do I modify this commandline so that <input> will be converted to fullrange YUV 4:2:2 using bt709 coefficients before encoding it?
Also i need to be sure it is converted to fullrange, not converted to limited range and then expanded via postprocessing.
I know there is a -vf colormatrix switch, but it requires specifying input and output coefficients, which doesn't makes much sense for rgb input and I don't see a way to force fullrange conversion.
Follow-up question: What it would look like if the input is 4:4:4 YUV fullrange?
Here is a sample commandline:
ffmpeg -i <input> -vcodec <any> -an <output>
<input> is a some kind of RGB source. Let's assume UTvideo rgb24 for simplicity
<any> is any YUV codec but for this case we assume it expects 4:2:2 8bit input
<output> Container format hardly matters here.
Question: how do I modify this commandline so that <input> will be converted to fullrange YUV 4:2:2 using bt709 coefficients before encoding it?
Also i need to be sure it is converted to fullrange, not converted to limited range and then expanded via postprocessing.
I know there is a -vf colormatrix switch, but it requires specifying input and output coefficients, which doesn't makes much sense for rgb input and I don't see a way to force fullrange conversion.
Follow-up question: What it would look like if the input is 4:4:4 YUV fullrange?