FFmpeg Installation - musicpack/mbox GitHub Wiki

There are two main ways to install FFmpeg for the bot.

  1. Install FFmpeg globally for the computer from a repository.

  2. Download and put the folder of executable binaries in the bot folder.

You might have noticed in the config.ini that there is a variable ffmpeg_path. If you already have ffmpeg installed on your computer in a place that is not defined in the PATH variable, you may change that variable to include the path to your ffmpeg. Otherwise if left blank, the program try to find ffmpeg installed on the computer and in PATH.

Install FFMPEG globally for the computer

Linux/Unix

Your main repository should have a version of FFMPEG to download. You do not need any special version of FFMPEG.

Simply install FFMPEG by using your package manager. Instructions for popular distributions/setups are included below.

apt Package Manager (Debian/Ubuntu like Raspberry Pi's)

  1. Open the terminal.
  2. Update packages sudo apt update
  3. Type in your terminal sudo apt-get install ffmpeg

Mac

The easiest way for you to install FFmpeg is to use the homebrew package manager. Make sure you have homebrew installed before continuing.

Simply install FFMPEG by using your package manager. You do not need any special version of FFMPEG.

Homebrew Package Manager

  1. Open the terminal.
  2. Update packages brew update
  3. Type in your terminal brew install ffmpeg

Download and provide the path the executable binaries in the bot's config.

Windows

  1. Download a build of FFMPEG from official FFMPEG site
    • Direct download link from mirror gyan.dev
  2. Extract the .7z archive with 7zip or a compatible program.
  3. Move the extracted folder (should be named something like ffmpeg-2xxx-xx-xx-git-xxxxxxxxxx-full_build) to the root of the bot. The bot on startup should be able to find the folder. The bot folder should look like this:

Finished Installation Image

Linux/Unix

  1. Download a static build of FFmpeg from official FFMPEG site
    • Download link from mirror johnvansickle.com. Choose the correct architecture for your system. Type uname -m on your terminal to get your architecture.
  2. Extract the tar.xz archive.
  3. Move the extracted folder (should be named something like ffmpeg-git-xxxxxxxx-xxxxx-static) to the root of the bot. The bot on startup should be able to find the folder. The bot folder should look something like this:

Finished Installation Image

Mac

  1. Download a static build of FFMPEG from official FFmpeg site
  2. Extract the zip archive.
  3. Move the extracted ffmpeg binary (should be named ffmpeg) to the root of the bot. The bot on startup should be able to find the file. The bot folder should look something like this:

Finished Installation Image