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