Browse Source

allow h264 video profile using vaapi (#2485)

pull/2487/head
Jason Dove 3 months ago committed by GitHub
parent
commit
0363609923
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 13
      ErsatzTV/Pages/FFmpegEditor.razor

1
CHANGELOG.md

@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Do not allow deleting ffmpeg profiles that are used by channels
- Allow ffmpeg profiles using VAAPI accel to set h264 video profile
## [25.7.0] - 2025-09-14
### Added

13
ErsatzTV/Pages/FFmpegEditor.razor

@ -79,7 +79,7 @@ @@ -79,7 +79,7 @@
</div>
<MudSelect @bind-Value="_model.VideoProfile"
For="@(() => _model.VideoProfile)"
Disabled="@(_model.VideoFormat != FFmpegProfileVideoFormat.H264 || _model.HardwareAcceleration != HardwareAccelerationKind.Nvenc && _model.HardwareAcceleration != HardwareAccelerationKind.Qsv && _model.HardwareAcceleration != HardwareAccelerationKind.VideoToolbox && _model.HardwareAcceleration != HardwareAccelerationKind.Rkmpp && _model.HardwareAcceleration != HardwareAccelerationKind.None)"
Disabled="@(_model.VideoFormat != FFmpegProfileVideoFormat.H264 || !HardwareAccelSupportsH264Profile(_model.HardwareAcceleration))"
Clearable="true">
<MudSelectItem Value="@VideoProfile.Main">main</MudSelectItem>
<MudSelectItem Value="@VideoProfile.High">high</MudSelectItem>
@ -389,6 +389,17 @@ @@ -389,6 +389,17 @@
}
}
private bool HardwareAccelSupportsH264Profile(HardwareAccelerationKind accel) =>
accel switch
{
HardwareAccelerationKind.None => true,
HardwareAccelerationKind.Nvenc => true,
HardwareAccelerationKind.Qsv => true,
HardwareAccelerationKind.Vaapi => true,
HardwareAccelerationKind.VideoToolbox => true,
_ => false,
};
private Task PersistData()
{
ApplicationState.PersistAsJson("_model", _model);

Loading…
Cancel
Save