-
-
Save willmasters/382fe6caba44a4345a3de95d98d3aae5 to your computer and use it in GitHub Desktop.
Updated 2025-01-17 thanks to Yemster's comment. | |
This should work on any architecture of Amazon Linux 2. | |
(_Although not tested , should also work for Amazon Linux 2023_). | |
**Prereq** | |
- visit https://johnvansickle.com/ffmpeg/ to grab the link to the relevant tarball for your specific server architecture. | |
- Use `uname -a` to find out your arch if unknown | |
### TL;DR | |
```shell | |
mkdir ~/sources && cd ~/sources | |
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz | |
tar -xvf ffmpeg-release-arm64-static.tar.xz | |
cd ffmpeg-*-arm64-static | |
sudo mv ffmpeg /usr/local/bin/ | |
sudo mv ffprobe /usr/local/bin/ | |
# confirm it's working | |
ffmpeg -version | |
``` | |
### The details - for those who need more info | |
```shell | |
# Create/use a temporary working directory | |
mkdir ~/sources && cd ~/sources | |
# Download tarball | |
# => Visit https://johnvansickle.com/ffmpeg/ to see list of available builds per arch & distros | |
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz | |
# extract tarball | |
tar -xvf ffmpeg-release-arm64-static.tar.xz | |
cd ffmpeg-*-arm64-static | |
# *** you may want to test to confirm it works *** | |
./ffmpeg -version # should see something like: `ffmpeg version 7.0.2-static` on first line | |
# relocate to system path | |
sudo mv ffmpeg /usr/local/bin/ | |
sudo mv ffprobe /usr/local/bin/ | |
# confirm it's working | |
ffmpeg -version # => ffmpeg version 7.0.2-static | |
# cleanup - optional | |
cd ~/ && rm -rf ~/sources/ffmpeg-* | |
``` |
@samcurran22 you will quickly find yourself in dependency hell trying to install svt-av1 packages. I would suggest using Google Colab (Ubuntu 22.04.5 LTS) to test, if you're brave. 2 cores, 12GB RAM, 100GB SSD, all for free!
In case helpful, this worked for me.
I opted for prebuilt for speed and peace of mind - this should work on any architecture of Amazon Linux 2.
(Although not tested , should also work for Amazon Linux 2023).
Prereq
- visit https://johnvansickle.com/ffmpeg/ to grab the link to the relevant tarball for your specific server architecture.
- Use
uname -a
to find out your arch if unknown
TL;DR
mkdir ~/sources && cd ~/sources
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz
tar -xvf ffmpeg-release-arm64-static.tar.xz
cd ffmpeg-*-arm64-static
sudo mv ffmpeg /usr/local/bin/
sudo mv ffprobe /usr/local/bin/
# confirm it's working
ffmpeg -version
The details - for those who need more info
# Create/use a temporary working directory
mkdir ~/sources && cd ~/sources
# Download tarball
# => Visit https://johnvansickle.com/ffmpeg/ to see list of available builds per arch & distros
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz
# extract tarball
tar -xvf ffmpeg-release-arm64-static.tar.xz
cd ffmpeg-*-arm64-static
# *** you may want to test to confirm it works ***
./ffmpeg -version # should see something like: `ffmpeg version 7.0.2-static` on first line
# relocate to system path
sudo mv ffmpeg /usr/local/bin/
sudo mv ffprobe /usr/local/bin/
# confirm it's working
ffmpeg -version # => ffmpeg version 7.0.2-static
# cleanup - optional
cd ~/ && rm -rf ~/sources/ffmpeg-*
RE automated provisioning
This solution should work with automated provisioning as well or easy enough to adapt to specific needs.
It uses the latest stable package at the endpoint and does not rely on knowing the strictly version specifically named folder of the extracted tarball i.e. cd ffmpeg-*-arm64-static
.
In case helpful, this worked for me.
Thanks for sharing - I have updated the gist to your comment. As people seem to find their way here.
How can I add this Video Codec av1 also - SVT-AV1
Above packages has this missing.
Will SVT-AV1 work in Amazon Linux or I must use Ubuntu