PDA

View Full Version : How do I mux a 2 chained streams OGG with a OGM vid?


ZZCas
26th September 2003, 04:21
How do I mux a 2 chained streams OGG with a OGM vid? I tried with VDubMod and with OggMux but both only seem to see the first chain of the OGG :( So after muxing the ogm and the ogg to a new ogm i can only hear the first ogg chain inside the new ogm and the second chain is silence until the end. I guess I'm gonna have to append the two WAVs together and reencode it as a new ogg and at the end its gonna be a one chain ogg stream and im gonna be able to mux it with the ogm without any problem but I was hoping for a better solution?

Koepi
26th September 2003, 08:10
The problem with chained oggs is, that the timestamps for the 2nd part of the chain, and for the third,... and so on always start at 00:00:00.000.
That's why you won't hear the second chain - the parser (OggSplitter) needs sound for the timestamp 00:45:20.000, but gets sound for 00:00:00.000 - so it drops it. This behaviour is exactly what we need and want: since ogg vorbis is VBR we need those timestamps so that the audio stays in sync with the video.

So your solution is indeed "chaining" (merging/appending) the wav-files together with an audio program and then encode it to a single, unchained ogg vorbis file.

I hope this helps,

Regards
Koepi

P.S.: this reminds me. we should ask Cyrius or MoBu if they could write an "ogg-dechainer" which just takes a chained ogg (vorbis) file and rewrites the timestamps to unchain the stream. Might be possible, maybe there is already such a solution. This problem occurs from time to time, so there would be a demand for such a tool...