Skip to main content

Installing FFmpeg

Mixpost has the ability to generate images from video while uploading a video file. This would not be possible without FFmpeg installed on your server.

You need to follow FFmpeg installation instructions on their official website. Usually, you can install it with:

sudo apt-get install ffmpeg

After installation, depending on the operating system, set your paths to the "ffmpeg" and "ffprobe" binary files (not the folder they're in!). Default folder path: /usr/bin/. If FFmpeg is there, there is no need to change it.

If it is somewhere else, navigate to your Mixpost application and put this in your .env file

FFMPEG_PATH=/usr/bin/ffmpeg
FFPROBE_PATH=/usr/bin/ffprobe

Common Plesk problem:

If you get open_basedir errors, you can move "ffmpeg" and "ffprobe" to a folder inside your "httpdocs".

sudo cp /usr/bin/ffmpeg /var/www/vhosts/domain/httpdocs/ffmpeg
sudo cp /usr/bin/ffprobe /var/www/vhosts/domain/httpdocs/ffprobe

And then change your paths in ".env" to:

FFMPEG_PATH=/var/www/vhosts/domain/httpdocs/ffmpeg
FFPROBE_PATH=/var/www/vhosts/domain/httpdocs/ffprobe