3000 explained code solutions for 75 technologies

ffmpegHow to change video duration

In order to change duration, you can either change speed or cut video:

ffmpeg -i in.mp4 -ss 00:00:03 -t 00:00:05 out.mp4ctrl + c
-i in.mp4

input video file


set start time to start cutting at


start cutting at 3 seconds from video start


total length of resulting video


resulting video will be 5 seconds length


resulting video file