[FFmpeg-devel] [PATCH] avfilter/vf_colorspace: use colorspace negotiation API

Nicolas Gaullier nicolas.gaullier at cji.paris
Thu Mar 28 11:50:09 EET 2024


>De : Nicolas Gaullier <nicolas.gaullier at cji.paris> 
>Envoyé : lundi 25 mars 2024 18:59
>
>Fixes a regression due to the fact that the colorspace filter does not use the new API introduced by 8c7934f73ab6c568acaa.
>The scale filter uses it since 45e09a30419cc2a7251e, and the setparams filter since 3bf80df3ccd32aed23f0.
>
>Example:
>ffmpeg -f lavfi -i testsrc -vf setparams=color_primaries=bt470bg:
>color_trc=smpte170m:colorspace=bt470bg,colorspace=bt709:range=tv,scale
>,showinfo -f null -frames 1 -
>
>Before:
>  color_range:unknown color_space:unknown color_primaries:bt709 ...
>After:
>  color_range:tv color_space:bt709 color_primaries:bt709 ...
>
>There is still an issue with the color_range when it is not specified:
>the documentation states the output defaults to the same value as the input, but it does not seem possible to implement currently.

Ping ? I think it should be fixed one way or another, and backported to 7.0...

Thanks
Nicolas


More information about the ffmpeg-devel mailing list