I'm trying to understand the difference between Colorspace FFmpeg arguments:
- Normal option,
-colorspace bt709 - Number,
-colorspace 1 - Codec Params
-x264-params "colorspace=bt709" - Filter
-vf "colorspace=bt709"
The Colorspace categories are:
alliallcolorspacetransferprimariescolor rangecolor matrix
Question
When should each be used when encoding from raw, or transcoding/converting from one format to another? Such as mpg to mp4.
Do I need to specify the input colorspace or will FFmpeg auto-detect?
Problems
There is no -vp8-params, only -x264-params. Should I use normal options or -vf instead for vp8 and other codecs?
Errors
There are no Normal
-allor-colormatrixoptions, but there areall=andcolormatrix=for-x264-paramsand-vf.With Codec Params
-x264-params "colorspace=bt709", I getError parsing option 'colorspace = bt709'.
Howevercolorprim=bt709,transfer=bt709,colormatrix=bt709all work.
Resources
https://ffmpeg.org/ffmpeg-filters.html#colormatrix
https://ffmpeg.org/ffmpeg-filters.html#colorspace
https://trac.ffmpeg.org/wiki/colorspace