User Tools

Site Tools


ffmpeg:video:speed_up

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ffmpeg:video:speed_up [2025/01/12 13:38] – created peterffmpeg:video:speed_up [2025/05/27 09:38] (current) peter
Line 12: Line 12:
  
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Use a complex filter to speed up video =====
 +
 +<code bash>
 +ffmpeg -i input.mkv -filter_complex "[0:v]setpts=<1/x>*PTS[v];[0:a]atempo=<x>[a]" -map "[v]" -map "[a]" output.mkv
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  w/ audio, where <x> is the speedup ratio.
 +</WRAP>
 +
 +----
 +
 +For example, to speed up the video by 1.5 times the original speed, use:
 +
 +<code bash>
 +ffmpeg -i input.mkv -filter_complex "[0:v]setpts=0.6667*PTS[v];[0:a]atempo=1.5[a]" -map "[v]" -map "[a]" output.mkv
 +</code>
 +
 +----
  
ffmpeg/video/speed_up.txt · Last modified: 2025/05/27 09:38 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki