following
fruitoftheloom reply, I downloaded the
2020-08-20-raspios-buster-arm64 and installed it.
The FFmpeg ver shipped with this beta is:
Code: Select all
pi@Dev64b:~ $ ffmpeg
ffmpeg version 4.1.6-1~deb10u1+rpt1
so moving on to compile the FFmpeg with the needed version, get the code:
Code: Select all
git clone --depth 1 --branch release/4.3 https://github.com/FFmpeg/FFmpeg.git
go to FFmpeg directory:
install all needed libraries for this build:
Code: Select all
sudo apt-get update -qq && sudo apt-get -y install autoconf automake build-essential cmake git-core libass-dev libfreetype6-dev libgnutls28-dev libsdl2-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget yasm zlib1g-dev libunistring-dev libdrm-dev libopus-dev libvpx-dev libwebp-dev libx264-dev libxml2-dev libfdk-aac-dev libmp3lame-dev
run the configuration script:
Code: Select all
./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="pkg-config --static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-gnutls \
--disable-libaom \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--disable-libx265 \
--enable-nonfree \
--arch=aarch64 \
--disable-libxml2 \
--enable-libwebp \
--enable-libdrm
and if all went well so far... run the compile command:
and after the compilation ended, I checked the FFmpeg version:
Code: Select all
pi@Dev64b:~ $ /home/pi/FFmpeg/ffmpeg
ffmpeg version ca55240 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/home/pi/ffmpeg_build --pkg-config-flags='pkg-config --static' --extra-cflags=-I/home/pi/ffmpeg_build/include --extra-ldflags=-L/home/pi/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/pi/bin --enable-gpl --enable-gnutls --disable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libx265 --enable-nonfree --arch=aarch64 --disable-libxml2 --enable-libwebp --enable-libdrm
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
and a quick test to check if the wanted hardware accelerator works:
Code: Select all
/home/pi/FFmpeg/ffmpeg -i /home/pi/final.mp4 -c:v h264_v4l2m2m -b:v 8M -c:a copy test.mp4
video output is as expected and no errors!!
