View Full Version : How can I combine several Video in one MKV Files.
JEskandari
13th November 2013, 11:26
Sorry for my bad English .
This is my Question , If I have several related Video with different size , Is there a way for me to put all of them in a single MKV container and access all of them by playing that single file ?
I don't want them to be merged one after the other , I want them to look somehow like a DVD with several file burned in it that you can choose which one to be played. just like when you choose which Audio track to be played if you have several audio track or Subtitle in the video .
thanks
hello_hello
13th November 2013, 11:53
I can't say I've done it myself, but in theory.....
MKVs can be linked. Normally you'd link them as you're splitting them, but there's probably no reason why it can't be done the other way around. You'd need to use MKVMergeGUI and it's header editor (under the File menu) to edit the previous and next segment ID numbers (they're probably currently blank). So I guess you'd copy the "Segment Unique ID" number from MKV2 and add it to MKV1 as the "Next Segment's Unique ID". For MKV2 you'd use the Segment Unique ID" number from MKV3 as the "Next Segment's Unique ID", and you'd also copy MKV1's "Segment Unique ID" and add it to MKV2 as the "Previous Segment's Unique ID".... and so on. Hopefully that makes sense. I don't think anything else would need to be changed.
Then of course you'd need to use a player which actually supports linked MKVs. Most software players probably do, but I've no idea when it comes to standalone players.
JEskandari
13th November 2013, 20:49
Thanks for the replay
I did that , but I still can't get a working file .
by doing what you said my file won't play the audio streams while the streams are clearly in the created file.
I think there must be another steps in doing so .
I'm certain its possible as I already have seen one such file.
hello_hello
14th November 2013, 02:50
I tried it myself and it seems linked file support is somewhat hit and miss. I wouldn't be letting my expectations get too high regarding standalone player support. I tried linking two pairs of files. The first had the same type of audio and video while the second contained video with a different resolution and audio type. I used MPC-HC and a couple of different combinations of splitters and decoders.
As I'm running XP my only DXVA option with the latest MPC-HC is to use ffdshow. With ffdshow doing DXVA decoding, MPC-HC kept crashing while playing linked files. Without DXVA the video played fine. Nvidia CUVID and CPU decoding both seem to work fine.
The Haali splitter seems to handle linked MKVs containing different types of audio/video better than the LAV splitter. When Haali is doing the work each linked MKV opens as an individual file, but the player automatically plays each linked segment in succession and the skip button lets you jump to the next segment etc. As a result it doesn't seem to matter if the audio in each linked segment is of a different type.
The LAV splitter opens linked MKVs as a single video file. ie MPC-HC will display the total duration for all segments. It doesn't seem bothered if the linked MKVs have video of different resolutions (I didn't test different types of video). It seems though, the audio needs to be of the same type in each linked MKV. When it was, the audio worked fine all the way through. When it's wasn't, like you I only heard audio for the first segment and the rest was silence.
So, assuming you're using the current version of MPC-HC, you'll probably need to convert the audio as required so each linked MKV contains the same type, or....
Install the Haali Media Splitter and disable MPC-HC's Matroska Source Filter (under Internal Filters in Options).
Other media players may handle linked MKVs differently, or with more or less success. I only tested MPC-HC.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.