Advertisement
Onryo

update script ffmpeg for Debian wheezy/testing and Mint

Feb 19th, 2012
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.48 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #######################################################################################
  4. ##  By Erik Adler aka Onryo.                                                         ##
  5. ##  This is an ffmpeg upgrade stript for Debian Wheezy/testing and Mint.             ##      
  6. ##  This bash script will upgrade to the newest git of x264, VP8, ffmpeg             ##
  7. ##  qt-faststart and lavf                                                            ##
  8. ##  This is an update script for ffmpeg for Debian wheezy/testing                    ##
  9. ##  License for this script is copyleft.                                             ##
  10. ##  libfaac-dev, libmp3lame-de and libmp3lame-dev are found in                       ##
  11. ##  "deb http://www.debian-multimedia.org main"                                      ##
  12. ##   No fancy msg in this. When i get around to it Ill port it to C with QT. With    ##
  13. ##   All the bells and blinky GUI install stuff.                         ##
  14. #######################################################################################
  15.  
  16. # change the below path to one that fits your computer. I call mine sandbox but call it
  17. # what you want on your system.
  18. sandbox=/home/onryo/sandbox
  19.  
  20. # uses all the cores and hyper threading for your cpu.
  21. cpu_threads=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
  22.  
  23. sudo apt-get -y remove ffmpeg x264 libx264-dev libvpx-dev
  24. sudo apt-get update
  25. 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
  26.  
  27. ##################updates x264###################
  28.  
  29. cd $sandbox/x264
  30. # gets rid of old deb junk (below) that checkinstall made.
  31. rm *.deb
  32. make -j $cpu_threads distclean
  33. git pull
  34. ./configure --enable-static
  35. make -j $cpu_threads
  36. sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes --fstrans=no --default
  37.  
  38. ################updates libvpx VP8 video##########
  39.  
  40. cd $sandbox/libvpx
  41. rm *.deb
  42. make -j $cpu_threads clean
  43. git pull
  44. ./configure
  45. make -j $cpu_threads
  46. sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
  47.  
  48. ###############updates ffmpeg#####################
  49.  
  50. cd $sandbox/ffmpeg
  51. rm *.deb
  52. make -j $cpu_threads distclean
  53. git pull
  54. ./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
  55. make -j $cpu_threads
  56. sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
  57. hash x264 ffmpeg ffplay ffprobe
  58.  
  59. ##############updates qt-faststart##################
  60.  
  61. cd $sandbox/ffmpeg
  62. make -j $cpu_threads tools/qt-faststart
  63. 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
  64.  
  65. ###############updates lavf to x264##################
  66.  
  67. cd $sandbox/x264
  68. make -j $cpu_threads distclean
  69. ./configure --enable-static
  70. make -j $cpu_threads
  71. 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