forked from heshanlk/FFMPEG-install-script-for-shared-host
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffmpeg.sh
executable file
·31 lines (26 loc) · 812 Bytes
/
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
#!/bin/bash
#Shared Host ffmpeg installation script
RED='\033[01;31m'
RESET='\033[0m'
_DOWNLOAD_URL='http://ffmpeg.org/releases'
_package='ffmpeg-1.0.1.tar.gz'
export cpu=`cat "/proc/cpuinfo" | grep "processor"|wc -l`
clear
sleep 2
echo -e $RED"Installation of $_package ....... started"$RESET
rm -rf $HOME/src/*
cd $HOME/src
curl -O $_DOWNLOAD_URL/$_package
tar -xvzf $_package
cd ffmpeg-1.0.1/
./configure --prefix=$HOME --enable-libmp3lame --enable-shared \
--enable-libvorbis --enable-pthreads \
--enable-gpl --enable-libtheora \
--enable-pthreads --extra-cflags=-I$HOME/include \
--extra-ldflags=-L$HOME/lib --enable-libfdk-aac --enable-libvpx \
--enable-libx264 --enable-nonfree \
--enable-version3
make
make install
echo -e $RED"Installation of $_package ....... Completed"$RESET
sleep 2