File indexing completed on 2022-11-29 19:42:55

0001 #!/bin/bash
0002 #!/bin/bash
0003 set -e
0004 set -x
0005 
0006 function error_exit
0007 {
0008         echo "$1" 1>&2
0009         exit 1
0010 }
0011 
0012 
0013 if wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2; then
0014         tar xjvf ffmpeg-snapshot.tar.bz2
0015 else
0016         error_exit "$LINENO: An error has occurred.. Aborting."
0017 fi
0018 
0019 if cd ffmpeg; then
0020          ./configure --prefix="/opt/usr" --progs-suffix=mlt --build-suffix=mlt --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libxvid --enable-x11grab --enable-libgsm \
0021          --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore-amrwb \
0022          --enable-version3 --enable-libvpx && \
0023           make -j4 && make install
0024 else
0025         error_exit "$LINENO: An error has occurred.. Aborting."
0026 fi