Adds ability to force-select specific audio and subtitle streams for the anime converter
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good

This commit is contained in:
2022-10-09 23:53:39 +02:00
parent 388563574f
commit 1323513e46
23 changed files with 144 additions and 49 deletions

View File

@ -33,7 +33,7 @@ public class AudioConverter extends AbstractConverter {
}
//Gets the first audio stream from the file and adds it to the output file
AudioStream audioStream = getFirstAudioSteam(streams);
AudioStream audioStream = getNthAudioSteam(streams, 0);
FFMpegHelper.addAudioStream(command, audioStream, false);
command.add(outFile);
@ -44,4 +44,5 @@ public class AudioConverter extends AbstractConverter {
public String[] getValidFormats() {
return audioFormats;
}
}