I don't really understand this so I asked it to explain:
how does this fix the colorspace?
It replied:
The RGB to YUV conversion is done using a "sigmoidal" function, which basically means that it applies a non-linear transformation to the input video. This transformation is designed to "compress" the bright colors in the video, making them more manageable for SDR displays.
The colorlevels filter is also adjusting the black and white points of the video. This is done to ensure that the video can be displayed correctly on SDR displays, which have a limited color gamut.
Finally, the target_range and source_range options are used to ensure that the video is encoded in the correct range for SDR displays.
Comments
I don't know if the output is correct but I prompted openai:
and it returned: ffmpeg -i video.mp4 -vf format=pix_fmts=yuv420p -c:v libx264 -crf 18 -preset veryslow -c:a copy output.mp4This doesn't really fix the color space though so I tried enhanced the prompt
and it returned: I don't really understand this so I asked it to explain: It replied: