// This function tries to calculate the output stream index needed for -metadata:s:x and -disposition:x arguments
// It is based on the assumption that copyFileStreamsFiltered contains the order of the input files (and their respective streams orders) sent to ffmpeg, to hopefully calculate the same output stream index values that ffmpeg does internally.
@ -383,6 +383,8 @@ function useFfmpegOperations({ filePath, treatInputFileModifiedTimeAsStart, trea
...getOutputPlaybackRateArgs(),
...rotationArgs,
...inputArgs,
...mapStreamsArgs,
@ -405,8 +407,6 @@ function useFfmpegOperations({ filePath, treatInputFileModifiedTimeAsStart, trea