Changes between Version 10 and Version 11 of How to speed up / slow down a video


Ignore:
Timestamp:
Feb 10, 2015, 9:07:06 PM (4 years ago)
Author:
slhck
Comment:

add note about audio

Legend:

Unmodified
Added
Removed
Modified
  • How to speed up / slow down a video

    v10 v11  
    11= Speeding up/slowing down video =
    22
    3 You can change the speed of a video stream using the [http://ffmpeg.org/ffmpeg.html#asetpts_002c-setpts setpts] video filter.
     3You can change the speed of a video stream using the [http://ffmpeg.org/ffmpeg.html#asetpts_002c-setpts setpts] video filter. Note that in the following examples, the audio stream is not changed, so it should ideally be disabled with `-an`.
    44
    55To double the speed of the video, you can use:
     
    1212Note that this method will drop frames to achieve the desired speed.  You can avoid dropped frames by specifying a higher output frame rate than the input. For example, to go from an input of 4 FPS to one that is sped up to 4x that (16 FPS):
    1313{{{
    14 ffmpeg -i input.mkv -r 16 -filter:v "setpts=0.25*PTS" -an output.mkv
     14ffmpeg -i input.mkv -r 16 -filter:v "setpts=0.25*PTS" output.mkv
    1515}}}
    1616