XDCAM MPEG-2 Encoder (Limited Range is not Limited)
Posted: Mon Mar 19, 2018 9:36 pm
Hi,
in the XDCAM MPEG-2 encoder, the output is flagged as "Limited" range (16-235) 0 - 0.7V, even though it's not.
Let me explain this.
If the input file has illegal values (out of range values), the file is encoded as it is and just flagged as "limited".
So, if it has out of range values, there will also be out of range values in the encoded file!
This is an issue for broadcast companies, 'cause they need a real TV Range file,
that's why I strongly suggest you to add a clipping option in the XDCAM node.
Clipping can be achieved via Avisynth or ffmpeg itself:
Avisynth:
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
ffmpeg:
ffmpeg -i "sample.mov" -vf lut=y=clipval:u=clipval:v=clipval
This is an example of a waveform with out of range values (Full Range):
This is an example of a waveform after clipping (Limited Range - Tv Range):
in the XDCAM MPEG-2 encoder, the output is flagged as "Limited" range (16-235) 0 - 0.7V, even though it's not.
Let me explain this.
If the input file has illegal values (out of range values), the file is encoded as it is and just flagged as "limited".
So, if it has out of range values, there will also be out of range values in the encoded file!
This is an issue for broadcast companies, 'cause they need a real TV Range file,
that's why I strongly suggest you to add a clipping option in the XDCAM node.
Clipping can be achieved via Avisynth or ffmpeg itself:
Avisynth:
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)
ffmpeg:
ffmpeg -i "sample.mov" -vf lut=y=clipval:u=clipval:v=clipval
This is an example of a waveform with out of range values (Full Range):
This is an example of a waveform after clipping (Limited Range - Tv Range):