Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I split a video every X minutes using iMovie or some other Mac software, outputting the split videos to a folder, named by section (e.g. "video1of4", "video2of4")?

share|improve this question

QuickTime Pro does a great job using the Trim feature. It's intuitive too.

share|improve this answer

Split a video with VLC from the command line

Open Terminal and run the following script:

It determines the length of the original file and splits it into 2 min intervals.

You can change this by changing the $interval variable, which is in seconds.

You will also need to change the $filename variable to whatever file you want to split.

duration=`ffprobe -show_format $filename | sed -n '/duration/s/.*=//p'`
while [ $duration -ge 0 ]; do
    /Applications/ -Idummy $filename --start-time $start --stop-time $stop --sout=#file{dst=$n-out-$filename} vlc://quit
    let start=stop
    let stop=stop+interval
    let duration=duration-interval
    echo "Number of seconds left to process: $duration"
    let n=n+1
share|improve this answer
This script has been tested with vlc 1.1.3 and 2.2.1 – Deesbek Nov 15 '13 at 16:17

You can also use -f segment with ffmpeg:

ffmpeg -i input.mp4 -c copy -f segment -segment_time 300 -reset_timestamps 1 %03d.mp4

-c copy disables re-encoding video and audio, like -vcodec copy -acodec copy. -reset_timestamps 1 makes each segment start with a near-zero timestamp.

share|improve this answer

VLC has an "Exporting Wizard" that will let you subset. VLC also has a CLI interface so you should be able to automate it.

share|improve this answer
More content, such as actual instructions of the GUI and/or CLI interface, would be grand. – Jason Salaz Jul 22 '11 at 2:48

I used to do splits using ffmpeg on Fedora . I don't have the exact command handy though.

You could install ffmpeg and mplayer tools on OS X .

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.