From deb9af6c7b3c68fd533904c12c04b1450ddaa472 Mon Sep 17 00:00:00 2001 From: Chris Johnstone Date: Sun, 2 Aug 2026 17:13:15 +1200 Subject: [PATCH] Enable FFmpeg SPDIF muxer --- build-ffmpeg.sh | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100755 => 100644 build-ffmpeg.sh diff --git a/build-ffmpeg.sh b/build-ffmpeg.sh old mode 100755 new mode 100644 index df47d8b..1eb3786 --- a/build-ffmpeg.sh +++ b/build-ffmpeg.sh @@ -116,6 +116,7 @@ CONFIGURE_ARGS=( --disable-encoders --enable-encoder=mjpeg --disable-muxers + --enable-muxer=spdif --enable-gpl --enable-libass --enable-libdav1d @@ -142,6 +143,11 @@ if ! ./configure "${CONFIGURE_ARGS[@]}"; then exit 1 fi +if ! grep -Eq '^#define CONFIG_SPDIF_MUXER 1$' config_components.h; then + echo "FFmpeg spdif muxer is required for mpv audio passthrough" >&2 + exit 1 +fi + echo "Building FFmpeg with jobs=$FFMPEG_JOBS" make -j"$FFMPEG_JOBS" make install