I need your help with a command line for ffmpeg that I just started to use.
Here's the deal :
I have a .MOV file witch contains 18 audio streams (for 7.1). Stream 1 to 10 is for original language and stream 11 to 18 is for French version.
What I want to do :
- merge stream 1 (Lt) and 2 (Rt) in a single orginal language stereo track
- merge stream 10 (Lt) and 11 (Rt) in a single French language stereo track
- Tag them properly to identify them when playing the video.
Here's my command :
ffmpeg -ss 00:00:00.00 -t 00:15:00.00 -i input.MOV
-map 0:v:0 -map 0:a:0 -map 0:a:1 -map 0:a:2 -map 0:a:3 -map 0:a:4 -map 0:a:5 -map 0:a:6 -map 0:a:7 -map 0:a:8 -map 0:a:9 -map 0:a:10 -map 0:a:11 -map 0:a:12 -map 0:a:13 -map 0:a:14 -map 0:a:15 -map 0:a:16 -map 0:a:17
-filter_complex "[0:a:0][0:a:1]amerge=inputs=2[a];[0:a:10][0:a:11]amerge=inputs=2[a]"
-map "[a]" -map "[a]"
-metadata:s:a:0 language="eng" -metadata:s:a:0 title="Stéréo - Version Originale"
-metadata:s:a:1 language="fra" -metadata:s:a:1 title="Stéréo - Français"
-c:a output.MOV
My problems :
- video is not include and audio streams are "inverted"
- When I execute it, I have these warnings :
[Parsed_amerge_0 @ 000001f8f0340240] No channel layout for input 1
[Parsed_amerge_1 @ 000001f8f0283940] No channel layout for input 1
[Parsed_amerge_0 @ 000001f8f0340240] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
[Parsed_amerge_1 @ 000001f8f0283940] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
How can I fix this ?
I precise that I don't wan't any loss of quality.
Thank you all for your help ;)