diff --git a/src/main/java/net/knarcraft/ffmpegconverter/utility/FFMpegHelper.java b/src/main/java/net/knarcraft/ffmpegconverter/utility/FFMpegHelper.java index 367da89..3dd50b0 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/utility/FFMpegHelper.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/utility/FFMpegHelper.java @@ -221,7 +221,7 @@ public final class FFMpegHelper { private static void addInternalImageSubtitle(List command, SubtitleStream subtitleStream, VideoStream videoStream) { command.add("-filter_complex"); - String filter = String.format("[0:v:%d][0:%d]overlay", videoStream.getAbsoluteIndex(), + String filter = String.format("[0:v:%d][0:%d]overlay", videoStream.getRelativeIndex(), subtitleStream.getAbsoluteIndex()); command.add(filter); }