This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ffmpeg.sh
185 lines (139 loc) · 3.81 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
###############################
# FFMPEG Installer Script #
# Stephen Simpson #
# For RHEL 5/6 #
# v0.2 - 01/11/14 #
###############################
## Includes
source ./req.sh
source ./lib.sh
source ./bin.sh
source ./functions.sh
export global binonly=false
#Parse Args
opts $@
#PreInstall
tabs 16
export global cpu=`cat "/proc/cpuinfo" | grep "processor"|wc -l`
export global TMPDIR=$HOME/tmp
mkdir -p $HOME/tmp
export global DOWNDIR=/root/ffmpeginstall
mkdir -p $DOWNDIR
export global DESTDIR=""
export global ARCH=$(arch)
export global LOG=$DOWNDIR/log
traps >$LOG 2>1
## Header
echo -e "\n FFMPEG Installer Script \n"
echo -e "\n Log File: $LOG\n"
## Presetup
echo -e "\n#### Running PreSetup #### \n"
dots "Installing Ruby"
install_ruby >>$LOG 2>1
dots "Installing Ruby" $?
dots "Removing Files"
remove_stuff >>$LOG 2>1
dots "Removing Files" $?
dots "Running Yum Installs"
run_yum >>$LOG 2>1
dots "Running Yum Installs" $?
dots "Checking Threads"
check_threads >>$LOG 2>1
dots "Checking Threads" $?
dots "Installing Git"
install_git >>$LOG 2>1
dots "Installing Git" $?
## Libraries
echo -e "\n#### Installing Libraries #### \n"
if ! $binonly
then
dots "Installing libpng"
install_libpng >>$LOG 2>1
dots "Installing libpng" $?
dots "Installing Freetype"
install_freetype >>$LOG 2>1
dots "Installing Freetype" $?
dots "Installing libwmf"
install_libwmf >>$LOG 2>1
dots "Installing libwmf" $?
dots "Installing FLVTool"
install_flvtoo >>$LOG 2>1
dots "Installing FLVTool" $?
dots "Installing Lame"
install_lame >>$LOG 2>1
dots "Installing Lame" $?
dots "Installing Codecs"
install_codecs >>$LOG 2>1
dots "Installing Codecs" $?
dots "Installing libogg"
install_libogg >>$LOG 2>1
dots "Installing libogg" $?
dots "Installing libvorbis"
install_libvorbis >>$LOG 2>1
dots "Installing libvorbis" $?
dots "Installing VorbisTools"
install_vorbistools >>$LOG 2>1
dots "Installing VorbisTools" $?
dots "Installing libtheora"
install_libtheora >>$LOG 2>1
dots "Installing libtheora" $?
dots "Installing openamr"
install_openamr >>$LOG 2>1
dots "Installing openamr" $?
dots "Installing liba52"
install_liba52 >>$LOG 2>1
dots "Installing liba52" $?
dots "Installing FACC"
install_facc >>$LOG 2>1
dots "Installing FACC" $?
dots "Installing FAAD2"
install_faad2 >>$LOG 2>1
dots "Installing FAAD2" $?
dots "Installing YASM"
install_yasm >>$LOG 2>1
dots "Installing YASM" $?
dots "Installing NASM"
install_nasm >>$LOG 2>1
dots "Installing NASM" $?
dots "Installing XVID"
install_xvid >>$LOG 2>1
dots "Installing XVID" $?
dots "Installing x264"
install_x264 >>$LOG 2>1
dots "Installing x264" $?
dots "Installing Live555"
install_live555 >>$LOG 2>1
dots "Installing Live555" $?
dots "Installing re2c"
install_re2c >>$LOG 2>1
dots "Installing re2c" $?
dots "Installing amrnb"
install_amrnb >>$LOG 2>1
dots "Installing amrnb" $?
dots "Installing amrwb"
install_amrwb >>$LOG 2>1
dots "Installing amrwb" $?
dots "Installing libvpx"
install_libvpx >>$LOG 2>1
dots "Installing libvpx" $?
dots "Installing libasound"
install_libasound >>$LOG 2>1
dots "Installing libasound" $?
ldconfig
else
echo "--- Skipping ---"
fi
### FFMPEG Programs
echo -e "\n#### Installing FFMPEG Binaries #### \n"
dots "Installing FFMPEG"
install_ffmpeg >>$LOG 2>1
dots "Installing FFMPEG" $?
dots "Installing MPlayer"
install_mplayer >>$LOG 2>1
dots "Installing MPlayer" $?
dots "Installing MP4Box"
install_mp4box >>$LOG 2>1
dots "Installing MP4Box" $?
dots "Installing FFMPEG-PHP"
install_ffmpegphp >>$LOG 2>1
dots "Installing FFMPEG-PHP" $?