Spaces:
Running
on
A10G
Running
on
A10G
anchor
commited on
Commit
•
b68506c
1
Parent(s):
4dab231
Upload install_ffmpeg.sh
Browse files- install_ffmpeg.sh +70 -0
install_ffmpeg.sh
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FFMPEG_PREFIX="$(echo $HOME/local)"
|
3 |
+
FFMPEG_SOURCES="$(echo $HOME/ffmpeg_sources)"
|
4 |
+
FFMPEG_BINDIR="$(echo $FFMPEG_PREFIX/bin)"
|
5 |
+
PATH=$FFMPEG_BINDIR:$PATH
|
6 |
+
|
7 |
+
mkdir -p $FFMPEG_PREFIX
|
8 |
+
mkdir -p $FFMPEG_SOURCES
|
9 |
+
|
10 |
+
cd $FFMPEG_SOURCES
|
11 |
+
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
|
12 |
+
tar xzvf yasm-1.2.0.tar.gz
|
13 |
+
cd yasm-1.2.0
|
14 |
+
./configure --prefix="$FFMPEG_PREFIX" --bindir="$FFMPEG_BINDIR"
|
15 |
+
make
|
16 |
+
make install
|
17 |
+
make distclean
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
cd $FFMPEG_SOURCES
|
22 |
+
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
|
23 |
+
tar xjvf last_x264.tar.bz2
|
24 |
+
cd x264-snapshot*
|
25 |
+
./configure --prefix="$FFMPEG_PREFIX" --bindir="$FFMPEG_BINDIR" --enable-static
|
26 |
+
make
|
27 |
+
make install
|
28 |
+
make distclean
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
cd $FFMPEG_SOURCES
|
33 |
+
wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master
|
34 |
+
tar xzvf fdk-aac.tar.gz
|
35 |
+
cd mstorsjo-fdk-aac*
|
36 |
+
autoreconf -fiv
|
37 |
+
./configure --prefix="$FFMPEG_PREFIX" --disable-shared
|
38 |
+
make
|
39 |
+
make install
|
40 |
+
make distclean
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
cd $FFMPEG_SOURCES
|
45 |
+
wget http://webm.googlecode.com/files/libvpx-v1.3.0.tar.bz2
|
46 |
+
tar xjvf libvpx-v1.3.0.tar.bz2
|
47 |
+
cd libvpx-v1.3.0
|
48 |
+
./configure --prefix="$FFMPEG_PREFIX" --disable-examples
|
49 |
+
make
|
50 |
+
make install
|
51 |
+
make clean
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
cd $FFMPEG_SOURCES
|
56 |
+
wget https://github.com/FFmpeg/FFmpeg/tarball/master -O ffmpeg.tar.gz
|
57 |
+
rm -rf FFmpeg-FFmpeg*
|
58 |
+
tar -zxvf ffmpeg.tar.gz
|
59 |
+
cd FFmpeg-FFmpeg*
|
60 |
+
PKG_CONFIG_PATH="$FFMPEG_PREFIX/lib/pkgconfig"
|
61 |
+
export PKG_CONFIG_PATH
|
62 |
+
./configure --prefix="$FFMPEG_PREFIX" --extra-cflags="-I$FFMPEG_PREFIX/include" \
|
63 |
+
--extra-ldflags="-L$FFMPEG_PREFIX/lib" --bindir="$FFMPEG_BINDIR" --extra-libs="-ldl" --enable-gpl \
|
64 |
+
--enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libtheora \
|
65 |
+
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree \
|
66 |
+
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvo-amrwbenc
|
67 |
+
make
|
68 |
+
make install
|
69 |
+
make distclean
|
70 |
+
hash -r
|