From 3b8a19f41893da53ca1974b803d4faa8705a9894 Mon Sep 17 00:00:00 2001 From: ertkaidyn-ai Date: Sun, 29 Mar 2026 22:34:50 -0600 Subject: [PATCH 1/3] fix(amf): enable profile and coder selection for H.264 --- src/video.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/video.cpp b/src/video.cpp index 6b2b635277c..7ee8112a24c 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -812,9 +812,17 @@ namespace video { {"rc"s, &config::video.amd.amd_rc_h264}, {"usage"s, &config::video.amd.amd_usage_h264}, {"vbaq"s, &config::video.amd.amd_vbaq}, + {"coder"s, &config::video.amd.amd_coder}, {"enforce_hrd"s, &config::video.amd.amd_enforce_hrd}, }, - {}, // SDR-specific options + { + // SDR-specific options + {"profile"s, [](const config_t &cfg) { + if (cfg.profile == 66) return "baseline"s; + if (cfg.profile == 77) return "main"s; + return "high"s; + }}, + }, {}, // HDR-specific options {}, // YUV444 SDR-specific options {}, // YUV444 HDR-specific options From b8c4ac4eacf204ae5dd283e327f547a13475be31 Mon Sep 17 00:00:00 2001 From: ertkaidyn-ai Date: Sun, 29 Mar 2026 22:37:40 -0600 Subject: [PATCH 2/3] ci: add Windows build workflow for automated compilation --- .github/workflows/windows_build.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/windows_build.yml diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml new file mode 100644 index 00000000000..c6a6b7b0319 --- /dev/null +++ b/.github/workflows/windows_build.yml @@ -0,0 +1,40 @@ +name: Windows Build + +on: + push: + branches: [ master, fix/amf-h264-profile-coder ] + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: windows-2019 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1 + + - name: Install Ninja + run: choco install ninja + + - name: Configure CMake + run: | + cmake -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release + + - name: Build + run: | + cmake --build build --config Release + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: Sunshine-PSP-Compatible + path: | + build/sunshine.exe + build/sunshine.pdb From 46ed0acecf727f146db9343fb177016fc1dab1cd Mon Sep 17 00:00:00 2001 From: ertkaidyn-ai Date: Sun, 29 Mar 2026 22:47:58 -0600 Subject: [PATCH 3/3] ci: upgrade actions to v4 and switch to windows-latest --- .github/workflows/windows_build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index c6a6b7b0319..f2510fd0f34 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -9,10 +9,10 @@ on: jobs: build: - runs-on: windows-2019 + runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 @@ -32,7 +32,7 @@ jobs: cmake --build build --config Release - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Sunshine-PSP-Compatible path: |