Build and use AV1 on ffmpeg:


I use Intel + Netflix created SVT-AV1. There is an older libaom codec that I don't use.

To use: ffmpeg -i A.mkv -acodec flac -compression_level 8 -ac 2 -vcodec libsvtav1 B.mkv

Install (Kubuntu 23.04):
--------------------------
Can now just easily install by:
*Debian/Ubuntu/Mint
sudo apt install svt-av1 ffmpeg

*Arch/CachyOS:
sudo pacman -S svt-av1 ffmpeg


To build:
-----------------------
First you have to build SVT-AV1, then you rebuild ffmpeg to include it.

Build SVT-AV1:
git clone https://gitlab.com/AOMediaCodec/SVT-AV1.git
cd SVT*
ls
cmake .
make -j"$(nproc)"
sudo make install
Then clone and cd into ffmpeg git.
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
./configure --enable-libsvtav1 --enable-gpl --enable-libx265 --disable-vdpau
(You can also add other configure pramaters from other parts of my website).
make -j"$(nproc)"
sudo  make install
*There will be a glitch where it cant find a so.1 file when running, use this two step process to fix:
  1. ln -s /usr/local/lib/libSvtAv1Enc.so.1 /usr/lib64/libSvtAv1Enc.so.1
  2. sudo nano /etc/ld.so.conf
    
    include ld.so.conf.d/*.conf
    /usr/lib
    /usr/local/lib
    
    use Ctrl + X to save
  3. sudo ldconfig
It should work now.




Sources: Date: June 6th 2022 ~ August 26th 2023


Back

© 2019 to 2025 Branden Gilfoil & © up to 2025 for respective owners.