[FFmpeg-devel] [PATCH] avfilter/vf_fps: extend support for expressions

James Almer jamrial at gmail.com
Sun Jun 13 19:44:44 EEST 2021


On 6/5/2021 12:52 PM, James Almer wrote:
> AV_OPT_TYPE_VIDEO_RATE AVOption types are parsed as expressions, but in a
> limited way. For example, name constants can only be parsed alone and not as
> part of a longer expression.
> 
> This change allows usage like
> 
> ffmpeg -i IN -vf fps="if(eq(source_fps\,film)\,ntsc_film\,source_fps)" OUT
> 
> Suggested-by: ffmpeg at fb.com
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>   libavfilter/vf_fps.c | 65 ++++++++++++++++++++++++++++++++++++++++----
>   1 file changed, 60 insertions(+), 5 deletions(-)

Will apply.


More information about the ffmpeg-devel mailing list