INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
How to convert matroska MKV to AVI or OGM to AVI

Forum Index -> How to's -> User guides Printer-friendly version
Goto page 1, 2, 3, 4, 5, 6, 7  Next
Reply to topic
Author Message
Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden

Post Posted: Oct 18, 2004 10:46 Posts Comp View users profile Send private message Reply with quote

Matroska .MKV file and .OGM are new container formats similiar to .AVI. They can contain DivX, Xvid video, OGG audio, several audio tracks, switchable subtitles. But if you want it to play it on a standalone dvd player with divx/xvid support you must convert it to AVI with MP3 audio and text subtitles(if any). No reencoding of the video is required, the audio will be reencoded to mp3.

Tools required:
matroska / MKV Codec
Ogg DirectShow Filter / OggDS / OGM Codec
VirtualdubMod
Lame MP3 ACM


Guide:

Install all codecs and tools.
Start VirtualdubMod

Demultiplex/Separate video,audio and subtitles and convert audio to mp3

1. Open the .mkv or .ogm, File->Open video file (If you receive an error read this)
2. Select Streams->Stream list
3, 4. Right click on the audio track you want to keep, select Full-Processing
5. Right click on same audio track again and select Compression


1. Choose Lame MP3
2. Select bitrate


1. Select the audio track you want to keep again
2. Click Save WAV to convert it to mp3, ignore that it says WAV, save it as track2.mp3
3. Select the subtitle track
4. Click Demux to save it as video.srt/sub


1. Select File->Save as to save the avi video to a file, the video won't be reconverted
2. Select Direct Stream Processing
3. Select avi and save the new video as track1.avi



Multiplex/Join audio and video

1. Open the new created track1.avi, File->Open video file
2. Select Streams->Stream List
3. Add the mp3 audio file


1. Select File->Save as to save the avi video and audio, the video and audio won't be reconverted
2. Select Direct Stream Processing
3. Select avi and save the new video as video.avi


Done. You should now have one video.avi (and a video.srt/sub file if any subs).[/b] You can delete the track1.avi and track2.mp3.


Last edited by Baldrick on May 17, 2005 05:53, edited 3 times in total


Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden

Post Posted: Oct 18, 2004 11:32 Posts Comp View users profile Send private message Reply with quote

VirtualdubMOD doesn't work with all types of MKV and OGM video. But you can use:

MKVExtractGUI to extract video, audio and subtitle from MKV files.
and
OGMDemuxer tool to extract video, audio and subtitle. It is a command line tool but just drag and drop the .ogm file on the OGDemuxer.exe and it will separate all files automatically.

After that continue from the Multiplex/Join the video,audio in the guide above. But you must first convert the ogg audio to mp3, you can use for example dbpoweramp.


absinthecarolinas
Member


Joined: 18 May 2004
Location: United States

Post Posted: Oct 21, 2004 08:06 Posts Comp View users profile Send private message Reply with quote

Another nice guide, baldrick. Thanks! smile.gif

LAME doesn't show up in my codec list in VDubMod, though I do have the codec. Would you happen to know how to register it with Windows without installing, or any other way to get VDubMod to see it?

-abs
_________________
"The purpose of art is not the release of a momentary ejection of adrenaline but rather the gradual, lifelong construction of a state of wonder and serenity." --Glenn Gould


Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden

Post Posted: Oct 21, 2004 08:36 Posts Comp View users profile Send private message Reply with quote

You must install the lame mp3 acm codec, right click on the LameACM.inf and select Install.

absinthecarolinas
Member


Joined: 18 May 2004
Location: United States

Post Posted: Oct 21, 2004 09:30 Posts Comp View users profile Send private message Reply with quote

Baldrick wrote:
You must install the lame mp3 acm codec, right click on the LameACM.inf and select Install.


Got it! Thanks,

-abs
_________________
"The purpose of art is not the release of a momentary ejection of adrenaline but rather the gradual, lifelong construction of a state of wonder and serenity." --Glenn Gould


A.R.K
Member


Joined: 28 Nov 2004

Post Posted: Nov 30, 2004 22:42 Posts View users profile Send private message Reply with quote

hey baldrick, thats a very nice tutorial!

but, i just wanted to know... the subtitles that i saved from the .ogm file, how can i get them to be on me .avi file?
when i tried to add it to the Stream List with the audio, it only saved the audio and not the subtitles.

any help would be great!
thanks


Mr. SoAndSo
Member


Joined: 03 Feb 2004
Location: The good old north

