Use long option for stream index for better clarity

This commit is contained in:
alex6dj 2021-08-05 15:14:37 -04:00
parent 6247bf6ea4
commit 14d457b946
2 changed files with 2 additions and 2 deletions

View file

@ -334,7 +334,7 @@ public void Builder_BuildString_SubtitleHardBurnFilter()
.WithParameter("PrimaryColour", "&HAA00FF00")))))
.Arguments;
Assert.AreEqual("-i \"input.mp4\" -vf \"subtitles=sample.srt:charenc=UTF-8:original_size=1366x768:si=0:force_style='FontName=DejaVu Serif\\,PrimaryColour=&HAA00FF00'\" \"output.mp4\"",
Assert.AreEqual("-i \"input.mp4\" -vf \"subtitles=sample.srt:charenc=UTF-8:original_size=1366x768:stream_index=0:force_style='FontName=DejaVu Serif\\,PrimaryColour=&HAA00FF00'\" \"output.mp4\"",
str);
}

View file

@ -74,7 +74,7 @@ public SubtitleHardBurnOptions SetOriginalSize(Size size)
/// </remarks>
public SubtitleHardBurnOptions SetSubtitleIndex(int index)
{
return WithParameter("si", index.ToString());
return WithParameter("stream_index", index.ToString());
}
/// <summary>