Articles on: Discord Bot Guides

How to install FFmpeg

Welcome to SomethingHost!


In this guide you will learn how to install and setup FFmpeg to your service.



Hey! If you are looking to install FFmpeg for your Music bot, you should use our Lavalink system for the highest quality music without impacting your bot performance!

To get started, you will need to be in development mode (InDev) to run commands.

After that, it is quite easy, the only thing you have to do is to execute this command once:
mkdir /home/container/ffmpegLib && cd /home/container/ffmpegLib && wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz && tar xf ffmpeg-git-amd64-static.tar.xz && rm -rf ffmpeg-git-amd64-static.tar.xz && mv ffmpeg-git-*/* . && rm -rf ffmpeg-git-* && cd /home/container


Then before executing your bot, you have to run
export PATH=/home/container/ffmpegLib:${PATH}
to expose ffmpeg to the container's path

So, if your startup command is something like
python bot.py
it becomes
export PATH=/home/container/ffmpegLib:${PATH} && python bot.py


That's it! You are now be able to use FFmpeg!

Updated on: 28/12/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!