command-linevlclibvlc

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?


Solution

  • 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