Skip to content

Commit

Permalink
add FFmpeg build script. add 'x' permission to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed May 14, 2013
1 parent 52f7c27 commit d3f920c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/build_ffmpeg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#/bin/bash

IS_MINGW=`uname -a |grep -i mingw`
IS_MINGW=`test -n "$IS_MINGW"`
IS_MSYS=`uname -a |grep -i msys`
IS_MSYS=`test -n "$IS_MSYS"`

type -a yasm &>/dev/null || echo "You'd better to install yasm!"

DXVA="--enable-dxva2 --enable-hwaccel=h264_dxva2 --enable-hwaccel=mpeg2_dxva2 --enable-hwaccel=vc1_dxva2 --enable-hwaccel=wmv3_dxva2"

CONFIGURE="./configure --disable-static --enable-shared --enable-runtime-cpudetect --enable-memalign-hack --disable-avdevice --enable-avfilter --enable-avresample --disable-postproc --disable-ffplay --disable-ffserver --enable-ffprobe --disable-muxers --disable-encoders --enable-pthreads --disable-iconv --disable-bzlib --enable-hwaccels $DXVA --extra-cflags=\"-O3 -ftree-vectorize -Wundef -Wdisabled-optimization -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -foptimize-sibling-calls -fstrength-reduce -frerun-loop-opt -frename-registers -ffast-math -fomit-frame-pointer\""

echo $CONFIGURE

time eval $CONFIGURE

# --enable-pic is default --enable-lto
#http://cmzx3444.iteye.com/blog/1447366
#--enable-openssl --enable-hardcoded-tables --enable-librtmp --enable-zlib
Empty file modified scripts/functions.sh
100644 → 100755
Empty file.
Empty file modified scripts/mkclass.sh
100644 → 100755
Empty file.

0 comments on commit d3f920c

Please sign in to comment.