-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_ffmpeg702.sh
executable file
·56 lines (47 loc) · 2.01 KB
/
install_ffmpeg702.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash -e
set -x #echo on
yum -y --enablerepo=crb install libxml2-devel SDL2-devel alsa-lib-devel libXv-devel libX11-devel libXext-devel autoconf automake libtool yasm nasm bzip2 fontconfig-devel freetype-devel fribidi-devel harfbuzz-devel harfbuzz-devel openssl-devel; yum -y clean all
cd ~
wget -nv --no-check-certificate --content-disposition https://github.com/cisco/openh264/archive/refs/tags/v2.4.1.tar.gz
tar xf openh264-2.4.1.tar.gz
cd openh264-2.4.1
make install -j$(nproc)
cd ~
rm -rf openh264-2.4.1*
cd ~
git clone --branch stable --depth 1 https://code.videolan.org/videolan/x264.git
cd x264
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ./configure --enable-shared
make install -j$(nproc)
cd ~
rm -rf x264*
cd ~
wget -nv --no-check-certificate --content-disposition https://github.com/xiph/opus/releases/download/v1.4/opus-1.4.tar.gz
tar xf opus-1.4.tar.gz
cd opus-1.4
./configure --enable-shared
make install -j$(nproc)
cd ~
rm -rf opus-1.4*
cd ~
wget -nv --no-check-certificate --content-disposition https://github.com/videolan/x265/archive/refs/tags/3.4.tar.gz
tar xvf x265-3.4.tar.gz
cd x265-3.4/build/linux
# ./make-Makefiles.bash
cmake -GNinja ../../source
ninja install
cd ~
rm -rf x265-3.4*
cd ~
wget -nv --no-check-certificate https://ffmpeg.org/releases/ffmpeg-7.0.2.tar.bz2
tar xf ffmpeg-7.0.2.tar.bz2
cd ffmpeg-7.0.2
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --enable-gpl --enable-shared --enable-libxml2 --enable-openssl --enable-version3 --enable-libopenh264 --enable-libopus --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz
make install -j$(nproc)
echo "/usr/local/lib" >> /etc/ld.so.conf.d/ffmpeg.conf
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --prefix=/usr/local/lib/ffmpeg_lgpl --enable-shared --enable-libxml2 --enable-openssl --enable-libopenh264 --enable-libopus --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz
make install -j$(nproc)
ldconfig
cd ~
rm -rf ffmpeg-7.0.2*
ccache -C