I'm using Plex, which always considers the first audio stream, but is also failing to decode surround media files on my stereo system (my laptop).
For that reason, I intend to downmix (following a formula suggested in this answer, which is an improvement over -ac 2
) a bunch of files so I have:
Stream 0:0 > Video
Stream 0:1 > 2.0 Filtered audio
Stream 0:2 > 5.1 Original audio
The problem is that while my downmixing requires filtering, the doubling of a stream requires copying and I found out that these 2 doesn't seem to go together, although it seems to me this could be done because while the filtering and copying are applied for the same input stream, they're not for the same output stream.
Here's my currently failing command:
ffmpeg -i "INPUT.mkv" -map 0:v -c:v copy -map 0:a:0 -c:a:0 ac3 -vol 425 -filter_complex "[0:a:0]pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE" -map 0:a:0 -c:a:0 copy "OUTPUT.mkv"
Is there a way to do it?