Repository navigation
feat(ffmpeg): prebuild FFmpeg for the original Xbox - #851
Merged
Merged
Conversation
ReenigneArcher
commented
Nov 25, 2026
| name: ${{ matrix.name }}-${{ matrix.build }} | ||
| path: ./${{ matrix.name }}-*.tar.gz | ||
|
|
||
| build-ffmpeg-nxdk: |
Member
Author
There was a problem hiding this comment.
can we do this in the existing matrix instead of adding another?
| CPMGetPackage(moonlight_nxdk) | ||
|
|
||
| # Use the same FFmpeg tag as the native builds with the Xbox-specific patch set. | ||
| CPMAddPackage( |
Member
Author
There was a problem hiding this comment.
can this just be in the package-lock.cmake file instead?
| SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/_deps/ffmpeg-nxdk-${FFMPEG_TAG}" | ||
| UPDATE_DISCONNECTED TRUE | ||
| DOWNLOAD_ONLY YES | ||
| PATCHES "${moonlight_nxdk_SOURCE_DIR}/src/_nxdk_compat/ffmpeg/ffmpeg-nxdk.patch" |
Member
Author
There was a problem hiding this comment.
the patches should be put into this build-deps repo instead of pulling them from the moonlight repo
| # Win32 stack realignment prevents inline x86 asm while NASM can emit i386 COFF. | ||
| mkdir -p ffmpeg | ||
| cd ffmpeg | ||
| sh "$ffmpeg/configure" \ |
Member
Author
There was a problem hiding this comment.
it would be ideal to use our existing build-deps project structure (through cmake) for this build if possible
|
|
||
| # The original Xbox decoder package uses a separately pinned SDK and adapters. | ||
| set(NXDK_REVISION fafbe41b48fa00a31b79dd49ad1f86a30adcdd9e) | ||
| set(MOONLIGHT_NXDK_REVISION af34ad6db9c638207d00a783d4e84c38f1ea96b7) |
Member
Author
There was a problem hiding this comment.
shouldn't need moonlight
| ) | ||
|
|
||
| # The original Xbox decoder package uses a separately pinned SDK and adapters. | ||
| set(NXDK_REVISION fafbe41b48fa00a31b79dd49ad1f86a30adcdd9e) |
Member
Author
There was a problem hiding this comment.
ensure renovate can update nxdk
|
ReenigneArcher
marked this pull request as ready for review
November 25, 2026 18:42
4 of 18 tasks
ReenigneArcher
added a commit
that referenced
this pull request
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Add
NXDK-i386-ffmpeg.tar.gzto the existing FFmpeg matrix onubuntu-latest. The Xbox and native profiles share theffmpegCPM package and CMake build and install steps. Both write the configure log underbuild/_deps/ffmpeg-*/ffbuild/.Select the FFmpeg patch set in
package-lock.cmakeand keep the patched checkouts separate. The Xbox profile builds the nxdk runtime and selects its Pentium III decoders and parsers inffmpeg.cmake. Build-deps owns the Xbox patch and adapters, tracks the nxdk commit through Renovate, and includes the original license and attribution with the compatibility archive.Screenshot
Issues Fixed or Closed
Roadmap Issues
Testing
ubuntu-latest(Ubuntu 26.04). Downloaded the CI archive and relinked Moonlight to produce an XBE. Xbox CI jobType of Change
Checklist
AI Usage
See our AI usage policy.