sudo apt-get update && sudo apt-get -y install \
autoconf \
automake \
build-essential \
cmake \
pkg-config \
zlib1g-dev \
wget \
git-core \
libtool \
libass-dev \
libfreetype6-dev \
libxvidcore-dev \
libtheora-dev \
libvorbis-dev \
libmp3lame-dev \
libfdk-aac-dev \
libx264-dev \
libx265-dev \
libnuma-dev
wget https://ffmpeg.org/releases/ffmpeg-7.0.1.tar.xz
tar xf ffmpeg-7.0.1.tar.xz
./configure \
--prefix=/usr/local/ffmpeg \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--enable-postproc \
--enable-pthreads \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libfdk-aac \
--enable-libx264 \
--enable-libx265 \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-libopus \
--enable-libxvid \
--enable-libass
make -j 8 && make install
root@store53:~# cat /etc/ld.so.conf.d/ffmpeg.conf
/usr/local/ffmpeg/lib
root@store53:~# ldconfig
root@store53:~# vim /etc/profile.d/ffmpeg.sh
export PATH=/usr/local/webserver/ffmpeg/bin/:$PATH
root@store53:~# source /etc/profile