blob: c052dca731075829db06eb8ca2b9d9b23140bf87 (
plain)
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
|
#!/bin/bash
#
# build ffmpeg for Linux (Debian and Ubuntu)
#
# exit on error
set -e
ME=`basename $0`
DIR="$( cd "$( dirname "$0" )" && pwd )"
CPUARCH=`uname -m`
DEST_DIR="${DIR}/../prebuilt/linux-${CPUARCH}/gnu"
if [ -d /tmp/build-ffmpeg ]; then
rm -rf /tmp/build-ffmpeg
fi
mkdir -p /tmp/build-ffmpeg
cd /tmp/build-ffmpeg
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure --prefix="${DEST_DIR}" --bindir="${DEST_DIR}/bin"
make
make install
cd ..
export PATH=${PATH}:${DEST_DIR}/bin
git clone --depth 1 git://git.videolan.org/x264.git
cd x264
./configure --prefix="${DEST_DIR}" --bindir="${DEST_DIR}/bin" --enable-static
make
make install
cd ..
git clone --depth 1 git://git.code.sf.net/p/opencore-amr/fdk-aac
cd fdk-aac
autoreconf -fiv
./configure --prefix="${DEST_DIR}" --disable-shared
make
make install
cd ..
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
tar xzvf opus-1.0.3.tar.gz
cd opus-1.0.3
./configure --prefix="${DEST_DIR}" --disable-shared
make
make install
cd ..
git clone --depth 1 http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --prefix="${DEST_DIR}" --disable-examples
make
make install
cd ..
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
PKG_CONFIG_PATH="${DEST_DIR}/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="${DEST_DIR}" \
--extra-cflags="-I${DEST_DIR}/include" --extra-ldflags="-L${DEST_DIR}/lib" --prefix="${DEST_DIR}" \
--bindir="${DEST_DIR}/bin" --extra-libs="-ldl" --enable-gpl --enable-nonfree
make
make install
cd ..
|