-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffmpeg_compile.sh
executable file
·74 lines (66 loc) · 1.55 KB
/
ffmpeg_compile.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
echo System updating...
sudo apt update && sudo apt upgrade
echo Getting all the dependencies...
sudo apt install -y autoconf \
automake \
build-essential \
cmake \
git-core \
libfreetype6-dev \
libgnutls28-dev \
libmp3lame-dev \
libtool \
libvorbis-dev \
meson \
ninja-build \
pkg-config \
texinfo \
wget \
yasm \
zlib1g-dev \
libzmq3-dev \
sudo apt install libunistring-dev
sudo apt install nasm
echo Getting libx264...
sudo apt install libx264-dev
echo Getting libvpx...
sudo apt install libvpx-dev
echo Getting aac...
sudo apt install libfdk-aac-dev
echo Getting libopus...
sudo apt install libopus-dev
echo making the necessary folders...
mkdir -pv ~/ffmpeg_sources ~/ffmpeg_build
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg && \
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--disable-optimizations \
--prefix="$HOME/ffmpeg_build" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs="-lpthread -lm" \
--ld="g++" \
--bindir="$HOME/bin" \
--disable-debug \
--disable-ffplay \
--disable-indev=sndio \
--disable-outdev=sndio \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--enable-gpl \
--enable-gnutls \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libzmq \
--enable-nonfree && \
PATH="$HOME/bin:$PATH" make -j2
# make install && \
# hash -r