Browse Source

update logging

pull/1949/head
Jason Dove 8 months ago
parent
commit
8d95b19b1d
No known key found for this signature in database
  1. 16
      ErsatzTV.FFmpeg/Capabilities/HardwareCapabilitiesFactory.cs
  2. 16
      ErsatzTV/Pages/FFmpegEditor.razor

16
ErsatzTV.FFmpeg/Capabilities/HardwareCapabilitiesFactory.cs

@ -325,13 +325,23 @@ public class HardwareCapabilitiesFactory : IHardwareCapabilitiesFactory @@ -325,13 +325,23 @@ public class HardwareCapabilitiesFactory : IHardwareCapabilitiesFactory
}
if (profileEntrypoints is not null && profileEntrypoints.Count != 0)
{
if (display == "drm")
{
_logger.LogDebug(
"Detected {Count} VAAPI profile entrypoints for using {Display} {Driver} {Device}",
"Detected {Count} VAAPI profile entrypoints using {Driver} {Device}",
profileEntrypoints.Count,
display,
driver,
device);
}
else
{
_logger.LogDebug(
"Detected {Count} VAAPI profile entrypoints using {Display} {Driver}",
profileEntrypoints.Count,
display,
driver);
}
_memoryCache.Set(cacheKey, profileEntrypoints);
return new VaapiHardwareCapabilities(profileEntrypoints, _logger);
}
@ -394,7 +404,7 @@ public class HardwareCapabilitiesFactory : IHardwareCapabilitiesFactory @@ -394,7 +404,7 @@ public class HardwareCapabilitiesFactory : IHardwareCapabilitiesFactory
if (profileEntrypoints is not null && profileEntrypoints.Count != 0)
{
_logger.LogDebug(
"Detected {Count} VAAPI profile entrypoints for using QSV device {Device}",
"Detected {Count} VAAPI profile entrypoints using QSV device {Device}",
profileEntrypoints.Count,
device);

16
ErsatzTV/Pages/FFmpegEditor.razor

@ -110,12 +110,10 @@ @@ -110,12 +110,10 @@
@if (_model.HardwareAcceleration == HardwareAccelerationKind.Vaapi)
{
<MudElement HtmlTag="div" Class="mt-3">
<MudSelect Disabled="@(_model.HardwareAcceleration != HardwareAccelerationKind.Vaapi)"
Label="VAAPI Display"
@bind-Value="_model.VaapiDisplay" For="@(() => _model.VaapiDisplay)">
@foreach (string display in _vaapiDisplays)
<MudSelect Disabled="@(_model.HardwareAcceleration != HardwareAccelerationKind.Vaapi)" Label="VAAPI Driver" @bind-Value="_model.VaapiDriver" For="@(() => _model.VaapiDriver)">
@foreach (VaapiDriver driver in Enum.GetValues<VaapiDriver>())
{
<MudSelectItem Value="@display">@display</MudSelectItem>
<MudSelectItem Value="@driver">@driver</MudSelectItem>
}
</MudSelect>
</MudElement>
@ -124,10 +122,12 @@ @@ -124,10 +122,12 @@
@if (_model.HardwareAcceleration == HardwareAccelerationKind.Vaapi)
{
<MudElement HtmlTag="div" Class="mt-3">
<MudSelect Disabled="@(_model.HardwareAcceleration != HardwareAccelerationKind.Vaapi)" Label="VAAPI Driver" @bind-Value="_model.VaapiDriver" For="@(() => _model.VaapiDriver)">
@foreach (VaapiDriver driver in Enum.GetValues<VaapiDriver>())
<MudSelect Disabled="@(_model.HardwareAcceleration != HardwareAccelerationKind.Vaapi)"
Label="VAAPI Display"
@bind-Value="_model.VaapiDisplay" For="@(() => _model.VaapiDisplay)">
@foreach (string display in _vaapiDisplays)
{
<MudSelectItem Value="@driver">@driver</MudSelectItem>
<MudSelectItem Value="@display">@display</MudSelectItem>
}
</MudSelect>
</MudElement>

Loading…
Cancel
Save