From ce958bb7bb431621a3d9ca5a53f2ecd09180567c Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Sun, 5 May 2024 08:53:34 -0500 Subject: [PATCH] enable video profile editing for qsv (#1704) --- ErsatzTV/Pages/DecoEditor.razor | 16 ++++++++++------ ErsatzTV/Pages/FFmpegEditor.razor | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ErsatzTV/Pages/DecoEditor.razor b/ErsatzTV/Pages/DecoEditor.razor index a2a099dd..efd6898a 100644 --- a/ErsatzTV/Pages/DecoEditor.razor +++ b/ErsatzTV/Pages/DecoEditor.razor @@ -52,7 +52,11 @@ - Dead Air Fallback + + Dead Air Fallback +   + + When no playout item is found for the current time, *one* item will be randomly selected from this collection and looped and cut to exactly fit until the start of the next playout item. @@ -67,7 +71,7 @@ Disable Override - @@ -168,7 +172,7 @@ private DecoEditViewModel _deco = new(); private List _watermarks = []; - + private List _mediaCollections = []; private List _multiCollections = []; private List _smartCollections = []; @@ -186,7 +190,7 @@ protected override async Task OnParametersSetAsync() { await LoadWatermarks(); - + _mediaCollections = await Mediator.Send(new GetAllCollections(), _cts.Token) .Map(list => list.OrderBy(vm => vm.Name, StringComparer.CurrentCultureIgnoreCase).ToList()); _multiCollections = await Mediator.Send(new GetAllMultiCollections(), _cts.Token) @@ -202,7 +206,7 @@ await LoadDeco(); } - + private async Task LoadWatermarks() => _watermarks = await Mediator.Send(new GetAllWatermarks(), _cts.Token); @@ -256,7 +260,7 @@ _deco.DeadAirFallbackMediaItem?.MediaItemId, _deco.DeadAirFallbackMultiCollection?.Id, _deco.DeadAirFallbackSmartCollection?.Id); - + Seq errorMessages = await Mediator .Send(request, _cts.Token) .Map(e => e.LeftToSeq()); diff --git a/ErsatzTV/Pages/FFmpegEditor.razor b/ErsatzTV/Pages/FFmpegEditor.razor index 4573b134..018ba79d 100644 --- a/ErsatzTV/Pages/FFmpegEditor.razor +++ b/ErsatzTV/Pages/FFmpegEditor.razor @@ -63,7 +63,7 @@ + Disabled="@(_model.VideoFormat != FFmpegProfileVideoFormat.H264 || (_model.HardwareAcceleration != HardwareAccelerationKind.Nvenc && _model.HardwareAcceleration != HardwareAccelerationKind.Qsv && _model.HardwareAcceleration != HardwareAccelerationKind.None))"> main high