chromiumer.com

ffmpeg v6.6.1 install

2024.05.16
yum -y install gcc gcc-c++ lbzip2

wget https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.gz
wget https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2
wget https://ffmpeg.org/releases/ffmpeg-6.1.1.tar.xz


1.nasm
tar -xvf nasm-2.14.02.tar.gz && cd nasm-2.14.02
./configure && make && make install && cd ../

2.x264
tar -xvf x264-master.tar.bz2 && cd x264-master
./configure --enable-shared
make -j8 && make install && cd ../
cp /usr/local/lib/pkgconfig/x264.pc /usr/share/pkgconfig/

3.ffmpeg
tar -xvf ffmpeg-6.1.1.tar.xz && cd ffmpeg-6.1.1
./configure --prefix=/usr/local/ffmpeg --enable-gpl --enable-libx264
make -j8 && make install
ln -s /usr/local/lib/libx264.so.164 /lib64/libx264.so.164
ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

export PATH=$PATH:/usr/local/ffmpeg/bin

ffmpeg -version
---
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-libx264
libavutil      58. 29.100 / 58. 29.100
libavcodec     60. 31.102 / 60. 31.102
libavformat    60. 16.100 / 60. 16.100
libavdevice    60.  3.100 / 60.  3.100
libavfilter     9. 12.100 /  9. 12.100
libswscale      7.  5.100 /  7.  5.100
libswresample   4. 12.100 /  4. 12.100
libpostproc    57.  3.100 / 57.  3.100