Repository navigation
FFmpeg 7.1.5 source for Shuttle Music (iOS)
Shuttle Music for iOS decodes audio with FFmpeg n7.1.5 (https://ffmpeg.org), licensed under the
GNU Lesser General Public License, version 2.1 or later. FFmpeg is linked dynamically: the app ships
libavutil, libswresample, libavcodec and libavformat as separate frameworks in S2.app/Frameworks, so
you can replace them with your own build.
Contents
ffmpeg-n7.1.5-3a0867c2b.tar.xz
the source the frameworks are built from: git tag n7.1.5, commit 3a0867c2bfda4a4d4309ca1a8cbdc6175e67f587,
unmodified, as 'git archive' of that commit
ffmpeg-7.1.5.tar.xz
FFmpeg's own release tarball for the same version (SHA-256 de668509caf9e35e3cd162473441fdb29538c6d96ed080292b3cf9e6fc5d558f)
ffmpeg-7.1.5.tar.xz.asc
its PGP signature, by the FFmpeg release key FCF986EA15E6E293A5644F10B4322F04D67658D8
build-ffmpeg.sh
the script that builds the frameworks (ios/scripts/build-ffmpeg.sh in
https://github.com/timusus/Shuttle2)
SHA256SUMS
No patches are applied.
Configure options
build-ffmpeg.sh runs configure once per slice (device, simulator, macOS) from a separate build directory.
Per slice it passes the install prefix, the toolchain and SDK for that slice (SDK and TRIPLE are the
slice's Xcode SDK and clang -target triple):
--prefix="$PREFIX"
--cc="xcrun --sdk $SDK clang"
--cxx="xcrun --sdk $SDK clang++"
--ar="$(xcrun --sdk "$SDK" -f ar)"
--ranlib="$(xcrun --sdk "$SDK" -f ranlib)"
--sysroot="$SYSROOT"
--extra-cflags="-target $TRIPLE -isysroot $SYSROOT -O2 -fno-common"
--extra-ldflags="-target $TRIPLE -isysroot $SYSROOT -Wl,-dead_strip_dylibs"
followed by the options shared by every slice:
--disable-everything
--disable-programs
--disable-doc
--disable-htmlpages
--disable-manpages
--disable-podpages
--disable-txtpages
--disable-avdevice
--disable-swscale
--disable-postproc
--disable-avfilter
--disable-network
--disable-protocols
--disable-devices
--disable-filters
--disable-bsfs
--disable-encoders
--disable-muxers
--disable-debug
--disable-audiotoolbox
--disable-autodetect
--enable-zlib
--enable-decoder=flac,alac,opus,vorbis,mp3,mp3float,aac,aac_latm,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,pcm_f64le,pcm_u8,pcm_s16be,pcm_s24be,pcm_s32be,pcm_f32be,pcm_f64be
--enable-demuxer=ogg,matroska,wav,flac,mov,mp3,aac,aiff
--enable-parser=flac,opus,vorbis,mpegaudio,aac,aac_latm
--enable-swresample
--enable-avformat
--enable-avcodec
--enable-avutil
--enable-shared
--disable-static
--enable-pic
--enable-small
--enable-cross-compile
--target-os=darwin
--arch=arm64
How to rebuild
- Get the source at the pinned commit as a git checkout, which build-ffmpeg.sh requires:
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
git -C ffmpeg checkout 3a0867c2bfda4a4d4309ca1a8cbdc6175e67f587
(ffmpeg-n7.1.5-3a0867c2b.tar.xz holds the same files without git history; build-ffmpeg.sh rejects a directory that is not
a checkout of that commit.) - With Xcode installed, from a checkout of https://github.com/timusus/Shuttle2 (or this directory):
FFMPEG_SRC=$PWD/ffmpeg ios/scripts/build-ffmpeg.sh - Copy the resulting frameworks over those in S2.app/Frameworks and re-sign the app.
The full licence text is in the app (Settings > Acknowledgements) and at
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html