Fix cut video duration - thx Alxndr :)

Fix #6841
This commit is contained in:
niksedk 2023-04-17 19:32:47 +02:00
parent e0be31a384
commit 39472cd5cc

View File

@ -701,7 +701,8 @@ namespace Nikse.SubtitleEdit.Forms
cutStart = $"-ss {start.Hours:00}:{start.Minutes:00}:{start.Seconds:00}";
var end = GetCutEnd();
cutEnd = $"-to {end.Hours:00}:{end.Minutes:00}:{end.Seconds:00}";
var duration = end - start;
cutEnd = $"-t {duration.Hours:00}:{duration.Minutes:00}:{duration.Seconds:00}";
}
return VideoPreviewGenerator.GenerateHardcodedVideoFile(