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
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".