Use long option for stream index for better clarity

Former-commit-id: 14d457b946
This commit is contained in:
alex6dj 2021-08-05 15:14:37 -04:00
parent 75386b6dac
commit 8633937f52
2 changed files with 2 additions and 2 deletions

View file

@ -334,7 +334,7 @@ public void Builder_BuildString_SubtitleHardBurnFilter()
.WithParameter("PrimaryColour", "&HAA00FF00"))))) .WithParameter("PrimaryColour", "&HAA00FF00")))))
.Arguments; .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); str);
} }

View file

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