Example to cut video from 5min to 8min:
ffmpeg -ss 00:05:00.000 -i "filename.mp4" -vcodec copy -acodec copy -to 00:08:00.000 "filename-output.mp4"
-ss
start time, always put in before -i so its a lot faster (seek to this time at begining).-i "filename.mp4"
source file path.-vcodec copy
copy video codec-acodec copy
copy audio codec-to 00:08:00.000
End time. You can also use-t
option, so you can pass duration instead of end time."filename-output.mp4"
output file path.
Add new comment