2
2
3
3
# https://github.com/markus-perl/ffmpeg-build-script
4
4
5
- VERSION=0.6
5
+ VERSION=0.7
6
6
CWD=$( pwd)
7
7
PACKAGES=" $CWD /packages"
8
8
WORKSPACE=" $CWD /workspace"
@@ -34,7 +34,7 @@ make_dir () {
34
34
35
35
remove_dir () {
36
36
if [ -d $1 ]; then
37
- rm -rf " $1 "
37
+ rm -r " $1 "
38
38
fi
39
39
}
40
40
@@ -215,7 +215,7 @@ if build "xvidcore"; then
215
215
fi
216
216
217
217
if build " x264" ; then
218
- download " ftp://ftp.videolan.org/pub/x264/snapshots/last_x264 .tar.bz2" " last_x264.tar.bz2"
218
+ download " ftp://ftp.videolan.org/pub/x264/snapshots/x264-snapshot-20161027-2245-stable .tar.bz2" " last_x264.tar.bz2"
219
219
cd $PACKAGES /x264-snapshot-* || exit
220
220
execute ./configure --prefix=${WORKSPACE} --disable-shared --enable-static
221
221
execute make -j $MJOBS
257
257
if build " pkg-config" ; then
258
258
download " http://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz" " pkg-config-0.29.1.tar.gz"
259
259
cd $PACKAGES /pkg-config-0.29.1 || exit
260
- execute ./configure --silent --prefix=${WORKSPACE} --with-pc-path=${WORKSPACE} /lib/pkgconfig --with-internal-glib
260
+ execute ./configure --silent --prefix=${WORKSPACE} --with-pc-path=${WORKSPACE} /lib/pkgconfig
261
261
execute make -j $MJOBS
262
262
execute make install
263
263
build_done " pkg-config"
@@ -275,18 +275,27 @@ if build "cmake"; then
275
275
build_done " cmake"
276
276
fi
277
277
278
+ if build " freetype2" ; then
279
+ download " http://download.savannah.gnu.org/releases/freetype/freetype-2.6.5.tar.gz" " freetype.tar.gz"
280
+ cd $PACKAGES /freetype* || exit
281
+ execute ./configure --prefix=${WORKSPACE} --disable-shared --enable-static --without-png
282
+ execute make -j $MJOBS
283
+ execute make install
284
+ build_done " freetype2"
285
+ fi
286
+
278
287
if build " vid_stab" ; then
279
288
download " https://codeload.github.com/georgmartius/vid.stab/legacy.tar.gz/release-0.98b" " vid.stab-0.98b-transcode-1.1-binary-x86_64.tgz"
280
289
cd $PACKAGES /georgmartius-vid* || exit
281
290
perl -p -i -e " s/vidstab SHARED/vidstab STATIC/" CMakeLists.txt
282
291
execute cmake -DCMAKE_INSTALL_PREFIX:PATH=${WORKSPACE} .
283
- execute make -s install
292
+ execute make install
284
293
build_done " vid_stab"
285
294
fi
286
295
287
296
if build " x265" ; then
288
- download " https://bitbucket.org/multicoreware/x265/downloads/x265_1.9 .tar.gz" " x265-1.9 .tar.gz"
289
- cd $PACKAGES /x265_1.9 || exit
297
+ download " https://bitbucket.org/multicoreware/x265/downloads/x265_2.1 .tar.gz" " x265-2.1 .tar.gz"
298
+ cd $PACKAGES /x265_ * || exit
290
299
cd source || exit
291
300
execute cmake -DCMAKE_INSTALL_PREFIX:PATH=${WORKSPACE} -DENABLE_SHARED:bool=off .
292
301
execute make -j $MJOBS
@@ -297,24 +306,15 @@ if build "x265"; then
297
306
fi
298
307
299
308
if build " fdk_aac" ; then
300
- download " http ://downloads.sourceforge.net/project/opencore-amr/ fdk-aac/fdk-aac-0.1.4. tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fopencore-amr%2Ffiles%2Ffdk-aac%2F&ts=1457561564&use_mirror=kent " " fdk-aac-0.1.4.tar.gz "
309
+ download " https ://github.com/mstorsjo/ fdk-aac/archive/master. tar.gz" " fdk-aac.zip "
301
310
cd $PACKAGES /fdk-aac* || exit
311
+ execute ./autogen.sh
302
312
execute ./configure --prefix=${WORKSPACE} --disable-shared --enable-static
303
313
execute make -j $MJOBS
304
314
execute make install
305
315
build_done " fdk_aac"
306
316
fi
307
317
308
- if build " freetype2" ; then
309
- download " http://download.savannah.gnu.org/releases/freetype/freetype-2.6.3.tar.gz" " freetype-2.6.3.tar.gz"
310
- cd $PACKAGES /freetype-2.6.3 || exit
311
- execute ./configure --prefix=${WORKSPACE} --disable-shared --enable-static --without-png
312
-
313
- execute make -j $MJOBS
314
- execute make install
315
- build_done " freetype2"
316
- fi
317
-
318
318
319
319
build " ffmpeg"
320
320
download " http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 " " ffmpeg-snapshot.tar.bz2 "
@@ -345,7 +345,7 @@ execute ./configure --arch=64 --prefix=${WORKSPACE} --extra-cflags="-I$WORKSPAC
345
345
--enable-libopencore_amrwb \
346
346
--enable-libopencore_amrnb \
347
347
--enable-filters \
348
- --enable-libvidstab \
348
+ --enable-libvidstab \
349
349
--enable-libfreetype
350
350
# enable all filters
351
351
# enable AAC de/encoding via libfdk-aac [no]
0 commit comments