View Full Version : Concatenation friendly video containers?
macmichael01
21st December 2012, 04:56
I have a series of folders which contain a set of mkv's, mp4's, m2ts's, or ts's.
It would be nice to perform a cat file1 file2 > out.ext operation on these but
I've read that not all video containers can be concatenated (as I found out with mp4 containers)
Is there a wiki to show which video containers are concatenation friendly?
Guest
21st December 2012, 05:34
Transport streams are your best hope but even there you can run into issues with some applications.
Kurtnoise
21st December 2012, 09:34
I've read that not all video containers can be concatenated (as I found out with mp4 containers)
Since when ?
Guest
21st December 2012, 15:14
He refers to naive concatenation using DOS copy or equivalent.
macmichael01
27th December 2012, 02:33
Since when ?
Since there was this thing called a header. Some video containers do not have such headers which makes it easy to perform a basic cat operation on them. But since some video containers have headers and headers could be located anywhere within a file, a cat operation cannot be used.
If there is a way to strip out such headers when merging into a single container without losing quality, I'd like to know.
I think the solution would be to mux to a ts or m2ts container (as neuron2 suggested) or simply extract the individual audio and video streams then merge them into a container of choice.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.