Log in

View Full Version : Matroska Muxer


ookzDVD
22nd May 2003, 07:24
Is there already available a simple utility to mux the .avi + (any audio: .mp3 .ogg .ac3 etc) + subtitle + chapter info into matroska,
simply just like cyrius's ogmuxer ?

Thank you.

ChristianHJW
22nd May 2003, 07:49
Just copied from the matroska-devel ML :

Hi.

I've just released v0.4.0 of mkvtoolnix. This release includes the AAC
support that you get such warm feelings about

Chris: This is the release I want to spread. I've removed the
pre-release, so you'll have to update those forum posts in which you put
a link to it. Sorry.

http://www.bunkus.org/videotools/mkvtoolnix/
http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-0.4.0.zip

Too tired to write much more than this...

Mosu

BTW : this is the 2nd official release of win32 binaries for mkvmerger ...

ookzDVD
22nd May 2003, 07:54
Dear ChristianHJW,

Thank you for the information,
I'll try it shortly :)

Sigmatador
22nd May 2003, 08:27
A remark about demuxing mkv.

i have muxed a 1go xvid video file with a 400mo ac3 audio file in a mkv container with the last VDM. The movie play fine but i want (with VDM) to resave it in avi (for a friend ^^) -->VDM crash. So let's go for ogm ^^. It works but it's sloooww as hell. About 1hour to finish the directstream copy to the ogm file.


So, i hope it's only a VDM problem ^^

Sigmatador
22nd May 2003, 12:10
erf, it doesn't took 1h but 5h, and after 4h30, my 1go of ram and 2go of swap was full and VDM crash

jezze how to recover my movie :D

[Toff]
22nd May 2003, 13:20
Hehe i think that it's called a memory leak ;)
Don't forget that matroska support is pretty young in vdubmod, you should bug Cyrius about that :D

Suiryc
22nd May 2003, 16:43
Yeah I noticed a memory leak when reading mkv in VDMod but never found what was the exact problem.
Since debugging is almost impossible (dunno what Avery did in 1.5.x but for reading/writing mkv files it takes ages ... e.g. 30 minutes for only 100 video frames ;_; ) I still don't know how to fix that ...

Sigmatador
22nd May 2003, 18:01
i update my ram to 1.5go and my swap to 3go and i've finnally been able to save my movie as an avi ;) (glurps ^^ )

