Log in

View Full Version : Stream linking in mkv


thetoof
6th February 2010, 19:21
Hi,

I'm trying to figure how file linking works with mkv and I am quite puzzled. Here's what I'm trying to do:

5.1 AC3 audio / 1 file
h.264 video / 2 files with different resolution and DAR (somehow it changed in the middle of the DVD)
Subtitles

So, I need the 2 videos linked together, but since the audio is muxed with the first video segment, I can't link them as "play this file, then this one" since I lose audio this way. How would I use advanced editing to achieve what I want?

Thanks

thetoof
13th February 2010, 19:34
OK, let me reformulate... which I'll keep doing until I get an answer ;)

I know something like this can link different files:
<Chapters>
<EditionEntry>
<EditionFlagOrdered>1</EditionFlagOrdered>
<EditionFlagHidden>0</EditionFlagHidden>
<EditionFlagDefault>0</EditionFlagDefault>
<EditionUID>3727225201</EditionUID>
<ChapterAtom>
<ChapterUID>130428</ChapterUID>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterSegmentUID format="hex">
b8 7c 13 a0 3d 65 ee 07 82 53 d4 84 5f 4c a6 74
</ChapterSegmentUID>
<ChapterDisplay>
<ChapterString>Episode 01: The Adventures of Mikuru Asahina Episode 00</ChapterString>
<ChapterLanguage>und</ChapterLanguage>
</ChapterDisplay>
<ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
<ChapterTimeEnd>00:01:30.220000000</ChapterTimeEnd>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>240956</ChapterUID>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterTimeStart>00:01:30.220000000</ChapterTimeStart>
<ChapterTimeEnd>00:12:44.514000000</ChapterTimeEnd>
<ChapterSegmentUID format="hex">
b8 7c 13 a0 3d 65 ee 07 82 53 d4 84 5f 4c a6 74
</ChapterSegmentUID>
<ChapterDisplay>
<ChapterString>Part A</ChapterString>
<ChapterLanguage>und</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>3611616</ChapterUID>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterSegmentUID format="hex">
b8 7c 13 a0 3d 65 ee 07 82 53 d4 84 5f 4c a6 74
</ChapterSegmentUID>
<ChapterDisplay>
<ChapterString>Part B</ChapterString>
<ChapterLanguage>und</ChapterLanguage>
</ChapterDisplay>
<ChapterTimeStart>00:12:44.514000000</ChapterTimeStart>
<ChapterTimeEnd>00:23:11.174000000</ChapterTimeEnd>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>453616</ChapterUID>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterSegmentUID format="hex">
b8 7c 13 a0 3d 65 ee 07 82 53 d4 84 5f 4c a6 74
</ChapterSegmentUID>
<ChapterDisplay>
<ChapterString>Ending Credits</ChapterString>
<ChapterLanguage>und</ChapterLanguage>
</ChapterDisplay>
<ChapterTimeStart>00:23:11.174000000</ChapterTimeStart>
<ChapterTimeEnd>00:24:15.963000000</ChapterTimeEnd>
</ChapterAtom>
<ChapterAtom>
<ChapterUID>51546130566</ChapterUID>
<ChapterFlagHidden>0</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterSegmentUID format="hex">
b8 7c 13 a0 3d 65 ee 07 82 53 d4 84 5f 4c a6 74
</ChapterSegmentUID>
<ChapterDisplay>
<ChapterString>Next Episode Preview</ChapterString>
<ChapterLanguage>und</ChapterLanguage>
</ChapterDisplay>
<ChapterTimeStart>00:24:32.619000000</ChapterTimeStart>
<ChapterTimeEnd>00:24:48.936000000</ChapterTimeEnd>
</ChapterAtom>

My questions are:
1 - How the hell can I find the <ChapterUID> and <ChapterSegmentUID format="hex">?
2 - Is there some kind of GUI that'd make it easy to create a chapter file to attach different files?

GodofaGap
14th February 2010, 12:13
I think you are going to make it yourself a lot easier if you give each files it's own sound. You could split the ac3 with mkvmerge (global options) into two mka's and then use those as source for each video.

thetoof
14th February 2010, 23:41
Yes, that's what I ended up doing (as you said, much easier), but now the problem I have is about linking part a and b to create one virtual file when a is opened (if b is in the same folder)...

thetoof
15th February 2010, 22:03
Awesome ^^ Many thanks!

edit: Hmm... any ideas why some episodes are left out of the "virtual file"? (I linked ep 26 to 39 as a test, but when I open ep 26, ep 38 and 39 are left out... though they are played afterwards anyways) Not much of an inconvenience, but still, it'd be nice to know why if it becomes one on a future project.

edit2: Ook.... for some reason Stephen R. Savage's post is gone; it basically said that the Segment UID could be found and edited in the header editor of mkvmerge.