FFmpeg
FFmpeg is the most popular and powerful multimedia toolkit out there: it records, converts, and streams just about any audio or video format, and powers countless media apps. Though not a requirement for Koel to function, it unlocks these features:
- Every format plays: songs in formats browsers can't play, such as APE or WMA, are converted on the fly.
- Smaller streams: FLAC transcoding, transcoding on mobile, and lower bit rates for Subsonic apps.
- Song previews: 30-second clips for embeds in Preview mode .
- Even volume and waveforms: volume normalization and waveforms .
Installing FFmpeg
If you use the Docker image, FFmpeg is already installed.
On Debian or Ubuntu:
sudo apt install ffmpegOn macOS, with Homebrew:
brew install ffmpegFor other systems, see FFmpeg's download page.
Better AAC Quality
If your FFmpeg was built with Fraunhofer's libfdk_aac encoder (which needs --enable-nonfree when building FFmpeg), Koel uses it automatically. It gives better quality than FFmpeg's own AAC encoder at the same bit rate, and in our tests it was also faster, even than FFmpeg's encoder with TRANSCODE_AAC_FAST on.
Pointing Koel to FFmpeg
Koel finds FFmpeg automatically. If it doesn't, set FFMPEG_PATH in your .env file to the full path of the ffmpeg binary, for example:
FFMPEG_PATH=/usr/bin/ffmpegChecking the Setup
Run:
php artisan koel:doctorIt tells you whether Koel can find and run FFmpeg.