View Full Version : split a video to many at once?
hamedham
21st December 2016, 10:04
hi
is there any way to split a long video file into many parts with time control( index split times)?
manolito
21st December 2016, 10:30
If your video is in an MKV container, then MKVMerge(GUI) has some very powerful options for splitting long videos. It can split by size, duration, time stamps and more.
And if your video is in a different container, it should be easy to repack it into an MKV container first.
Cheers
manolito
hamedham
21st December 2016, 10:46
thanks
Is this can split video at once?
i dont want do spliting 1 by 1.
i need somthing index video split times (i manualy set times) and split at once to 1000 or 10000 parts of video.
manolito
21st December 2016, 12:57
Here is the relevant part from the MKVMerge help file (I am using an older version). I think it will do what you need...
Splitting after specific timecodes.
Syntax: --split timecodes:A[,B[,C...]]
Example: --split timecodes:00:45:00.000,01:20:00.250,6300s
The parameters A, B, C etc must all have the same format as the ones used for the duration (see
above). The list of timecodes is separated by commas. After the input stream has reached the current
split point's timecode a new file is created. Then the next split point given in this list is used.
The 'timecodes:' prefix must not be omitted.
Keeping specific parts by specifying timecode ranges while discarding others.
Syntax: --split parts:start1-end1[,[+]start2-end2[,[+]start3-end3...]]
Examples:
--split parts:00:01:20-00:02:45,00:05:50-00:10:30
--split parts:00:01:20-00:02:45,+00:05:50-00:10:30
--split parts:-00:02:45,00:05:50-
The parts mode tells mkvmerge(1) to keep certain ranges of timecodes while discarding others. The
ranges to keep have to be listed after the parts: keyword and be separated by commas. A range itself
consists of a start and an end timecode in the same format the other variations of --split accept (e.g.
both 00:01:20 and 80s refer to the same timecode).
If a start timecode is left out then it defaults to the previous range's end timecode. If there was no
previous range then it defaults to the start of the file (see example 3).
If an end timecode is left out then it defaults to the end of the source files which basically tells
mkvmerge(1) to keep the rest (see example 3).
Normally each range will be written to a new file. This can be changed so that consecutive ranges
are written to the same file. For that the user has to prefix the start timecode with a +. This tells
mkvmerge(1) not to create a new file and instead append the range to the same file the previous ran-
ge was written to. Timecodes will be adjusted so that there will be no gap in the output file even if
there was a gap in the two ranges in the input file.
In example 1 mkvmerge(1) will create two files. The first will contain the content starting from
00:01:20 until 00:02:45. The second file will contain the content starting from 00:05:50 until
00:10:30.
In example 2 mkvmerge(1) will create only one file. This file will contain both the content starting
from 00:01:20 until 00:02:45 and the content starting from 00:05:50 until 00:10:30.
In example 3 mkvmerge(1) will create two files. The first will contain the content from the start of
the source files until 00:02:45. The second file will contain the content starting from 00:05:50 until
the end of the source files.
Note that mkvmerge(1) only makes decisions about splitting at key frame positions. This applies to
both the start and the end of each range. So even if an end timecode is between two key frames
mkvmerge(1) will continue outputting the frames up to but excluding the following key frame.
Cheers
manolito
hamedham
21st December 2016, 20:21
thank you
please give me a link or threat link.
manolito
21st December 2016, 20:35
http://forum.doom9.org/showthread.php?p=1405680#post1405680
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.