This script updates FFmpeg automatically by downloading BtbN's FFmpeg daily builds using a linux bash file.
Please take a look at the script and modify the environment variables to your preferences.
This script relies on cron to update FFmpeg daily by adding a crontab -e entry, as this script itself does not automatically run on its own.
The files are taken from BtbN's daily builds, with the default provided build being latest linux64 GPL. This can be changed by modifying the script's environment variable nano ./script.sh
Please note that this may create conflicts with your existing FFmpeg installation and may cause unexpected behaviors with certain applications that also use FFmpeg. This script defaults to installing FFmpeg on the user's local directory /home/$USER/.local/bin
.
Clone the repository and change into the directory:
git clone https://github.com/dng-nguyn/FFmpeg-auto-updater.git
cd FFmpeg-auto-updater
Add execution permission for the script:
chmod +x script.sh
Run the script:
./script.sh
Note that this only run the script once, and not automatically update daily.
To add a cron entry, please refer to other guides for your updating preferences. This is an example to update your ffmpeg every day at 3AM:
Opening the cron editor:
crontab -e
Add this entry to the file:
0 3 * * * /path/to/script.sh
Please note that you need to modify the /path/to/script.sh
to your actual path of the script.