Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #######################################################################################
- ## By Erik Adler aka Onryo. ##
- ## This is an ffmpeg upgrade stript for Debian Wheezy/testing and Mint. ##
- ## This bash script will upgrade to the newest git of x264, VP8, ffmpeg ##
- ## qt-faststart and lavf ##
- ## This is an update script for ffmpeg for Debian wheezy/testing ##
- ## License for this script is copyleft. ##
- ## libfaac-dev, libmp3lame-de and libmp3lame-dev are found in ##
- ## "deb http://www.debian-multimedia.org main" ##
- ## No fancy msg in this. When i get around to it Ill port it to C with QT. With ##
- ## All the bells and blinky GUI install stuff. ##
- #######################################################################################
- # change the below path to one that fits your computer. I call mine sandbox but call it
- # what you want on your system.
- sandbox=/home/onryo/sandbox
- # uses all the cores and hyper threading for your cpu.
- cpu_threads=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
- sudo apt-get -y remove ffmpeg x264 libx264-dev libvpx-dev
- sudo apt-get update
- sudo apt-get -y install build-essential git checkinstall yasm texi2html libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev
- ##################updates x264###################
- cd $sandbox/x264
- # gets rid of old deb junk (below) that checkinstall made.
- rm *.deb
- make -j $cpu_threads distclean
- git pull
- ./configure --enable-static
- make -j $cpu_threads
- sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes --fstrans=no --default
- ################updates libvpx VP8 video##########
- cd $sandbox/libvpx
- rm *.deb
- make -j $cpu_threads clean
- git pull
- ./configure
- make -j $cpu_threads
- sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
- ###############updates ffmpeg#####################
- cd $sandbox/ffmpeg
- rm *.deb
- make -j $cpu_threads distclean
- git pull
- ./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
- make -j $cpu_threads
- sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
- hash x264 ffmpeg ffplay ffprobe
- ##############updates qt-faststart##################
- cd $sandbox/ffmpeg
- make -j $cpu_threads tools/qt-faststart
- sudo checkinstall --pkgname=qt-faststart --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default install -Dm755 tools/qt-faststart /usr/local/bin/qt-faststart
- ###############updates lavf to x264##################
- cd $sandbox/x264
- make -j $cpu_threads distclean
- ./configure --enable-static
- make -j $cpu_threads
- sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes --fstrans=no --default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement