Downmix to stereo option should be more flexible
As I'm sure a number of users do... I have multiple devices which I use to stream. One is a Samsung BDP-C5500 which does a great job and supports ac3 multi-channel audio just fine. But I also use DirecTV receivers which require mp2 audio. If I set the option to keep original audio, the ffmpeg args are constructed such that it tries to specify 6 channel audio in mp2 format. ffmpeg doesn't like this and croaks. If I set to downmix to stereo, it works fine but I of course will not get surround sound when any transcoding is required for the Samsung.
I'm sure there are a number of ways to address this, one that seems most logical to me would be to allow downmixing to be configured per profile.
FYI, an ughly little hack that I am using is to have a wrapper script for ffmpeg that changes the '-ac 6' option to '-ac 2' whenever the argument list includes '-acodec mp2'. This way I can leave the 'keep original audio' option checked.
Moved ffmpeg to ffmpeg.bin and saved the following as ffmpeg:
#!/usr/bin/perl
my $args = join(' ',@ARGV);
if ($args =~ /-acodec mp2/) {
$args =~ s/ac \d/ac 2/;
}
exec "$0.bin $args";
I'm sure there are a number of ways to address this, one that seems most logical to me would be to allow downmixing to be configured per profile.
FYI, an ughly little hack that I am using is to have a wrapper script for ffmpeg that changes the '-ac 6' option to '-ac 2' whenever the argument list includes '-acodec mp2'. This way I can leave the 'keep original audio' option checked.
Moved ffmpeg to ffmpeg.bin and saved the following as ffmpeg:
#!/usr/bin/perl
my $args = join(' ',@ARGV);
if ($args =~ /-acodec mp2/) {
$args =~ s/ac \d/ac 2/;
}
exec "$0.bin $args";