PrettyTv
Open source

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:

FileWhat it isSizeSHA-256
prettytv-ffmpeg-9.0.2-source.zipEverything below in one file11.5 MB78418cc1274f3cbe…
ffmpeg-9.0.2.tar.xzThe FFmpeg release from ffmpeg.org, unmodified11.5 MB8c3850283eb25fa0…
build-ffmpeg-demux.shThe script that builds the framework in the app from it12 KB9fa8d2e453114bb4…
BUILD.txtThe version, checksum and configure flags of the framework in the app1 KB8810012ec50312b5…
COPYING.LGPLv2.1The GNU Lesser General Public License, version 2.126 KB246041b6ecf9bc32…
README.txtWhat the files are and how to build1 KBc48f2d50dd6deb24…

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.framework inside 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.