user13870: I have an MP4 format video.
I was wondering if there is a good tool to take a video, and create n number of new videos, by just setting a bunch of cut points.
Obviously most video editors will be capable of cutting a video and exporting. But I am wondering if there are any tools who are exceptional fast at this.
For example, and ideal situation would be like..
take a 2 min video and say..
set split @ 30 seconds
set split @ 60 seconds
set split @ 90 seconds
and then just hit export function that spits out 4 new videos orig_name_[number].mp4.
In an even MORE ideal world this could be done with a command line program and a batch file :)
Thanks for any feedback you can provide!

user1871: You can use ffmpeg, a command-line tool to do this.
If you want equal-sized splits, use 
ffmpeg -i input -segment_time 30 -f segment -force_key_frames expr:gte(t,n_forced*30) -reset_timestamps 1 a%02d.mp4

If you need to split at irregular intervals, use
ffmpeg -i input -crf 18 -segment_times 30,60,90 -f segment -force_key_frames 30,60,90 -reset_timestamps 1 files%01d.mp4


13870: <p>I have an MP4 format video.</p>

<p>I was wondering if there is a good tool to take a video, and create n number of new videos, by just setting a bunch of cut points.</p>

<p>Obviously most video editors will be capable of cutting a video and exporting. But I am wondering if there are any tools who are exceptional fast at this.</p>

<p>For example, and ideal situation would be like..</p>

<p>take a 2 min video and say..</p>

<p>set split @ 30 seconds
set split @ 60 seconds
set split @ 90 seconds</p>

<p>and then just hit export function that spits out 4 new videos orig_name_[number].mp4.</p>

<p>In an even MORE ideal world this could be done with a command line program and a batch file :)</p>

<p>Thanks for any feedback you can provide!</p>
 1871: <p>You can use <a href="https://ffmpeg.org/download.html" rel="nofollow">ffmpeg</a>, a command-line tool to do this.</p>

<p>If you want equal-sized splits, use </p>

<pre><code>ffmpeg -i input -segment_time 30 -f segment -force_key_frames expr:gte(t,n_forced*30) -reset_timestamps 1 a%02d.mp4
</code></pre>

<p>If you need to split at irregular intervals, use</p>

<pre><code>ffmpeg -i input -crf 18 -segment_times 30,60,90 -f segment -force_key_frames 30,60,90 -reset_timestamps 1 files%01d.mp4
</code></pre>
