forked from Ulexus/docker-zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffmpeg.sh
35 lines (28 loc) · 1.13 KB
/
ffmpeg.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
#!/bin/sh
apt-get install -y -q build-essential \
git-core \
checkinstall \
yasm \
texi2html \
libvorbis-dev \
libx11-dev \
libvpx-dev \
libxfixes-dev \
zlib1g-dev \
pkg-config \
netcat
FFMPEG_VERSION=2.6
cd /usr/local/src
if [ ! -d "/usr/local/src/ffmpeg-${FFMPEG_VERSION}" ]; then
wget "http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2"
tar -xjf "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
rm "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
fi
cd "ffmpeg-${FFMPEG_VERSION}"
./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
make
checkinstall --pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default
# chmod +x install-ffmpeg.sh
# ./install-ffmpeg.sh
ffmpeg -version
rm -R "/usr/local/src/ffmpeg-${FFMPEG_VERSION}"