Skip to content

Enable FFmpeg SPDIF muxer - #3

Merged
FengZeng merged 1 commit into
FengZeng:vcpkgfrom
cjohnsto-nz:agent/enable-spdif-muxer
Aug 2, 2026
Merged

FengZeng merged 1 commit into
FengZeng:vcpkgfrom
cjohnsto-nz:agent/enable-spdif-muxer

Conversation

@cjohnsto-nz

@cjohnsto-nz cjohnsto-nz commented Aug 2, 2026

Copy link
Copy Markdown

What changed

  • re-enable FFmpeg's spdif muxer after the build disables all muxers
  • fail the runtime build unless CONFIG_SPDIF_MUXER is present

Why

mpv audio passthrough uses FFmpeg's SPDIF muxer to packetize AC-3, E-AC-3, TrueHD, DTS, and DTS-HD for IEC 61937 output. The current runtime can select an spdif_* decoder but cannot open the encoded output because the muxer is disabled.

This keeps the existing small dynamic runtime layout; it does not introduce another runtime source or a static libmpv overlay.

Validation

  • bash -n build-ffmpeg.sh
  • git diff --check upstream/vcpkg...HEAD
  • Windows CI passed for x64 and ARM64: https://github.com/cjohnsto-nz/mpv/actions/runs/30734439693
  • x64 archive SHA-256: 10a292c000e036d7e0c176c77abedd761dd667498d269470d96815bfbdfcea48
  • the x64 artifact was consumed by Soia's normal runtime setup and pnpm bundle:win:release completed successfully
  • resulting Soia NSIS installer: 25.23 MiB (the compact dynamic-runtime size class)

@cjohnsto-nz
cjohnsto-nz force-pushed the agent/enable-spdif-muxer branch from 4e0c83a to deb9af6 Compare August 2, 2026 05:36
@cjohnsto-nz
cjohnsto-nz changed the base branch from main to vcpkg August 2, 2026 05:36
@cjohnsto-nz
cjohnsto-nz marked this pull request as ready for review August 2, 2026 06:13
@cjohnsto-nz

Copy link
Copy Markdown
Author

@FengZeng Are you able to take a look at this? 🙏

@FengZeng

FengZeng commented Aug 2, 2026

Copy link
Copy Markdown
Owner

@FengZeng Are you able to take a look at this? 🙏

Thanks for working on this! This is a really nice feature, and bringing audio passthrough support back definitely makes sense.

I haven't had much time to focus on the audio side of things yet, so really appreciate you looking into this.

@FengZeng
FengZeng merged commit ec13518 into FengZeng:vcpkg Aug 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants