Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to split/cut video using vlc in command line after every N minute?

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?

like image 363
Fabio Delarias Avatar asked Oct 15 '25 04:10

Fabio Delarias


1 Answers

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
like image 57
reto Avatar answered Oct 18 '25 04:10

reto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!