Advertisement
fanofde4ever

linux mplayer build script

Sep 4th, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. #!/bin/sh
  2. sudo apt-get install git-core autoconf libtool yasm #Going to need git, this script assumes a Debian-based distro such as Ubuntu
  3. sudo apt-get build-dep mplayer #Get the basic dependencies of mplayer + a few extra libraries for more co$
  4. git clone git://repo.or.cz/mplayer-build.git mplayer-build #Gits the most recent build scripts
  5. cd mplayer-build
  6. while true; do
  7. read -p "Do you want to use ffmpeg-mt?" yn
  8. case $yn in
  9. [Yy]* ) ./enable-mt; break;;
  10. [Nn]* ) exit;;
  11. * ) echo "Please answer yes or no.";;
  12. esac
  13. done
  14. ./init –shallow #Gits the most recent revisions of mplayer, ffmpeg(-mt), and libass
  15. #finds the number of cores in your system
  16. cores=`cat /proc/cpuinfo |grep processor |wc -l`
  17. cores=`expr $cores + 1`
  18. make -j$cores #builds mplayer
  19. sudo make install #To install it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement