how to split or cut a video using vlc in command line into 5 minute chucks? I know how to do it manually i just go to view->advanced controls and press the record to indicate the start time and press record again to indicate stop time now is there a way to do this in command line? if so can we also make vlc automatically cut/split the video every 5 minutes?
Asked
Active
Viewed 1.1k times
1 Answers
15
I'd recommend to use FFmpeg. See FFmpeg: How to split video efficiently?
The command to get the first 5 minutes would be:
ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:05:00 output1.avi

reto
- 9,995
- 5
- 53
- 52
-
@reto...thanks for the suggestion I tried it and it worked :) – Fabio Delarias Jul 05 '13 at 07:43
-
2for those without ffmpeg, avconv does the same thing, check before installing ffmpeg: `avconv -i inp.avi -vcodec copy -acodec copy -ss 01:00:00 -t 0:30:00 out.avi` – Kamyar Ghasemlou Oct 07 '15 at 10:35
-
Please, can you elaborate why you recommend using FFmpeg? Would you use it just for resizing/cutting or also for transcoding/compressing? Thank you – atripes Jun 07 '18 at 10:08
-
It does this particular job well and is freely available for various platforms. I do not have any personal experience for transcoding compression use cases, but I'm sure it'll do a fine job as well. – reto Jun 07 '18 at 14:42