[Libav-user] Assign filter output to codec context

Daniel Stankewitz daniel at voukoder.org
Sun Oct 27 19:20:02 EET 2024


Hello,

One quick question:

Is there a way to fill the properties in the  lower three lines with values from the filter chain (like in the upper 2 lines)?

Or maybe there is a function that copies all properties from the buffersink filter to the codec context?

codecCtx->color_range = av_buffersink_get_color_range(outputCtx);
codecCtx->colorspace = av_buffersink_get_colorspace(outputCtx);
codecCtx->field_order = AV_FIELD_PROGRESSIVE; // TODO
codecCtx->color_primaries = AVCOL_PRI_BT709; // TODO
codecCtx->color_trc = AVCOL_TRC_BT709; // TODO

https://ffmpeg.org/doxygen/trunk/group__lavfi__buffersink.html

Thanks,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20241027/ecc57259/attachment.htm>


More information about the Libav-user mailing list