Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Bash by registered user webref ( 14 years ago )
#!/bin/bash
#
# Builder para ffmpeg
# dmc
ffmpeg_dir=/opt/ffmpeg
ffmpeg_opts="--prefix=${ffmpeg_dir}/build"
#"--enable-gpl --enable-shared --enable-swscale --enable-pthreads --enable-libdc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --disable-debug --extra-version 'edoceo'"
ffmpeg_extra="--enable-gpl --enable-libvorbis --enable-debug --enable-libmp3lame --enable-libxvid --enable-pthreads --enable-libx264 --enable-memalign-hack --enable-encoder=mp3 --enable-shared --enable-libfaac --enable-nonfree"

tobuild="aacplus libaacplus-1.0.5 faac faad2 libtiger libdaap-0.0.4 lame-398-2 libaal-1.0.5 libass-0.9.6 libmatroska-0.8.1 libmpeg2-0.5.1 libshout-2.2.2 libtheora-1.0 x264-snapshot-20090726-2245 opencore-amr-0.1.2 xvidcore"

mkdir -p ${ffmpeg_dir}/build
mkdir -p ${ffmpeg_dir}/src
cd ${ffmpeg_dir}

cd aacplus
if [-f aacplus]; then
echo 'Building aacplus'
./configure ${ffmpeg_opts}
fi

cd opencore-amr-0.1.2
if [-f opencore-amr-0.1.2]; then
echo 'Building opencore-amr'
./configure ${ffmpeg_opts}
fi

cd libtiger
if [-f libtiger]; then
echo 'Building libtiger'
./configure ${ffmpeg_opts}
fi

cd libdaap-0.0.4
if [-f libdaap-0.0.4]; then
echo 'Building libdaap'
./configure ${ffmpeg_opts}
fi

cd faac
if [-f faac]; then
echo 'Building faac'
./configure ${ffmpeg_opts}
fi

cd faad2
if [-f faad2]; then
echo 'Building faad2'
./configure ${ffmpeg_opts}
fi
cd lame-398-2
if [-f lame-398-2]; then
echo 'Building lame'
./configure ${ffmpeg_opts}
fi
cd libaal-1.0.5
if [-f libaal-1.0.5]; then
echo 'Building libaal'
./configure ${ffmpeg_opts}
fi

cd libass-0.9.6
if [-f libass-0.9.6]; then
echo 'Building libass'
./configure ${ffmpeg_opts}
fi

cd libmatroska-0.8.1
if [-f libmatroska]; then
echo 'Building libmatroska'
./configure ${ffmpeg_opts}
fi

cd libmpeg2-0.5.1
if [-f libmpeg2-0.5.1]; then
echo 'Building libmpeg2'
./configure ${ffmpeg_opts}
fi

cd libshout-2.2.2
if [-f libshout-2.2.2]; then
echo 'Building libshout'
./configure ${ffmpeg_opts}
fi

cd libtheora-1.0
if [-f libtheora-1.0]; then
echo 'Building libtheora'
./configure ${ffmpeg_opts}
fi

cd x264-snapshot-20090726-2245
if [-f x264-snapshot-20090726-2245]; then
echo 'Building libx264'
./configure ${ffmpeg_opts}
fi

cd xvidcore
if [-f xvidcore]; then
echo 'Building xvidcore'
./configure ${ffmpeg_opts}
fi

cd ffmpeg
if [-f ffmpeg]; then
echo 'Building ffmpeg'
./configure ${ffmpeg_opts} ${ffmpeg_extra}
fi

 

Revise this Paste

Your Name: Code Language: