[FFmpeg-user] Split a video file in two by size and merge it back

Carl Zwanzig cpz at tuunq.com
Thu Oct 17 03:58:02 EEST 2019


On 10/16/2019 5:10 PM, Julien Dotsev wrote:
> Is it possible to split a video in two by size and merge it back to the
> original file? Can that merged file be exactly the same as the original one?

By size? Is that half the number of seconds, of v or a frames, packets, or 
bytes?

Split how? Does that mean using ffmpeg or an editor to take the the first n 
seconds/frames and the remainder or using a low-level took to take the first 
n BYTES and the remainder? In the latter, the second file probably won't be 
playable.

What is "the same"?
If you mean bit-for-bit the same, highly unlikely. If you mean having the 
same content, then possibly (depending on codecs, split point, and probably 
other factors).

In other words, please expand on the question.

Later,

z!


More information about the ffmpeg-user mailing list