Post Posted: Dec 02, 2004 16:52 Posts View users profile Send private message Reply with quote

Need help here........

When I go to save the mp3 it says

MPEG audio sync error: try disabling MPEG audio time correction

Is there any way to solve this?


Baldrick
Administrator


Joined: 09 Aug 2000
Location: Sweden

Post Posted: Dec 03, 2004 16:01 Posts Comp View users profile Send private message Reply with quote

ark: you can't include the switchable subs in the avi file, you can have separate avi and subs files. or you can add permanent subs by using the vobsub filter.

boedha
Member


Joined: 22 Jan 2005

Post Posted: Jan 26, 2005 15:12 Posts Comp View users profile Send private message Reply with quote

First of all tnx for making this tutorial. But at this moment it isnt really working for me. I installed all the tools i needed and oggvorbis. The anime is ogm. Videocodex is xvid (xvid mpeg-4,ffdshow mpeg-4 video decoder, xvid mpeg-4 video decoder) and audio: oggvorbis(no codex). When i do it with virtualdub everything is ok until i do save as: no avi.when i try with demux im not able to save to file because its used by something else(no idea what) and i also have no mp3files to select.heeeeelp cry.gif

MnBthunDER
Member


Joined: 27 Jan 2005

Post Posted: Jan 29, 2005 13:51 Posts Comp View users profile Send private message Reply with quote

For my situation, I've succeeded in splitting the ogg files using OGMDemuxer, which contains the avi, 2 dubs and the srt. I use VirtualDubMod to get 1 of the dub and save into .mp3 and when I wanted to combine the .avi, .mp3 and the .srt file (tried on OGMDemuxer version and VirtualDubMod version). the .avi and .mp3 has no problem except the subtitles just does not show. I'm wondering what I had missed out and really need help in this. Thanks a lot and any help would be appreciated

xXGokuXx
Member


Joined: 25 Jan 2005

Post Posted: Jan 29, 2005 19:31 Posts View users profile Send private message Reply with quote

I have a proglbem here...

Quote:
1. Select the audio track you want to keep again
2. Click Save WAV to convert it to mp3, ignore that it says WAV, save it as track2.mp3
3. Select the subtitle track
4. Click Demux to save it as video.srt/sub


I get this error on #4 when I want to save the file as "video.srt/sub"

Pic:


What should I do to fix this problem?


sushifrenzy
Member


Joined: 27 Jan 2005

Post Posted: Jan 29, 2005 22:00 Posts View users profile Send private message Reply with quote

i tried to download OGMdemuxer, but it doesnt work... along with the fact that i downloaded vobsub, which worked, but when i try to save the .avi file with the sub and sound, only the sound is saved.. noexpression.gif help please.

boedha
Member


Joined: 22 Jan 2005

Post Posted: Feb 01, 2005 15:20 Posts Comp View users profile Send private message Reply with quote

it seems we all have the same probs.now all we need is someone who knows how this damn things works biggrin.gif

Le_Blur
Member


Joined: 02 Feb 2005

Post Posted: Feb 06, 2005 11:09 Posts View users profile Send private message Reply with quote

Hey,

I've printed off your guide and am currently following it to the letter.
I came to install Lame MP3 (in the manner described) and was confronted with the following message:

"The software you are installing for this hardware:

Sound, video and game controllers

has not passed Windows Logo testing to verify its compatibility with Windows XP.

Continuing your installation of this software may impair or destabilise the correct operation of your system either immediately or in the future. Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing."

Is this to be taken as a serious threat, or is it merely Microsoft attempting to restrict the movements of small companies who do not have the funds to pay for Microsoft's corporate blessing?

I noticed from your screen shot that you also use XP, and I assume you also came across this problem when installing Lame MP3. Do I continue or find another program to compress audio streams to MP3?


boedha
Member


Joined: 22 Jan 2005

Post Posted: Feb 06, 2005 18:35 Posts Comp View users profile Send private message Reply with quote

windows says pretty easely if it isnt 1 of there products m8.Just install it biggrin.gif

boedha
Member


Joined: 22 Jan 2005

Post Posted: Feb 06, 2005 18:39 Posts Comp View users profile Send private message Reply with quote

