Score:0

ffmpeg wav quad to mp3

hk flag

First the quad to 4 mono files: ffmpeg -i den4.wav -filter_complex "[0:a]channelsplit=channel_layout=quad:channels=FL[left]" -map "[left]" front_left.mp3

and the same for the others channels (FR BL BR)

then

ffmpeg -i front_left.mp3 -i front_right.mp3 -i back_left.mp3 -i back_right.mp3 -filter_complex "[0:a][1:a][2:a][3:a]join=inputs=4:channel_layout=quad[a]" -map "[a]" den4.mp3

The result is:

  Stream #0:0 (mp3float) -> join:input0
  Stream #1:0 (mp3float) -> join:input1
  Stream #2:0 (mp3float) -> join:input2
  Stream #3:0 (mp3float) -> join:input3
  join -> Stream #0:0 (libmp3lame)
Press [q] to stop, [?] for help
Output #0, mp3, to 'den4.mp3':
  Metadata:
    TSSE            : Lavf58.29.100
    Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp (default)

My original wav is sr 96000 and quad. How to keep channels and the sr as the input?

Thanks

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.