File: build_ffmpeg.sh

package info (click to toggle)
ffmpeg2theora 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 596 kB
  • ctags: 526
  • sloc: ansic: 5,810; python: 1,021; sh: 83; makefile: 21; xml: 1
file content (25 lines) | stat: -rwxr-xr-x 821 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
. ./ffmpegrev


common="--enable-gpl --enable-postproc --disable-muxers --disable-encoders --enable-libvorbis"
common="$common --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc"

#optional, if you have those libs installed(requires GPL3):
#extra="$extra --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb"

#apt-get install liba52-dev libgsm1-dev
#extra="$extra  --enable-libgsm"

#optional, if you have libvpx installed:
#extra="$extra --enable-libvpx"

#linux
options="$common --enable-pthreads $extra"

#mingw32
uname | grep MINGW && options="$common --enable-memalign-hack --enable-mingw32 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib $extra"

#configure and build ffmpeg
cd $FFMPEG_CO_DIR && ./configure $options && make -j8