FFmpeg 9.0.2
In short: PrettyTv for Apple TV, iPhone and iPad includes FFmpeg 9.0.2, unmodified, under the LGPL 2.1, as a separate library you may replace. Here is its source and exactly how it was built.
The files
The complete corresponding source of the FFmpeg library in the app, and how it was built:
| File | What it is | Size | SHA-256 |
|---|---|---|---|
| prettytv-ffmpeg-9.0.2-source.zip | Everything below in one file | 11.5 MB | 78418cc1274f3cbe… |
| ffmpeg-9.0.2.tar.xz | The FFmpeg release from ffmpeg.org, unmodified | 11.5 MB | 8c3850283eb25fa0… |
| build-ffmpeg-demux.sh | The script that builds the framework in the app from it | 12 KB | 9fa8d2e453114bb4… |
| BUILD.txt | The version, checksum and configure flags of the framework in the app | 1 KB | 8810012ec50312b5… |
| COPYING.LGPLv2.1 | The GNU Lesser General Public License, version 2.1 | 26 KB | 246041b6ecf9bc32… |
| README.txt | What the files are and how to build | 1 KB | c48f2d50dd6deb24… |
The tarball is the one at ffmpeg.org/releases, SHA-256 8c3850283eb25fa026482078a04051e0be17347b09ef81a0849bec15a96e002e.
What it is
- PrettyTv for Apple TV, iPhone and iPad uses FFmpeg 9.0.2 from version 1.0.1 (build 14), to read MKV and MPEG-TS files and repackage them as MP4 for the system player. FFmpeg decodes nothing and makes no network connections in the app.
- FFmpeg is licensed under the GNU Lesser General Public License version 2.1 (COPYING.LGPLv2.1, also at gnu.org). It is built without any GPL, version 3 or non-free parts.
- The FFmpeg source is unmodified. It is built with the configure flags in BUILD.txt and linked dynamically, as a separate framework (
FFmpegDemux.frameworkinside the app).
How to rebuild it
On a Mac with Xcode: unpack the zip, then run, in the unpacked folder,
FFBUILD="$PWD" bash build-ffmpeg-demux.sh
The script checks the tarball’s checksum, configures FFmpeg for tvOS and iOS (arm64, device and simulator) and writes FFmpegDemux.xcframework to Vendor/ next to the unpacked folder. The configure flags are:
--disable-everything --disable-autodetect --disable-programs --disable-doc --disable-debug --disable-avdevice --disable-avfilter --disable-swscale --disable-swresample --enable-static --disable-shared --enable-pic --enable-small --enable-zlib --disable-network --enable-demuxer=matroska,mpegts --enable-muxer=mp4 --enable-parser=h264,hevc,aac,ac3,mpegaudio --enable-bsf=extract_extradata,aac_adtstoasc
Replacing the library
You may modify FFmpeg and replace FFmpegDemux.framework in the app with your own build, and you may reverse engineer the app to the extent needed to debug such modifications. The app has to be signed again after the framework is replaced. Nothing in our Terms of Use restricts your rights under the LGPL.
Written offer
For at least three years after we last distribute this version of the app, Prod AS will give anyone who asks a copy of this source on a physical medium, for no more than our cost of providing it. Write to [email protected]. The files on this page stay here for the same period.
FFmpeg is a trademark of Fabrice Bellard, originator of the FFmpeg project. PrettyTv is not affiliated with or endorsed by the FFmpeg project.