Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Renaming "back" channels of 5.1 FLACs (Read 1561 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Renaming "back" channels of 5.1 FLACs

Hi,

I understand that the correct channel naming for 5.1 layouts is: FL, FR, FC, LFE, SL, SR. The last two being "surround", not "back". It's 7.1ch that adds the back channels as BL and BR (or whatever letters are the standard). SL and SR are actually in the "middle" and the added two in 7.1 are placed at the back. Like this diagram. Everything makes sense and we're happy.



BUT, in the old days the common belief was that 5.1 had the "back" channels (BL and BR in the above diagram) and 7.1 added the "side" ones (the word "surround" didn't appear at all). Idk if that was some kind of old standard before the advent of 7.1 or it was wrong all along.

Thing is, some programs still carried the old standard into the era of the "surround" naming convention. Back when I made my own BD remuxes I had quite a lot of discs with LPCM 5.1 which I converted to FLAC. I don't remember which program(s) I used, ffmpeg, foobar probably, but all my FLACs ended up as "L R C LFE Lb Rb". Those last two should really be "Ls Rs". Assuming the program(s) didn't mess with the channels order then it isn't a real issue, the layout is correct, but is there a way of renaming the channels? If I re-encode the FLAC the channel layout carries along and I don't see how to alter it.

Nowadays I convert all LPCM with eac3to which writes the proper channel data as "L R C LFE Ls Rs".

Thanks

Re: Renaming "back" channels of 5.1 FLACs

Reply #1
For FLAC you can use metaflac
Code: [Select]
metaflac.exe --remove-tag=WAVEFORMATEXTENSIBLE_CHANNEL_MASK --set-tag=WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x60f file.flac
Also, some software can remap channels during conversion, for example, foobar2000 with DSP Matrix mixer.

Notice, that some decoders which don't support reading WAVEFORMATEXTENSIBLE_CHANNEL_MASK from FLAC can still treat files as 5.1 back anyway.