From 5bc1e56f75bec8e52910b50931c543037855995f Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Wed, 11 Sep 2024 07:09:51 +0200 Subject: [PATCH] Add "Intel Quick Sync" for "video burn in" - thx ghostminhtoan :) Fix #8814 Added "h264_qsv" + "hevc_qsv" video encoders --- src/ui/Forms/GenerateVideoWithHardSubs.Designer.cs | 4 +++- src/ui/Forms/GenerateVideoWithHardSubs.cs | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ui/Forms/GenerateVideoWithHardSubs.Designer.cs b/src/ui/Forms/GenerateVideoWithHardSubs.Designer.cs index 12a5e611b..2cc77cf7d 100644 --- a/src/ui/Forms/GenerateVideoWithHardSubs.Designer.cs +++ b/src/ui/Forms/GenerateVideoWithHardSubs.Designer.cs @@ -1083,7 +1083,9 @@ namespace Nikse.SubtitleEdit.Forms "hevc_nvenc", "h264_amf", "hevc_amf", - "prores_ks"}); + "prores_ks", + "h264_qsv", + "hevc_qsv"}); this.comboBoxVideoEncoding.Location = new System.Drawing.Point(95, 49); this.comboBoxVideoEncoding.MaxLength = 32767; this.comboBoxVideoEncoding.Name = "comboBoxVideoEncoding"; diff --git a/src/ui/Forms/GenerateVideoWithHardSubs.cs b/src/ui/Forms/GenerateVideoWithHardSubs.cs index b79405b6f..81ddc9f79 100644 --- a/src/ui/Forms/GenerateVideoWithHardSubs.cs +++ b/src/ui/Forms/GenerateVideoWithHardSubs.cs @@ -1163,7 +1163,7 @@ namespace Nikse.SubtitleEdit.Forms audioCutTracks); } - private string GetPixelFormat(string text) + private static string GetPixelFormat(string text) { if (string.IsNullOrEmpty(text)) { @@ -1522,6 +1522,13 @@ namespace Nikse.SubtitleEdit.Forms comboBoxTune.Visible = false; comboBoxTune.Text = string.Empty; } + else if (videoCodec == "h264_qsv" || videoCodec == "hevc_qsv") // Intel + { + items = new List { string.Empty }; + labelTune.Visible = false; + comboBoxTune.Visible = false; + comboBoxTune.Text = string.Empty; + } comboBoxTune.Items.Clear(); foreach (var item in items)