I'm looking for a tool for Linux which can segment a video file into multiple small .ts files.
I know one for Mac OS X called Media File Segmenter which is a simple command line tool - I'm looking for an equivalent tool for Linux.
|
|
|
Others have mentioned ffmpeg; it now has a nice, clean segment muxer. On Linux, instead of relying on whatever (outdated) version of To split a video into several one-minute segments, also generating an m3u8 playlist & copying all streams (so lossless, but not entirely accurate cutting):
For accurate splitting, the documentation recommends re-encoding and using
|
||||
|
|
if you want to cut video from H.264 you should use:
|
||||
|
|
|
Try ffmpeg. It's powerful & cross-platform. It may already exist in your linux distro. To copy 2 minutes of video after the first and convert from mpg to ts:
It's a good choice if you have lots of videos in essentially random formats. It's a 'swiss army knife' for video. If you are starting with mpeg, you could also try mpegtx, which includes a variety of mpeg tools including a splitter. Easier IMHO than ffmpeg to split. To split a file into 10 chunks each with a basename of 'chunk':
You may also be able to use VLC as a splitter, but I never have. There are topics discussing it, however. |
|||
|
|