Log in

View Full Version : How do you separate video and audio from and ogm file format?


kastro68
23rd March 2002, 11:30
The only possible problem with ogm may be compatibility and editing issues. To me ogg vorbis audio does sound good but I still use mp3 for compatibility and convenience.

I joined an xvid video with ogg vorbis audio using graphedit and it works nicely...HOWEVER, I am having trouble separating the video and audio now. Does anyone know how I can do this using graph edit. With standard avi files it is easy to separate the video from audio using Vdub.

Thx

atracus
24th March 2002, 11:25
Hi,
I could separate audio from an ogm through the following sequence of filters in Graphedit (all are DSF):

1. File Source (Async.) - this is where you select your .ogm
2. Ogg Splitter
[now join (1.) Output Pin to (2.) In Pin]
3. Ogg Multiplexer
[now join (2.) Video 0 Pin to (3.) Stream 0 Pin]
4. File Writer
[now join (3.) Ogg Stream Pin to (4.) In Pin]

The outfile was 1 byte longer (out of ab.70Megs) than the "original" .ogg, BUT it worked nicely (time-length is ok).

Anyway, I couldn't manage to split out Video using this method: the outfile is playable by BSPlay and WMP, contains no audio, but VDub refuses to open it; I also tried to change its fourCC codes to the right ones (divx and DX50 in my case), but NO WAY.

Should anyone find how to help out, thanks in advance!

celtic_druid
24th March 2002, 14:19
http://members.optushome.com.au/spamcatcher/graph.gif
This will give you a PCM wave file and a video only AVI file. You will probably find that you have to rederive the key frames though.

kastro68
24th March 2002, 15:23
Thx

Acaila
26th March 2002, 19:53
No need to rederive the keyframes. Just check "full interleaving" in the avi mux filter before you demux the video and you should end up with a perfectly valid video stream.