NuPogodi
23rd May 2008, 10:42
I'm trying to undestand the basics of GraphEdit, how it works with various containers and, in particular, demuxing the subtitle streams from avi, mp4, mkv, etc.
Well, what i did, actually? I encoded a small videofragment, then mux it with the following subtitles
1
00:00:00,000 --> 00:00:01,000
Title 1, Line 1
2
00:00:01,001 --> 00:00:02,001
Title 2, Line 1
Title 2, Line 2
3
00:00:02,002 --> 00:00:03,002
Title 3, Line 1
Title 3, Line 2
Title 3, Line 3
into avi (by AviMuxGUI), into mp4 (by mp4box & YAMB) and mkv (by mkvmerge & mmg). Then i've tried to demux them using GraphEdit: by just connecting the following output pin of avi- & mkv-splitter to the input pin of Dump.
The output file extracted from avi was almost the same as the original, namely
00:00:00,000 --> 00:00:01,000
Title 1, Line 1
...
with a some garbage in the file head (which can readily be deleted in any text editor). But demuxing subtitles from matroska was a bit strange. I've got just the texts without the timing, namely
Title 1, Line 1Title 2, Line 1
Title 2, Line 2Title 3, Line 1
Title 3, Line 2
Title 3, Line 3
Can somebody answer me why? Is it related to the timestamp stucture of matroska? And the most important is, certainly, the question: Is there any way to demux subtitles from matroska with GraphEdit (or, probably, other soft) so to have not only the title texts, but also their timings?
Thanks-
PS. I certainly know that i can always use mkvextract to solve this problem. What i'm searching for is another way to demux subtitles from mkv-files.
Well, what i did, actually? I encoded a small videofragment, then mux it with the following subtitles
1
00:00:00,000 --> 00:00:01,000
Title 1, Line 1
2
00:00:01,001 --> 00:00:02,001
Title 2, Line 1
Title 2, Line 2
3
00:00:02,002 --> 00:00:03,002
Title 3, Line 1
Title 3, Line 2
Title 3, Line 3
into avi (by AviMuxGUI), into mp4 (by mp4box & YAMB) and mkv (by mkvmerge & mmg). Then i've tried to demux them using GraphEdit: by just connecting the following output pin of avi- & mkv-splitter to the input pin of Dump.
The output file extracted from avi was almost the same as the original, namely
00:00:00,000 --> 00:00:01,000
Title 1, Line 1
...
with a some garbage in the file head (which can readily be deleted in any text editor). But demuxing subtitles from matroska was a bit strange. I've got just the texts without the timing, namely
Title 1, Line 1Title 2, Line 1
Title 2, Line 2Title 3, Line 1
Title 3, Line 2
Title 3, Line 3
Can somebody answer me why? Is it related to the timestamp stucture of matroska? And the most important is, certainly, the question: Is there any way to demux subtitles from matroska with GraphEdit (or, probably, other soft) so to have not only the title texts, but also their timings?
Thanks-
PS. I certainly know that i can always use mkvextract to solve this problem. What i'm searching for is another way to demux subtitles from mkv-files.