I would like to remove a small portion (around 10 seconds) of a long video (2 hours). How can I do it using FFMPEG?
Asked
Active
Viewed 1,058 times
1 Answers
5
ffmpeg -ss 01:30:00 -t 10 -i input.mp4 output.mp4
-ss 01:30:00offset time. In this example it is 1 hour 30 seconds. Could also be declared in seconds,-ss 5400.-t 10duration.-c copy(optional). If you add this as an output option (betweeninput.mp4andoutput.mp4) it will use stream copy mode. Like a copy and paste, so re-encoding is avoided. However,ffmpegcan only cut on key frames, so the offset may not be accurate.
See ffmpeg documentation for more info on -ss and -t.
llogan
- 12,348