View Full Version : how do I merge xvid+ogg?
jsmith6
23rd March 2007, 13:05
I have my video in an Xvid file and the audio in an Ogg file. How do I merge them?
I know that VirtualDub is the tool for the work and that I need to use "direct stream copy", but I will need a set-by-step guide. I experimented a bit with VirtualDub but I had no luck. I would rather not involve Gordian Knot.
chipzoller
23rd March 2007, 13:57
Depends in which container you'd like to mux them...avi, mp4, mkv?
foxyshadis
23rd March 2007, 15:39
Good luck muxing ogg into mp4, and ogg-in-avi is about three kinds of crazy beyond ac3-in-mp4. ogm is dead for good, so that leaves mkv: Use mkvmerge and mmg. :p (Don't do it in vdubmod, its mkv support is buggy.)
jsmith6
23rd March 2007, 16:55
Depends in which container you'd like to mux them...avi, mp4, mkv?
I just want to do the job. The only container that I know from the ones you mentioned is AVI.
Good luck muxing ogg into mp4, and ogg-in-avi is about three kinds of crazy beyond ac3-in-mp4. ogm is dead for good, so that leaves mkv: Use mkvmerge and mmg. :-P (Don't do it in vdubmod, its mkv support is buggy.)
There are so many terms in this post, and I only recognize "ogg" :)
I downloaded VirtualDubMod and it didn't run (some Windows error, I tried copying it into VirtualDub directory and it still didn't worked). I am going to try the other tools too (mkvmerge, mmg) and see how it goes.
DarkZell666
25th March 2007, 16:50
To put it simple for you:
There are video codecs, audio codecs, and containers.
The most known containers are: AVI / MP4 / MKV / OGM. Well, as foxy said, OGM is kinda dying now.
The main problem is that you can't put any video and any audio in any container you want, there are limitations due to their specifications :
- MP4 only accepts MPEG-standardised stuff: MP3 audio / AAC audio / MPEG4-ASP (XviD and DivX are 2 examples) / MPEG4-AVC (aka h.264, produced by x264 and Nero Recode AVC). So no ac3 and no vorbis.
- OGM accepts "almost" any video, but only vorbis and mp3 audio (and I'm not even sure about mp3 nor the use of sticking mp3 in OGM btw ...). In fact, OGM is OGG, but it's a "surname" to indicate it has a video stream (compared to a plain vorbis audio file, which is also an OGG file). Someone once told me that OGM should be called OGG no matter what.
- AVI mainly supports MPEG-standardised stuff. But, sidenote: avi is the most hacked and deviated container you can find, it's been used for too long for purposes it wasn't designed for. However it's the most widely supported container (any audio/video software can open avi). AVI as been sort of "hacked" to contain ac3, vorbis, and avidemux even managed to produce h.264+aac in avi (though that could have been a bug).
- MKV: this is the best of the best of the ... arhem, lol ... containers, you can put just anything inside it (including subtitles, fonts for ssa subtitles, etc ...). Downside ? It isn't widely supported at all, and I'm kinda disappointed with this fact (as well as many people here on Doom9 I suppose). MKV is playable with VLC, mplayer, MPC, (and even WMP if you install Haali's media splitter). But as long as you keep the file on a computer, there won't be any problem with it.
However, I've seen perfectly working vorbis+xvid-in-avi files already (produced by vdubmod I suppose, since it lets you do exactly that, without telling you you shouldn't xD).
*Hoping I didn't say anything stupid :rolleyes:*
foxyshadis
25th March 2007, 18:17
Not vdubmod, it'll strip vorbis audio if you save to avi. I've seen it a couple of times; once was misnamed ogm, apparently figuring if you rename it the avi splitter will magically work. The others were from avi-mux gui, which would basically let you mux anything you want into avi. (Not vorbis anymore, but at one time it did, and like most non-mp3 streams it had enormous overhead.)
I think the killer problem with vorbis in avi was that it became unseekable. But either way, since decoding's not going to be supported without installing codecs (or mplayer), and essentially nothing has built-in support for it, there's no reason not to install a splitter for mkv at the same time. And the only reason to ever use ogm is if you're sending something to one of those people stuck in 2002, occasionally posting testy LJs about these new codecs that don't work with their Nimo pack. :p
joseph5
25th March 2007, 18:18
However, I've seen perfectly working vorbis+xvid-in-avi files already (produced by vdubmod I suppose, since it lets you do exactly that, without telling you you shouldn't xD).Actually, vdubmod will allow you to mux vorbis audio in an avi file only if you install the Vorbis ACM codec.
Brother John
26th March 2007, 21:35
Vorbis ACM codec.
Arghh! Don't even mention that thing! It's evil! EEEVIL!!!
So, if we stay realistic, the only feasible container for MPEG-4 video and Vorbis audio ist Matroska.
Blue_MiSfit
2nd April 2007, 11:25
the only reason to ever use ogm is if you're sending something to one of those people stuck in 2002, occasionally posting testy LJs about these new codecs that don't work with their Nimo pack.
ROFL!!
I actually still have some OGM container DVD backups that I did back in 2003ish times, when I was still a n00b obsessed with hitting b/(p*f) ratios that practically guaranteed q2 @700mb, even though I was loosing half my resolution and still doing 2 pass VBR.
DOH! How far I've come...
I'm still too lazy to go back and fix these.... :D
~MiSfit
jsmith6
16th April 2007, 12:14
Thanks everyone :)
I finally went for MKV. It worked like a charm.
Now if I could have a way to use the Xvid+Vorbis .mkv files in Non-Linear Editors like Vegas and Premiere. I have found some codecs (http://cccp-project.net/) but it didn't work. So I am now I am considering to convert (http://forum.videohelp.com/viewtopic.php?t=268844) the files into another format. Using MKVmerge, I have managed to seperate the Xvid file from the Vorbis file but still Vegas will not read it. Still working on this, but
DarkZell666
16th April 2007, 13:13
Decoding the XviD video and the vorbis audio is one thing.
Splitting them from the MKV container is another, and Vegas probably doesn't support MKV.
I have my video in an Xvid file and the audio in an Ogg file. How do I merge them?I think you've done a full circle now ;) So if you really want to work with that file, you're gonna have to install vdubmod (try the last official released 1.5.10.2 "all inclusive" here (http://sourceforge.net/project/showfiles.php?group_id=65889&package_id=63653&release_id=352709)) and the vorbis acm codec (here (http://www.free-codecs.com/download/Ogg_Vorbis_CODEC_for_MSACM.htm) or here (http://www.free-codecs.com/download/Vorbis_Ogg_ACM.htm), not sure which is the correct one) (Brother John please don't hit me :p), and mux them into avi (and that'll only work if Vegas relies on VFW & ACM codecs to do the decoding, which I don't have a clue about).
(or you can try and get your hands on an old avi-mux gui version ^^')
Else, just reencode the audio to mp3 and get the job done. You'll loose some quality but you won't loose any more time trying to do something "wierd" like putting ogg in avi :p
Sidenote: the CCCP is great for DirectShow based stuff (WMP, MPC and Nero being the first that come to my mind), but useless for anything else. Vdub(+mod), Vegas, Premiere, etc are all based on VFW (Video For Windblows) & ACM (Audio Compression Manager) AFAIK, so no wonder it didn't solve your problem.
foxyshadis
19th April 2007, 09:27
You'll probably just break things trying to use vorbis ACM, it's a huge pain getting existing oggs into wav containers, or at best get bad quality (that old version had a few decoding bugs, couldn't seek well, and its encoder was really bad). Instead, just decompress the audio, remux it with the video into an avi, and load that into vegas or whatever NLE you need. Uncompressed audio isn't really that hard on drive space, and you'll have to recompress it when you're done no matter what method you use. If the size is too much, you can switch to 320 mp3 with lame. Unfortunately, there isn't a way to turn the bit reservior off entirely in lame acm, but precision is still better than the much larger reservior and multiple windows vorbis uses.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.