Log in

View Full Version : Muxing four channels in flac


Overdrive80
1st November 2019, 19:40
Hi,

I am trying create one flac file with four channels, without anything of channel layout.

Its objective is not to be compatible with its reproduction is simply to save editions between channels. There is fusion between channels but in order not to lose the original file and not have it in another file, I wanted to save it this way.

Really, the final file would be stereo audio. I understand that they say that it is not normal, but that is not the debate.

I got something similar with * .mov format, but I wanted to use flac.

Thanks in advance.

tebasuna51
2nd November 2019, 11:05
Inside flac must have a channel layout, the default for 4 channels is 2.2.0:
4 channels: front left, front right, back left, back right

You can use:

ffmpeg -i chan_1 -i chan_2 -i chan_3 -i chan_4 -filter_complex "join=inputs=4:channel_layout=FL+FR+SL+SR:map=0.0-FL|1.0-FR|2.0-SL|3.0-SR" 4_channel.flac

and remember, when extract, the order.

Overdrive80
4th November 2019, 18:50
Ok, thanks so much, I will test it. Regards.