FFmpeg 8.1 - LGPL v3 Build for macOS (Apple Silicon)
=====================================================

This source code corresponds to the FFmpeg binary distributed with
the application. It was downloaded from the official FFmpeg releases:
https://ffmpeg.org/releases/ffmpeg-8.1.tar.xz

License: LGPL version 3 or later

Build environment:
- macOS on Apple Silicon (arm64)
- Xcode Command Line Tools (clang)
- No external libraries required

Build steps:
1. Extract the source:
   tar -xf ffmpeg-8.1.tar.xz
   cd ffmpeg-8.1

2. Configure with the exact options used for the distributed binary:

./configure \
  --prefix=$HOME/ffmpeg-lgpl-final \
  --disable-shared \
  --enable-static \
  --enable-pthreads \
  --enable-version3 \
  --cc=clang \
  --disable-network \
  --disable-ffplay \
  --disable-doc \
  --disable-everything \
  --enable-videotoolbox \
  --enable-audiotoolbox \
  --enable-demuxer=mov,matroska,avi,mpegts,mpegps,mxf,flv,wav,aiff,mp3,aac,ac3,eac3,concat,m4v,caf \
  --enable-muxer=mov,mp4,matroska,avi,mpegts,mxf,wav,aiff,mp3,caf,ipod \
  --enable-parser=h264,hevc,aac,ac3,mpegaudio,mpeg4video,mjpeg,vp9,av1,dvaudio,dvbsub \
  --enable-decoder=h264,hevc,mpeg4,mjpeg,dvvideo,vp9,av1,aac,ac3,eac3,mp3,pcm_s16le,pcm_s16be,pcm_s24le,pcm_s24be,pcm_s32le,pcm_f32le,pcm_alaw,pcm_mulaw \
  --enable-encoder=h264_videotoolbox,hevc_videotoolbox,aac,aac_at,pcm_s16le,pcm_s16be,pcm_s24le,pcm_s24be,pcm_f32le \
  --enable-hwaccel=h264_videotoolbox,hevc_videotoolbox \
  --enable-bsf=h264_mp4toannexb,hevc_mp4toannexb,aac_adtstoasc,extract_extradata \
  --enable-protocol=file,pipe \
  --enable-filter=aresample,aformat,format,null,anull,copy,scale,setpts,asetpts,fps,setsar,setdar,trim,atrim

3. Compile:
   make -j$(sysctl -n hw.ncpu)

4. Install:
   make install

The resulting binaries (ffmpeg and ffprobe) will be in:
   ~/ffmpeg-lgpl-final/bin/

License compliance:
- This build uses ONLY LGPL-compatible components
- No GPL components are enabled (no --enable-gpl)
- No non-free components are enabled (no --enable-nonfree)
- No external libraries are linked; all functionality is built-in
  or uses macOS system frameworks (VideoToolbox, AudioToolbox)

For the full LGPL v3 license text, see:
https://www.gnu.org/licenses/lgpl-3.0.html
