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: Limit number of channels to 6 (Read 5437 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Limit number of channels to 6

Hi,

i use costum action in thunar to convert audio files to aac. the script is very simple

Code: [Select]
ffmpeg -i file -nostdin -f wav - | fdkaac -I -m 2 - -o output

i use a pipe with ffmpeg because it supports more input formats. i want to keep the number of channels of the input file, except its more then 6, when the output file should have 6 channels. i dont need 6.1 or 7.1 or such things. i cant find an option to limit the channels in ffmpeg or fdk aac. there is only the option to set the channels to n. For that i need to edit the script: read out the channels of the input file and keep it or set the output channels to 6 if its a input with 6+ channels. before i do this i want to ask if there are option in ffmpeg or fdk aac to do this.