Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/release-combined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
fi
echo "RELEASE_VERSION=$VERSION" >> "$GITHUB_ENV"

- name: Test the spatial audio output
run: ./scripts/test-spatial-audio-output.sh

- name: Install dependencies
run: |
brew install autoconf automake libtool ninja
Expand All @@ -49,6 +52,16 @@ jobs:
- name: Create combined MPVKit.xcframework
run: ./Sources/BuildScripts/create-combined-framework.sh

# Without FFmpeg's spdif muxer, mpv's passthrough decoder fails on its
# first packet and the audio track dies, so the spatial output never opens.
- name: Check that passthrough is built
run: |
for lib in dist/MPVKit-combined/xcframework/MPVKit.xcframework/*/MPVKit.framework/MPVKit; do
# grep -c reads to the end, so nm never writes into a closed pipe
# (grep -q would, and pipefail would then fail a good build).
[ "$(nm "$lib" | grep -c ff_spdif_muxer || true)" -gt 0 ] || { echo "no spdif muxer in $lib"; exit 1; }
done

- name: Upload binary to GitHub Release
if: github.event_name != 'pull_request'
uses: softprops/action-gh-release@v2
Expand Down
2 changes: 2 additions & 0 deletions Sources/BuildScripts/XCFrameworkBuild/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,8 @@ private class BuildFFMPEG: BaseBuild {
"--enable-muxer=flac", "--enable-muxer=dash", "--enable-muxer=hevc",
"--enable-muxer=m4v", "--enable-muxer=matroska", "--enable-muxer=mov", "--enable-muxer=mp4",
"--enable-muxer=mpegts", "--enable-muxer=webm*",
// mpv's passthrough (--audio-spdif) packs audio into IEC 61937 with it.
"--enable-muxer=spdif",
// ./configure --list-encoders
"--disable-encoders",
"--enable-encoder=aac", "--enable-encoder=alac", "--enable-encoder=flac", "--enable-encoder=pcm*",
Expand Down
1 change: 1 addition & 0 deletions Sources/BuildScripts/create-combined-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ for platform in ios isimulator tvos tvsimulator; do
#include "mpv/render.h"
#include "mpv/render_gl.h"
#include "mpv/stream_cb.h"
#include "mpv/spatial_audio.h"

#endif /* MPVKit_h */
UMBRELLA
Expand Down
Loading