jcsston
22nd May 2003, 19:12
I've made a GUI for mkvmerge, among other things ;)
Here is a Win32 binary MKVMerge GUI v1.0 (http://matroska.sourceforge.net/downloads/mkvmerge-wxgui-v1.0.zip) Written in C++ using wxWindows.
It currently supports almost all the features of mkvmerge but track selection.
If you get an error about msvcr70.dll
Download a newer version here (http://webjory.tripod.com/matroska/msvcr70.rar.zip)

Just put the exe in the same folder as mkvmerge.exe :)

Mr_Khyron
22nd May 2003, 19:58
WOW good GUI now i can say bye bye to OGM :D

Teegedeck
22nd May 2003, 21:10
Talking about memory leaks, yeah; so I've encoded my first full-scale mkv, a 1.2 Gig file, that I can't mux with the audio.
Not only is there a memory leak in VDub, mkvmerge (0.4.0) also quits without notice after spitting out a 700-something-MB file (at least it's got the AC3-soundtrack in it...). I guess the fault is not on VDM's side.

Edit: Now I simply tried to open and rewrite the original mkv-file without audio ("mkvmerge -v -o [path]2.mkv [path]1.mkv"); the results were 4 mkvmerge 1248 handle exceptions, status access violation. Hummmm... :confused:

ChristianHJW
23rd May 2003, 06:37
Is it possible that you have an older cygwin.dll version hiding on your machine somewhere ?

Animaniac
23rd May 2003, 06:57
I have an OGM with XviD video and AAC audio created using GraphEdit from a QuickTime Movie (.MOV) source using the 3ivx Splitter filter and then the Ogg Multiplexer filter. Now I know that's a really non-standard file, but that was the only way I could seem to demux the AAC audio from the QuickTime movie. I want to get all of this into MKV. I tried using VDM, but it produces a bad MKV (video and audio which isn't playable). OGMDemux couldn't demux the AAC audio, VDM was able to (granted it recognized it as "unsupported" with a 0x00FF tag) however mkvmerge doesn't like this (raw?) AAC audio file. mkvmerge doesn't like the OGM with AAC audio. So, it seems that OGM's with AAC audio are a dead-end in terms of "transmuxing." If there's an easier way to demux the AAC audio from the Quicktime Movie, that would make like much easier. Thanks.

Teegedeck
23rd May 2003, 07:14
Originally posted by ChristianHJW
Is it possible that you have an older cygwin.dll version hiding on your machine somewhere ?
Hm, you're right. I'll install the latest version and try again. Thanx, Christian.

ChristianHJW
23rd May 2003, 08:23
Originally posted by Animaniac If there's an easier way to demux the AAC audio from the Quicktime Movie, that would make like much easier. Thanks.

Graphedit should allow you to insert a so-called 'file writer' filter and connect it to the MOV audio-out pin, so you should be able to simply put your AAC audio into a separate file.

ChristianHJW
23rd May 2003, 08:26
Originally posted by Teegedeck Hm, you're right. I'll install the latest version and try again. Thanx, Christian.

No need to, the latest ( working ) version of cygwin.dll is coming in the mkvmerger zip file, just be sure there is no older version of cygwin.dll somewhere in the /system/ or /system32/ folder and Windows is using this instead of the one in the package. Make a search on you HDDs for *cygwin* and see what it finds. If there is an older version, overwrite it with the one coming in the package.

BTW : glad you decided to look into using matroska mate, it really means a lot to me :D

Teegedeck
23rd May 2003, 17:49
I've actually been waiting eagerly for this project to evolve; I've got several near-800-MB files sitting on my HD that wait for enhanced ECC-support in matroska...

Anyway, back from town and tried again with a different version of cygwin (no, there wasn't another one on my pc). Sadly, to no avail. In the end I've found out that mkvmerge simply (seemingly?) doesn't accept mkv-files for input...

Atamido
23rd May 2003, 17:53
That is strange because I was having fun playing with jcsston's GUI, and my sources were OGM and MKV.

ChristianHJW
23rd May 2003, 18:20
Originally posted by Teegedeck doesn't accept mkv-files for input...
are you by chance on Win9x/ME mate ? Is it maybe again the missing native support for unicode thats playing tricks on us here ?

Teegedeck
23rd May 2003, 19:02
It's Win2K. Just why do I always have the feeling I'm doing something wrong? :p

Mosu
23rd May 2003, 20:21
Originally posted by Teegedeck
Sadly, to no avail. In the end I've found out that mkvmerge simply (seemingly?) doesn't accept mkv-files for input...

Not true. Can you provide a sample file of the mkv that mkvmerge does not read? The first three or four megs will be enough. Either upload it somewhere or send it to me by email (moritz@bunkus.org).

What command line where you using? Which version?

Mosu
23rd May 2003, 20:24
Originally posted by Animaniac
I have an OGM with XviD video and AAC audio created using GraphEdit from a QuickTime Movie (.MOV) source using the 3ivx Splitter filter and then the Ogg Multiplexer filter.


Can you please provide a short sample file? THe first four or five megs should suffice. Either upload it somewhere or send it to me by email (moritz@bunkus.org). I'll try to implement reading AAC-in-OGM in the next version of mkvtoolnix.

Gaenya
23rd May 2003, 21:21
Mosu i got a couple of questions for you im using Linux and i got a avi (xvid) file that works fine with ogmmerge but mkvmerge says isnt supported, but if ogmdemux the ogm file and mkvmerge the video file demuxed works fine, does ogmdemux rewrite the video file headers???, when we are going to have a mkvsplit?? because i got a couple of mkv files that i want to burn on CD

Mosu
23rd May 2003, 21:29
Originally posted by Gaenya
Mosu i got a couple of questions for you im using Linux and i got a avi (xvid) file that works fine with ogmmerge but mkvmerge says isnt supported

Very strange. Both programs use the same file detection code, so both should detect the AVI file correctly or not.

but if ogmdemux the ogm file and mkvmerge the video file demuxed works fine, does ogmdemux rewrite the video file headers???

Sure. It writes a new AVI which will definitely be different than the one you read from.

when we are going to have a mkvsplit?? because i got a couple of mkv files that i want to burn on CD

This will still take some time. It won't be a separate program but an option to mkvmerge, e.g. mkvmerge ... -o ... --split 700m ...

Teegedeck
23rd May 2003, 23:21
Originally posted by Mosu
Not true. Can you provide a sample file of the mkv that mkvmerge does not read? The first three or four megs will be enough. Either upload it somewhere or send it to me by email (moritz@bunkus.org).
I can do that but I guess it would be pretty pointless, as it doesn't work with any .mkv that I produce, be it with VDM 1.5.1.1a (build 1155) or (from an avi) with mkvmerger from mkvtoolnix 0.4.0. (And I just tested that it doesn't work for me with the 'test2.mkv' from your sourceforge-site, either.)

What command line where you using? Which version?
Several ones produced by the GUI and I also tried some simpler ones manually, like:
mkvmerge -o "f:\test.mkv" "f:\sample.mkv"

It would be great if you'd see a simple mistake that I've made.
Edit: No better luck with mkvtoolnix-0.4.1.

kxy
23rd May 2003, 23:36
Originally posted by ookzDVD
Is there already available a simple utility to mux the .avi + (any audio: .mp3 .ogg .ac3 etc) + subtitle + chapter info into matroska,
simply just like cyrius's ogmuxer ?

Thank you.

I dont think it support chapter info as right now.

ChristianHJW
24th May 2003, 06:41
Originally posted by Teegedeck

mkvmerge -o "f:\test.mkv" "f:\sample.mkv"

It would be great if you'd see a simple mistake that I've made.

mkvmerge -o f:\test.mkv f:\sample.mkv

Try without the " ...

Teegedeck
24th May 2003, 08:40
...it's the way the GUI indicates paths when one clicks the 'view command-line'-button. Manually, I've tried both with and without quotation marks, Christian. Sorry.

Mosu
24th May 2003, 08:55
Originally posted by Teegedeck
I can do that but I guess it would be pretty pointless, as it doesn't work with any .mkv that I produce, be it with VDM 1.5.1.1a (build 1155) or (from an avi) with mkvmerger from mkvtoolnix 0.4.0. (And I just tested that it doesn't work for me with the 'test2.mkv' from your sourceforge-site, either.)

