Sunday, November 13, 2005

How To - Converting an OGM to DivX AVI


OGM is another common wrapper for audio and video formats (like MKV).

So here's my process, tested 100% to work with Anime fan subs and whatever you might be able to throw at it.

Software you will need:
1. VirtualDubMod - a modification of VirtualDub, incorporating many plugins into the original program.
3. QuickTime Pro - used for decoding AAC files
4. Advanced WMA Workshop* - you can use any other audio converter you prefer, i use this for converting from OGG and other audio files.
5. VirtuaDub - the main man. Note, it is possible to use VirtuaDubMod instead, but i won't be covering that here.
6. Subtitler - VirtualDub plugin for using subtitles
7. SRT to SSA converter - SSA is the subtitle format used by VirtualDub
8. LAME - for MP3 encoding

Step 1: Demux the OGM.
1. Load your OGM file into VirtualDubMod.
2. Go to Streams->Stream List.
3. Select the one with the description "OGG Media File text stream" (usually the first text stream is English) and click Demux.
4. Select your desired audio stream (usually the first audio stream is English).
5. If the audio stream is in WAV, click Save WAV, otherwise click Demux.
5. Go to the Video menu and click Direct stream copy.
6. Click File->Save As... and select AVI file format.
7. Choose the output directory and filename.
8. You should now have 3 files ready for processing.


The next steps are thesame as the MKV to DivX conversion guide.


Step 2: Convert Audio files to WAV
1. Do your own thing here. If you did not get a WAV file from step 1, you need to convert it now. Be sure to preserve the length of the audio track. Be careful not to introduce or remove any silence at the beginning (some programs automatically do this, so disable that setting).
2. Additionally, if you are converting from AAC, I recommend QuickTime for this. Use the Export command and select WAV.

Step 3: Convert SRT to SSA
1. Load your SRT file in SRT to SSA converter (The program's title is actually Conversor SRT a SSA).
2. Choose the output directory and filename.
3. Adjust the settings as you would like. I just changed the font color from yellow to white though.
4. Click Convert

If you get the error Input file error, subtitle # 1, open the SRT file in notepad and change the encoding from unicode to ANSI.

Step 4: Convert to DivX AVI
- If you haven't, install LAME by right-clicking on the .inf file and clicking Install.
- If you haven't, install Subtitler by copying the .vdf file to the Plugins folder of virtual dub.

1. Open the video file in VirtualDub
2. Go to Video->Filters, load Subtitler and load your SSA file where it says Sub Station Alpha v2.x/4.x filename. Yes, that means the SSA filename.
3. Also in the Video menu, click Full Processing.
4. Still in the Video menu, click Compression and choose DivX. Adjust the settings as you would like. But I otherwise keep it on default.
5. Go to Audio->Wav source... and load your WAV file.
6. Also in the Audio menu, click Full Processing.
7. Still in the Audio menu, click Compression and choose LAME. Adjust the settings as you would like. I use 128kbps at 44.1Khz.
8. Click File->Save as AVI.
9. Choose the output directory and filename. Click Save.

It should now start processing. You may want to unselect Show input video and Show output video to increase performance.

If you get the Audio Compression not possible error:
Virtualdub cannot encode something at 44.1kHz Stereo if the source is 48kHz or mono etc. The reason you are getting the error is because you are encoding the stream without converting the input to match the selected compression type. So, make sure that you select the right options for your input audio - if you have a 48kHz stream then choose that as the encoding option.

0 Comments:

Post a Comment

<< Home