把ffmpeg加入AV1編解碼器


感謝大神彙整各項編解碼器加入方法, 請參考
https://gist.github.com/sparrc/026ed9958502072dda749ba4e5879ee3

安裝並編譯AV1編解碼器
# Install libaom from source.
sudo apt-get install -y cmake
mkdir -p ~/ffmpeg_sources/libaom && \
  cd ~/ffmpeg_sources/libaom && \
  git clone https://aomedia.googlesource.com/aom && \
  cmake ./aom && \
  make -j 16 && \
  sudo make install

下載或升級ffmepg程式碼庫
git clone https://git.ffmpeg.org/ffmpeg.git

已確定下面這個版本,已可以編譯av1包
commit 81172b5e3ac0d3130ff7b639ed7efed5baa1195c (origin/master, origin/HEAD)
Author: Paul B Mahol
Date:   Thu Jan 2 17:24:01 2020 +0100

    avfilter/af_dynaudnorm: fix previous commit
   
    We still need to analyze frame for amplification at EOF.

重新編譯ffmepg
如果曾經編譯過ffmpeg,建議先清除暫存,我有遭遇過沒清除一直都編譯不進去的狀況
make distclean

./configure \
  --enable-libaom \
  --enable-ffplay

make -j 16

https://trac.ffmpeg.org/wiki/Encode/AV1

留言