0

I need to stretch the video to fit a specific time.

Is it possible with ffmpeg or do you guys know any other tool that could do the the work?

MrNobody
  • 69
  • 2
  • 9

1 Answers1

0

Slowing down video:

ffmpeg -i input.mkv -filter:v "setpts=2.0*PTS" output.mkv

Speeding up video:

ffmpeg -i input.mkv -r 16 -filter:v "setpts=0.25*PTS" output.mkv

Speeding up audio:

ffmpeg -i input.mkv -filter:a "atempo=2.0" -vn output.mkv

Here is the full tutorial

Dirk V
  • 1,373
  • 12
  • 24
  • thanks for answering! but in this way is gonna be hard to accomplish the exact duration! – MrNobody Oct 01 '20 at 12:22
  • 1
    @MrNobody See *Fit video into specific time* example in [Expand (extend) a video to an specific duration](https://stackoverflow.com/a/14782280/). – llogan Oct 01 '20 at 17:55