PDA

View Full Version : Multi-channel OGG problems


Link00y
21st November 2006, 22:11
Hi there,

I recoded a 2 audio channel WMV file to a MKV file - basically because WMP is the only player I had to change audio streams. As MKV is not able to handle WMA audio I decided to go for a conversion to 5.1 OGG (as the base WMA files were also 5.1). Now my problem is:

after many gaps I had to come over, those were:
-I converted the WMA file using a modifed DirectShowSource.Dll for AviSynth in GraphEdit using WavDest --> 5.1 channel WAV
-oggenc2 detected that this WAV has no channel order, the encrypted OGG file didn't properly work in Media Player Classic
-I recompiled oggenc2 with a different channel matrix for no-order WAVe files (i used the standard 6 channel matrix) and then the OGG file worked in MPC.. and WMP..

Actually, I haven't tested my files on too much software because:
-WMP, MPC and all DirectShow based players played it correctly.. I tested the following codecs:
CoreVorbis, ffdShow audio (using libavcodec and tremor), internal decoder of MPC
-VideoLAN on Linux x86 and Windows played correctly
-Winamp only played them correcly if I set the Vorbis decoder to "remap channel" and channel matrix to "Correct", otherwise it plays them incorrectly
-xine (Linux x86) and MPlayer (Linux x86/Windows) play them the same way as if Winamp is set to "leave as is" mode - so the channel order is INCORRECT

Now basically I wondered.. who has the defective channel order? Are all DirectShow decoders defective??? Or did I misencode the audio? Or are the Linux decoders defective?

Should I have taken another codec?

Btw: both files are online, the original WMA and OGG of one audio stream:
http://link.man-ma.de/rc/english.wma
http://link.man-ma.de/rc/english.ogg

Thank you,

Link00y

tebasuna51
22nd November 2006, 01:44
Your ogg sample is ok, have the same channel than the original wma. If a decoder play with wrong channel mapping is a wrong decoder.

BTW I recoded directly the wma to ogg (without intermediate wav files) with BeHappy (BassAudio decoder -> oggenc2 Q=5) in less than 1 min. with a equivalent output file.

Link00y
22nd November 2006, 14:06
thanks for testing, seems like the two Linux players basically mess it up - anyway, I'll have to note leechers then (although I do not expect too many).

And besides: Thank you for the tip with BeHappy I played around with it and I am impressed - I already thought about quickly changing the audio codec to AAC - but the players on Linux can only decode that in stereo - and AC3 doesn't want to work because of a broken pipe. I guess people have to live with that. Thanks!