Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Laughmaster Says:
- June 17th, 2011 at 4:07 am edit
- I’ll just leave this here because /irc.
- I just did a fresh install of Ubuntu, and used the script you provided for mplayer (Thanks~). However, there are a few other dependencies that need to be installed before the script will work, and a couple other changes you should probably consider.
- To start, the first line (aside from #!/bin/sh) needs to be changed to:
- sudo apt-get install git-core autoconf libtool yasm
- After that, you might want to consider cloning the git repo into a hidden folder (just because most linux noobs will probably be doing this in their home folder):
- git clone git://repo.or.cz/mplayer-build.git .mplayer-build
- cd .mplayer-build
- And finally, a shallow initialization because there’s no reason to waste space:
- ./init –shallow
- … And also, unless you think people are going to run mplayer without a GUI, you really don’t need to make install. When you install smplayer (assuming you don’t build that yourself), it will install mplayer from the repo and overwrite your installation anyway. All you have to do is specify your mplayer executable in the smplayer settings to be ~/.mplayer-build/mplayer/mplayer and it’ll work without installing.
- Anyway, thanks again for giving instructions for Linux/Mac users. Much faster to get it from here than to test your luck trying google searches :)
- Blaze's Original
- #!/bin/sh
- sudo apt-get install git-core #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 #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
Add Comment
Please, Sign In to add comment