<p>I wrote a Python wrapper around FFMpeg that allows to do video splitting into equal chunks and since then other folks in the community enhanced it to support splitting at arbitrary points in time (using manifest files), and splitting by target file size, number of chunks etc. Here it is: <a href="https://github.com/c0decracker/video-splitter" rel="nofollow noreferrer">https://github.com/c0decracker/video-splitter</a></p>

CC BY-SA 4.0
2018-10-06T08:42:23.510Z
The segment muxer can already do this.
Gyan
CC BY-SA 4.0
2018-10-06T00:30:40.840Z
2018-10-06T00:30:40.840Z
Alex N.
<p>If you want to cut a sequence out of a .mov file with an alpha channel / transparency that should be preserved, use:</p>

<pre><code>ffmpeg -i x.mov -ss 00:05:00 -t 00:01:00 -vcodec qtrle y.mov
</code></pre>

CC BY-SA 3.0
2017-10-13T11:55:59.297Z
2017-10-13T11:55:59.297Z
Wu Wei
<p><a href="http://howto-pages.org/ffmpeg/#basicvideo" rel="noreferrer">ffmpeg</a> is the obvious choice. </p>

<pre><code>ffmpeg -i x.mov -ss 00:05:00 -t 00:01:00 y.mov
</code></pre>

<p>will split out a segment of the movie 1 minute long from minute 5.</p>

<p>I've not had much luck with lip-sync when doing this. I think there a problems with both decoding and re-encoding the GOP structure and the equivalent AAC or MPEG1 audio structures; but the underlying issue must be that the audio and video frame rates are not linked, e.g. 48 kHz for the audio and 29.97 fps.</p>

CC BY-SA 3.0
2012-05-23T21:28:00.737Z
2012-05-23T21:28:00.737Z
Julian
<p>I have an hour-long video that I want to split into individual clips at arbitrary timepoints. I could do this by hand in iMovie, or even borrow a machine with Final Cut, but there are upwards of thirty separate clips, so doing it manually strikes me as time-consuming and error-prone.</p>

<p>(It's a sequence of recordings for a language textbook, but it's all one file, and it's unwieldy not to be able to separately view, repeat, etc. the chapter-by-chapter clips. Currently it's an H.264 MPEG-4 but I'm not adverse to converting it.)</p>

<p>I know all the timepoints, and I'd like to feed a list of them to something, or build a script around the list, to produce the split clips without further human intervention. Linux would be okay but Mac OS would be ideal; Windows isn't really an option.</p>

<p>Suggestions?</p>

CC BY-SA 3.0
2012-05-17T19:24:38.493Z
30 cuts of clips is really not much for editors. I would simply put them in my Vegas timeline and use the 'split' feature as required or put them in a Premiere CS5.5 timeline and use the 'razor'. Do you want these as separate renders too or just have time points that have perhaps a title separating them? It's just not clear to me how you see the final product?
filzilla
CC BY-SA 3.0
2012-05-18T12:04:34.733Z
[Cross posted from Super User](http://superuser.com/q/425461/48078). Please don't cross post questions over the network — there should be only one site for them, and if they don't receive too much attention they can always be migrated.
slhck
<video><editing>
Command-line tool to split video at timepoints?
David Moles
# Command-line tool to split video at timepoints?

(Asked by: username_0 on 2012-05-16)

I have an hour-long video that I want to split into individual clips at arbitrary timepoints. I could do this by hand in iMovie, or even borrow a machine with Final Cut, but there are upwards of thirty separate clips, so doing it manually strikes me as time-consuming and error-prone.

(It's a sequence of recordings for a language textbook, but it's all one file, and it's unwieldy not to be able to separately view, repeat, etc. the chapter-by-chapter clips. Currently it's an H.264 MPEG-4 but I'm not adverse to converting it.)

I know all the timepoints, and I'd like to feed a list of them to something, or build a script around the list, to produce the split clips without further human intervention. Linux would be okay but Mac OS would be ideal; Windows isn't really an option.

Suggestions?

**Tags:** video, editing

> **Comments:**
> **username_1**: 30 cuts of clips is really not much for editors. I would simply put them in my Vegas timeline and use the 'split' feature as required or put them in a Premiere CS5.5 timeline and use the 'razor'. Do you want these as separate renders too or just have time points that have perhaps a title separating them? It's just not clear to me how you see the final product?  
> **username_2**: [Cross posted from Super User](http://superuser.com/q/425461/48078). Please don't cross post questions over the network — there should be only one site for them, and if they don't receive too much attention they can always be migrated.  

---

## 3 answers

### Answer by username_6 on 2012-05-23. Score: 5 | Accepted answer

ffmpeg is the obvious choice. 
ffmpeg -i x.mov -ss 00:05:00 -t 00:01:00 y.mov

will split out a segment of the movie 1 minute long from minute 5.
I've not had much luck with lip-sync when doing this. I think there a problems with both decoding and re-encoding the GOP structure and the equivalent AAC or MPEG1 audio structures; but the underlying issue must be that the audio and video frame rates are not linked, e.g. 48 kHz for the audio and 29.97 fps.


---

### Answer by username_3 on 2018-10-06. Score: 3

I wrote a Python wrapper around FFMpeg that allows to do video splitting into equal chunks and since then other folks in the community enhanced it to support splitting at arbitrary points in time (using manifest files), and splitting by target file size, number of chunks etc. Here it is: <https://github.com/c0decracker/video-splitter>

> **Comments:**
> **username_4**: The segment muxer can already do this.  

---

### Answer by username_5 on 2017-10-13. Score: 0

If you want to cut a sequence out of a .mov file with an alpha channel / transparency that should be preserved, use:
ffmpeg -i x.mov -ss 00:05:00 -t 00:01:00 -vcodec qtrle y.mov


---

