-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_ffmpeg.sh
More file actions
executable file
·39 lines (37 loc) · 1.28 KB
/
install_ffmpeg.sh
File metadata and controls
executable file
·39 lines (37 loc) · 1.28 KB
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
#!/bin/bash
NPROC=$(nproc)
echo "Installing FFMPEG"
sudo apt-get -y install libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev zlib1g-dev pkg-config libfreetype6-dev
cd $HOME/vlc_build
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
export PATH=$PATH:/$HOME/hvec_build/hvecdeps/usr/bin
cd ffmpeg && \
if [ "$(uname -m)" = "x86_64" ]; then
ARCHOPTS="--enable-pic"
else
ARCHOPTS=""
fi && \
TMPDIR="/root/hvec_build/ffmpeg" \
CPPFLAGS="-I$HOME/hvec_build/hvecdeps/usr/include" \
LDFLAGS="-L$HOME/hvec_build/hvecdeps/usr/lib" \
PKG_CONFIG_PATH="$HOME/hvec_build/hvecdeps/usr/lib/pkgconfig" \
./configure --prefix=$HOME/hvec_build/hvecdeps/usr \
$ARCHOPTS \
--extra-libs="-ldl" \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--enable-libmp3lame \
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
--enable-libfdk-aac \
--enable-libx264 \
--enable-libx265 \
--disable-doc
## --disable-programs \
## --disable-filters \
## --disable-avdevice \
## --disable-devices \
## --disable-avfilter \
## --disable-avresample && \
make -j $NPROC && make install && make distclean