HydrogenAudio

Lossy Audio Compression => Ogg Vorbis => Ogg Vorbis - Tech => Topic started by: McKebapp on 2011-11-18 19:15:59

Title: 7.1 FLAC to Vorbis --> Channel mapping ist totally messed up
Post by: McKebapp on 2011-11-18 19:15:59
Hi Gals and Guys,

I'm a little lost. I try to encode a 7.1 FLAC File to a 7.1 Vorbis File.
For some strange kind of reason, the mapping of the encoded file is totally messed up.
Front Right is on Center, Right Side on LFE, Right Rear ist Left Rear and so on.

I don't know what I'm doing wrong.

For encoding I use the command line encoder "Oggenc2.87 using aoTuVb6.03".
My settings are: c:\vorbis\oggenc2 -k -m160 -q8 71file.flac.
The resulting  71file.oga plays nicely and is very small. But the channels...

Is there any attribute I can set to prevent a remapping? Or any to force a remapping in a particular order?

I'm sorry, I've been searching this forum for hours, but I didn't find anything useful

Thanks in advance,

McK
Title: 7.1 FLAC to Vorbis --> Channel mapping ist totally messed up
Post by: lvqcl on 2011-11-18 19:56:35
decode to WAV, then encode to Vorbis. Maybe this will help.

Or try this (decode & encode without intermediate wav file):
Code: [Select]
flac -d -c 71file.flac | oggenc2 -q8 --ignorelength - -o outfile.ogg
Title: 7.1 FLAC to Vorbis --> Channel mapping ist totally messed up
Post by: aufkrawall on 2011-11-18 20:38:34
Maybe using Oggenc2.87 using libVorbis v1.3.2 is an option?
The changelog lists up a fix regarding 7.1 channel mapping.
Title: 7.1 FLAC to Vorbis --> Channel mapping ist totally messed up
Post by: McKebapp on 2011-11-18 21:31:19
Or try this (decode & encode without intermediate wav file):
Code: [Select]
flac -d -c 71file.flac | oggenc2 -q8 --ignorelength - -o outfile.ogg


Hell Yeah! That did absolutely do the trick!
Could you please explaine a little, what happened?




Maybe using Oggenc2.87 using libVorbis v1.3.2 is an option?
The changelog lists up a fix regarding 7.1 channel mapping.


Yes, thought that, too.
But the libVorbis Version is way older (2010-11-06) than aoTuVb6.03 (2011-05-04).
And aoTuV has also written "multichannel code improved".
So I tried both, and both didn't work at first.


Thank you all very much Guys
Title: 7.1 FLAC to Vorbis --> Channel mapping ist totally messed up
Post by: tuffy on 2011-11-19 04:19:13
Hell Yeah! That did absolutely do the trick!
Could you please explaine a little, what happened?

"flac -d -c" decodes the FLAC file to Wave file data and sends it to stdout.  "oggenc2" takes that Wave data from stdin, understands what order the channels are supposed to be in and then converts them to Vorbis channel order during encoding.

Things got a little messy because Wave 7.1 channel order is:

front left, front right, front center, LFE, back left, back right, side left, side right

while 7.1 Vorbis order is:

front left, front center, front right, side left, side right, back left, back right, LFE

but since FLAC doesn't actually define an assignment for 8 channels, sometimes programs have to wing it.