Log in

View Full Version : No sound when converting OGM to AVI


vps
19th March 2005, 19:28
Hi !

I have this OGM file I'm trying to make an AVI out of.
Looks like nothing complicated, but whatever I do, I get no audio when I save an .AVI. This is using "full processing" on the audio stream, and recoding into MP3. I have to use "Save WAV" from "Stream List" screen, and then add this ".wav" into the stream list in the same session, and then save .avi using this new stream as an audio source, only then this works.
I don't see the difference betwen 'saving .wav' and just muxing it into an .avi file.... The .ogm info is below. This is using VDubMod 1.5.10.1

Thanks !
vps.


Input files :
- [xxxx]

---== Video stream ==---
Source : [Input Ogg Media File]
Description : Video stream
Length : 00:21:41.840
Video stream
Header Size : 56 bytes
Type : [video]
SubType : [XVID]
BufferSize : 98857 bytes
Time Unit : 400000
SamplesPerUnit : 1
Default Len : 1
BitsPerSample : 12
Width : 512 pixels
Height : 384 pixels
SampleRate : 25.000
Stream report for file "xxxx"
No apparent problem have been encountered while parsing the stream.

---== Other stream ==---
Source : [Ogg Media File]
Description : OGM audio stream 1 [Vorbis], 2ch, 48000Hz, 112.0kbps
Length : 00:21:41.685
Vorbis stream
Vorbis information :
Version : 0
Channels : 2
SampleRate : 48000
BitRate Lower : 0 bps
BitRate Nominal : 112001 bps
BitRate Upper : 0 bps
BitRate Window : 0
Stream report for file "xxxx"
No apparent problem have been encountered while parsing the stream.

---== Other stream ==---
Source : [Ogg Media File]
Description : OGM audio stream 2 [Vorbis], 2ch, 48000Hz, 64.2kbps
Length : 00:21:41.811
Vorbis stream
Vorbis information :
Version : 0
Channels : 2
SampleRate : 48000
BitRate Lower : 0 bps
BitRate Nominal : 64161 bps
BitRate Upper : 0 bps
BitRate Window : 0
Stream report for file "xxxx"
No apparent problem have been encountered while parsing the stream.

---== Ogg Media File Import filter report ==---
Source file : [xxxx]
No apparent corrupted data

stephanV
20th March 2005, 10:23
for the last time, you cannot mux Vorbis into AVI. convert it to MP3.

planet1
20th March 2005, 12:17
Why dont you mux your Vorbis + XviD streams into Matroska ?

Tools:

AviMux

or MKVToolnix

Leak
20th March 2005, 16:31
Originally posted by stephanV
for the last time, you cannot mux Vorbis into AVI. convert it to MP3.

Eh... he tried that. "Full processing" on an audio stream means you have to reencode it...

Dunno why this shouldn't work when saving to WAV works, though.

np: Markus Guentner - Gattaca (Regensburg Remixe)

vps
20th March 2005, 20:36
Originally posted by planet1
Why dont you mux your Vorbis + XviD streams into Matroska ?


If I was only sure my Philips DVP642 would play that :)
I'd rather leave it as OGG anyway.

stephanV
20th March 2005, 20:40
I have doubts if you really uncompressed the audio to WAV and do not just have a Vorbis stream with a WAV header. It is easier to convert the audio by demuxing it and then re-encode it to MP3 with e.g. foobar and mux it with VDM again.

bond
20th March 2005, 23:35
for reencoding vorbis to mp3 _in virtualdub_ you would need a vorbis acm decoder, which doesnt really exist (vorbis isnt really suitable for vfw)

vps
21st March 2005, 01:46
Originally posted by stephanV
I have doubts if you really uncompressed the audio to WAV and do not just have a Vorbis stream with a WAV header. It is easier to convert the audio by demuxing it and then re-encode it to MP3 with e.g. foobar and mux it with VDM again.

That is possible, the file does have this weird 0x84FB at the beginning. However, the file size is as it's compressed, then it could only compress it with MP3, as that is that was set in VDubMod. When I remux this MP3 (direct stream copy) and recode video into an .avi file, it looks OK, at least VirtualDub (_NOT_ Mod) report sane audio and video streams.

Btw, what's "foobar" ? :confused: I haven't really found any tools on doom9's software page, that can make an MP3(or PCM) from OGG (only vise a versa).

Thanks !

stephanV
21st March 2005, 09:35
foobar (or foobar2000)? use google. basically, it is an audio player, but it can also recode tracks from codec x to codec y. You probably will find some more info in the audio encoding forum (try stickies).

Inventive Software
22nd March 2005, 14:21
What MP3 codec are you using? LAME (http://lame.sourceforge.net) is the best MP3 codec out there and don't let anybody tell you otherwise. Saying that, is the video stream you got being copied via "Direct Stream Copy"?