Open Kais3rP opened 2 years ago
FWIW this is how I got it to work:
var command = new ffmpeg(sourceFilename).addOption([
'-map 0',
'-map -0:a:0',
'-map -0:a:1',
'-map -0:a:2',
'-map -0:a:3',
'-map -0:a:4',
'-c copy'
]);
inputOptions
puts the params at the wrong point for it to work. Not sure if the above is recommended but it worked for my simple use case, hope it helps.
I'm trying to understand how to use the
-map
command influent-ffmpeg
but did not find any reference in docs, I need to addVTT
subtitles to a video input, and the all the resources I found suggest to use this approach:But I have no idea where to set the
-map
commands, since they do not belong to a specificinput
I tried withinputOptions
oraddOptions
without success.