diff --git a/src/ui/Forms/GenerateVideoWithHardSubs.cs b/src/ui/Forms/GenerateVideoWithHardSubs.cs index 390857c07..53a3ecfd4 100644 --- a/src/ui/Forms/GenerateVideoWithHardSubs.cs +++ b/src/ui/Forms/GenerateVideoWithHardSubs.cs @@ -2145,7 +2145,21 @@ namespace Nikse.SubtitleEdit.Forms item.SubtitleFileFileSizeInBytes = new FileInfo(subFileName).Length; } - var vInfo = UiUtil.GetVideoInfo(fileName); + + var vInfo = new VideoInfo { Success = false }; + if (fileName.EndsWith(".mp4", StringComparison.OrdinalIgnoreCase)) + { + vInfo = QuartsPlayer.GetVideoInfo(fileName); + if (!vInfo.Success) + { + vInfo = LibMpvDynamic.GetVideoInfo(fileName); + } + } + + if (!vInfo.Success) + { + vInfo = UiUtil.GetVideoInfo(fileName); + } var listViewItem = new ListViewItem(fileName); listViewItem.Tag = item;