forked from lvjian700/ffmpegc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-ffmpeg.sh
More file actions
executable file
·43 lines (30 loc) · 818 Bytes
/
install-ffmpeg.sh
File metadata and controls
executable file
·43 lines (30 loc) · 818 Bytes
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
SRCDIR=`pwd`
VERSION="1.2.1"
echo "install gas-* perl script"
./install-gas.sh
echo "download ffmpeg"
set -e
if [ ! -e ffmpeg-${VERSION}.tar.bz2 ]; then
echo "Downloading ffmpeg-${VERSION}.tar.bz2"
curl -O http://ffmpeg.org/releases/ffmpeg-${VERSION}.tar.bz2
else
echo "Using ffmpeg-${VERSION}.tar.bz2"
fi
tar jxvf ffmpeg-${VERSION}.tar.bz2
echo "copy install shell script to ffmpeg"
cp ./compile-*.sh "ffmpeg-${VERSION}"
cd "ffmpeg-${VERSION}"
if [ -d x264 ]
then
(cd $SRCDIR/ffmpeg-${VERSION}/x264; git pull)
else
git clone git://git.videolan.org/x264.git x264
fi
echo "compile armv7s ..."
./compile-armv7s.sh
echo "compile armv7 ..."
./compile-armv7.sh
echo "compile i386 for Simulator ..."
./compile-i386.sh
echo "packaging universal version ..."
./compile-universal.sh