i noticed that ogmdemuxer doesnt seems to work if the ogmfiles arent properly encoded.maybe thats youre prob shushi. Test it out with other ogmfiles from another anime(for example evangelion: thats the 1 i just converted cool.gif

sushifrenzy
Member


Joined: 27 Jan 2005

Post Posted: Feb 08, 2005 19:07 Posts View users profile Send private message Reply with quote

ohmy.gif youre probably right.. but i dont have other ogm files.. noexpression.gif

and when i try to install ogmdemuxer.. it says under show details:

output directory: C:\WINDOWS\system32
Skipped: ogg.dll
Skipped: vorbis.dll
Skipped: vorbisenc.dll
Skipped: OggDS.dll
Registering: C:\WINDOWS\system32\OggDSuninst.exe
Completed

so i dont think it actually installed if it skipped all of them..


boedha
Member


Joined: 22 Jan 2005

Post Posted: Feb 10, 2005 13:56 Posts Comp View users profile Send private message Reply with quote

i dont think oggvorbis is properly installed m8

sushifrenzy
Member


Joined: 27 Jan 2005

Post Posted: Feb 10, 2005 21:02 Posts View users profile Send private message Reply with quote

i downloaded ogg vorbis... and now what do i do?! it still isnt working..

docMA
Member


Joined: 14 Feb 2005

Post Posted: Feb 17, 2005 11:54 Posts View users profile Send private message Reply with quote

Hello!

Just wanted you to know that I love your guides! They are easy to understand (even for me here in germany).

thank you!


Mr.Hitman
Member


Joined: 06 Dec 2004

Post Posted: Feb 23, 2005 19:30 Posts View users profile Send private message Reply with quote

what if your trying to convert .VOB file to avi, and abstract the subs and such from it... I can't get this process to wrok because the subs don't show up in the process list.
_________________
http://www.houstonxtreme.com CounterStrike


ChristianHJW
Member


Joined: 11 Jan 2004

Post Posted: Mar 02, 2005 01:02 Posts View users profile Send private message Reply with quote

I know this thread is quite some time old, but it needs to be mentioned that VirtualdubMod development has come to a halt since more than a year. As a result of this, it won't be able to handle most of the modern matroska files anymore, especially those with VFW ( Variable Framerate ), Realvideo, h.264 and vobsub subtitles.

The recommended tool to extract video/audio/subtitles streams from MKV files is therefore mkvextract from the mkvtoolnix package ( current version 1.4.0 ) from http://mkvmerge.matroska.org. While mkvmerge is an easy to use CLI tool ( command line ), there is an experimental GUI from a long-time supporter of the matroska project, more about it here : http://forum.doom9.org/showthread.php?s=&threadid=73819&highlight=mkvextract


voicu_n
Member


Joined: 23 Apr 2004

Post Posted: Mar 30, 2005 17:44 Posts View users profile Send private message Reply with quote

Hi...
Baldrick, i have a problem ...after i load my ogm file in vdobmode i cannot see the stream for subtitle...only the one for audio ....

But if i play the file with media player clasic i have subtitles....

Next to the ogm file i also have a idx file ...wich if is not next to ogm file i dont have anymore sub in clasic media player...

How come ...help pls...
How can i get the demux the sub????


CrisCr0ss
Member


Joined: 14 Mar 2005
Location: Toronto

Post Posted: Apr 07, 2005 19:05 Posts Comp View users profile Send private message Reply with quote

wow i have been lookin all over for a way to convert an ogm to avi and i at last have found it thanks a lot.. appreciate it.
_________________
My DVD Collection


blinkassassin
Member


Joined: 24 Feb 2005
Location: auckland

Post Posted: Apr 23, 2005 17:59 Posts Comp View users profile Send private message Reply with quote

how do u get the video.srt and the video.avi all in one?
cause when im running video.avi WITHOUT the video.srt in the same folder, there are no subtitles sad.gif. I need to convert files to .avi and have the subtitle in the avi it self because im trying to get it to dvd
_________________
biggrin.gif


shoes27
Member


Joined: 23 Apr 2005
Location: UK

Post Posted: Apr 27, 2005 09:55 Posts Comp View users profile Send private message Reply with quote

ChristianHJW, i used mkv extract on my mkv file. How do i now join the avi and aac file together?

taydu
Member


Joined: 08 Sep 2002

Post Posted: May 29, 2005 21:11 Posts View users profile Send private message Reply with quote

i have problem

the mkv file is 25 mins long
i used mkvextractgui to extract the avi, aac, srt file. The avi file is only 19 mins long, but the aac files is 25 mins long how do i fix it?


p_l
Member


Joined: 07 Jun 2002
Location: Montreal, Canada

Post Posted: May 31, 2005 03:29 Posts Comp View users profile