Koel is now in the cloud. No server needed. Try it free for 14 days → Skip to content

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:

Installing FFmpeg ​

If you use the Docker image, FFmpeg is already installed.

On Debian or Ubuntu:

bash
sudo apt install ffmpeg

On macOS, with Homebrew:

bash
brew install ffmpeg

For 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:

dotenv
FFMPEG_PATH=/usr/bin/ffmpeg

Checking the Setup ​

Run:

bash
php artisan koel:doctor

It tells you whether Koel can find and run FFmpeg.