[FFmpeg-user] is there any filter that can change frame rate but not duplicate same frame

Tobias Rapp t.rapp at noa-archive.com
Thu Jan 12 09:36:35 EET 2017


On 12.01.2017 07:33, qw wrote:
> I found two filters in ffmpeg, i.e. fps and framerate, which can
> change frame rate of incomming video. If original frame rate is less
> than target frame rate, what I want is use original frame rate
> instead of target one in this case. Does fps or framerate filter have
> the function? or is there any other filter that keeps original
> framerate and doesn't duplicate same frame, when target frame rate is
> larger than original one?

I have not tested it but AFAIK this should be possible using the 
"setpts" filter. Some example given in the documentation of the filter:

Apply slow motion effect:
setpts=2.0*PTS

The expression also allows to use if/else statements, so I guess it 
should match your use-case.

Regards,
Tobias



More information about the ffmpeg-user mailing list