Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 6499  / 2 Years ago, wed, february 16, 2022, 7:01:52

Good day people,



I was wondering how to encode a video from a speed of 1 x to a one of 5 x, using ffmpeg.



Thanks in advance for any suggestion.


More From » 13.04

 Answers
6

Speeding up/slowing down video



You can change the speed of your video using ​the setpts video filter. The "old way" of creating timelapse or still frame was to first split up a video into individual frames, (for instance, as jpg's) then delete some and recombine the frames. Using the setpts filter is the new way and is faster and possibly less lossy.



To speed up your video from 1x to 5x, you can type:



ffmpeg -i input.mkv -vf "setpts=0.2*PTS" -an output.mkv


Source: FFmpeg - how to speed up / slow down a video


[#26680] Friday, February 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ovierman

Total Points: 445
Total Questions: 108
Total Answers: 111

Location: Libya
Member since Fri, Oct 30, 2020
4 Years ago
;