:(

Doesn't sound too good. Does mkvinfo work? Can you send me the output of "mkvinfo.exe -v -v test2.mkv" (you should compress its output if it works normally ;))

Several ones produced by the GUI and I also tried some simpler ones manually, like:
mkvmerge -o "f:\test.mkv" "f:\sample.mkv"

It would be great if you'd see a simple mistake that I've made.
Edit: No better luck with mkvtoolnix-0.4.1.

The command line is ok (if you're using the cygwin bash, that is, otherwise it'd have to be 'mkvmerge.exe' of course).

Gaenya
24th May 2003, 16:38
Originally posted by Mosu
Very strange. Both programs use the same file detection code, so both should detect the AVI file correctly or not.



Sure. It writes a new AVI which will definitely be different than the one you read from.



This will still take some time. It won't be a separate program but an option to mkvmerge, e.g. mkvmerge ... -o ... --split 700m ...
Mosu is there any diference (quality, size wise) between the original and the ogmdemuxed video file??? or i can use it for mkvmerge without a problem???

Mosu
24th May 2003, 16:42
Originally posted by Gaenya
Mosu is there any diference (quality, size wise) between the original and the ogmdemuxed video file??? or i can use it for mkvmerge without a problem???

As ogmmerge and ogmdemux only touch the AVI headers and not the video stream's contents it's safe to use the ogmdemuxed version.

Gaenya
24th May 2003, 23:49
Thanks Mosu, and great tools by the way :p

OBcecado
27th May 2003, 22:23
Hi, don't know if this is the apropriate thread to post in but here it goes.
How can i split a 1400 mkv file, since with Vdub mod 1.5.1.1a 1191 it crashes ?

Thanks in forward.

Mosu
27th May 2003, 22:28
Originally posted by OBcecado
Hi, don't know if this is the apropriate thread to post in but here it goes.
How can i split a 1400 mkv file, since with Vdub mod 1.5.1.1a 1191 it crashes ?

Thanks in forward.

At the moment you cannot if VDubMod crashes (I think that it cannot read Matroska files at the moment). I'm planning on implementing that for mkvmerge in the near future, but don't hold your breath.

(It's definitely VERY high on my TODO list.)

OBcecado
27th May 2003, 22:34
Ok, if ever need somebody to test it you can count on me ;)


Thanks for your quick answer.

pirata
29th May 2003, 16:09
Hey!

I'd like to know what do all these muxing settings mean. The help in the muxer GUI are not enough, I am afraid.

Is there any guide?

ChristianHJW
29th May 2003, 19:08
If you download the win32 binaries package of Mosu's site http://www.bunkus.org/videotools/mkvtoolnix/ you will find a HTML file in the package explaining every switch in detail ...