ffmpeg -i input.mkv -filter_complex "[0:1] [0:2] amerge" -c:a ...
Use ffmpeg -i "!original!" -map 0:v -map 0:a -c:v libx265 -preset medium -crf 28 -c: a copy "g:\Prepare\Convert\!file!" FFmpeg by default only picks ...
file index: stream specifier:stream index is more flexible and efficient; ...
-map 1:a:2 refers to "second input:audio only:third audio stream".
On 02/05/12 04:56, Dieter Knopf wrote: > Hello, > > i have a problem converting a mkv file with multiple audio streams > with the -acodec copy ...
The demuxer is more flexible – it requires the same codecs, but different container
I'm trying to re-encode video streams from a Matroska file to save space, while keeping all the subtitles as-is, using
I believe you need to specify the mapping of the audio and subtitle streams to ensure that all of them are copied through rather than the first.
You can use the -map option to choose specific streams. To get a list of the available streams, run ffmpeg -i INPUT_FILE.EXT (Do not forget -i !) ...
for file in *; do ffprobe $file 2>&1 |grep Audio; done