[FFmpeg-user] Slow motion setpts equation

Gyan gyandoshi at gmail.com
Tue May 30 12:49:38 EEST 2017


On Tue, May 30, 2017 at 2:27 PM, Jonathan Girven <
jonathan.girven at trickbook.com> wrote:


> I wondered if it is also possible to do this with an equation in
> setpts (and might be easier to read)?
>

It's possible, not sure about whether it's easier to read:

setpts='if(eq(PTS,STARTPTS),PTS-STARTPTS,if(between(T,2,3)+between(T,6,7),(PTS-STARTPTS-PREV_INPTS)/0.5+PREV_OUTPTS,PTS-STARTPTS+PREV_OUTPTS-PREV_INPTS))'

The above expression applies slow motion to times 2 to 3s and then 6 to 7s.


More information about the ffmpeg-user mailing list