Log in

View Full Version : Audio is cut of when saving as matroska


frodoontop
27th May 2003, 18:01
I would love to use matroska, however, I can't figure out how to prevent that the audio is cut of when the last video frame is saved. Deselecting the options under video->select range didn't have the desired result. I used to mux with oggmux which never gave me any problems.

For your information: I am muxing one xvid-video file (.avi), one ogg file(which is longer than the video) and one .srt subtitle file.

I usually don't encode the credits, but do include the whole soundtrack. So that's why I would like the audio to continue.

Any help would be appreciated:)

ChristianHJW
28th May 2003, 13:14
frodoontop,

i am currently struggling to recall myself, but our specs should allow that, even without control tracks being used ?

I forwarded your post to the VirtualdubMod ML, to see if Cyrius or Belgabor will comment.

BTW : are you sure the audio is cut off on muxing ? maybe its the player/parser that stops playback once the video is finished ? I will come back to you on this subject ....

N_F
28th May 2003, 13:24
Originally posted by frodoontop
I usually don't encode the credits, but do include the whole soundtrack.
What player do you use and how does it react to this? I've never tried it, but my guess would have been that most players stop when the video stop.

frodoontop
28th May 2003, 14:12
@ N_F:
I have plenty of OGM's working this way, so the players don't have to be blamed. They're all capable. I can use BSPlayer, Zoomplayer or Windows Media Player Classic.

@ChristianHJW:
Thanks for your efforts. I'm certain that the audio is cut of in the merging process. I checked this by loading the resulting mkv and under stream list the length of the audio was 2:04:17, while the original was 2:07:27.

Belgabor
28th May 2003, 17:52
Heh, I had brought this thread to cyrius' attention before reading the mail. His comment was this:

<Cyrius> well I even dunno how he could finish the muxing actually :p
<Cyrius> since there should be some problems with my code if you finish video before the other streams :p

So it should work (mastroska was made for such stuff imho), but the current implementation of VDubMod can't do it. Have you tried Mosu's mkvtoolnix?

frodoontop
28th May 2003, 22:13
I got it to work now with mkvmerge. I tried this before, but never found good documentation for the gui.

Somehow I got the idea to check the option copy the selected track->test. And it worked!
So many many thanks for all your efforts.

Matroska forever!
:D :D :D

ChristianHJW
29th May 2003, 11:03
Originally posted by frodoontop Matroska forever!
:D :D :D

:) !

Does that mean it actually works with our current DShow filter ? we werent sure of that actually, but expected that the missing data on the output pin could cause problems. At least were are 100% sure that doing the opposite, means adding an audio track that starts before the video wouldnt work because there were no data on the video pin and so the filter would be blocked ....

BTW : can you test with MP3 and AAC also please ?

frodoontop
29th May 2003, 17:43
Well, sort of. I can't seek in the audio-only part, but that's not a big problem.

I will also try this with aac and mp3, though I haven't worked with aac before.

frodoontop
29th May 2003, 22:24
So far I've only managed to test MP3, it worked just as well as Ogg.

I've encountered some problems with muxing aac. I haven't got any experience with it, so that will probably the reason. I used Nero to transcode the ogg-file to aac(mp4). However I can't mux mp4 files with mkvtoolnix. Simply rename it to aac didn't work for sure.

If anyone could help me with this, I can test the aac playback too.

frodoontop
30th May 2003, 20:49
Ok, finally got AAC working. First had to transcode to .wav and then with AACMachine to the final file.

It's giving exactly the same results as with ogg and mp3. Though in my test file it wasn't in sync anymore, but that's probably got to do with my bad transoding somehow.

Be happy with your test-results! Back to my social life. :)

ChristianHJW
2nd June 2003, 13:15
Originally posted by frodoontop Be happy with your test-results! Back to my social life. :)
Thanks !