PDA

View Full Version : Script to get newest MPlayer, XviD, and x264 from cvs/svn


six6
2nd August 2005, 00:45
Hi all:

Currently, this is experimental. Use at your own risk.

I wrote a small shell script that should work on all linux systems that downloads, builds, and installs MPlayer (and all binary codecs), x264, and XviD from cvs or subversion (depending on what that software's repository is). You also have the option to install the stable MPlayer instead of cvs. On debian based systems it also downloads the dependencies needed for compilation, but on other systems you must manually get the software it needs (run the script to see what software you might need).

It's included with bitterbpp to help those that need to get these softwares to operate bitterbpp, but also works well if you just want the latest mentioned stuff.

Anyway, here it is:

download: bitterbpp-refresh (http://sunfryes.com/files/scripts/bash/bitterbpp-refresh) (updated Feb 5 2006)
read on-line: bitterbpp-refresh.txt (http://sunfryes.com/files/scripts/bash/bitterbpp-refresh.txt)

Directions:
1. If you implicitly trust me, run the script as root :). If you are uncomfortable running a script from the internet (you should be!), read it to see what it does. If you can't read bash/perl scripts, well hmm, I guess you'll have to trust me if you want to run it :).
2. The first time through, don't "run quietly" if you want to see what's going on!

That's all! Anytime you want to update to the latest stuff, you can just rerun the script.

I'd appreciate if people give suggestions, etc!

Edit: If the MPlayer CVS gives you funny problems (doesn't download, aborts the login, etc), re-run the script using MPlayer stable. If you want to get the CVS, try again in a few hours (or days...) and hopefully the MPlayer devs will have the CVS fixed by then :)

GraDy
2nd August 2005, 14:25
Thanks a lot! Gonna try this on Ubuntu Hoary and report back! :)

six6
2nd August 2005, 19:43
I just updated that script (same link, always will be), and if you use the old one MPlayer may not be compiled with libavcodec support.

Edit: Also, as of today cvs downloading from MPlayer has some issues (right after I ask people to test this script, go figure :rolleyes: ). This brings up a good point though: Sometimes this script will not work because the software is broken in cvs/svn! Being on the cuttting edge of software availability has it's drawbacks, :)

GraDy
3rd August 2005, 12:14
When I get to the step where the script fetches the deps, I get this error: 'E: Malformed line 34 in source list /etc/apt/sources.list (dist parse)'
Here's my sources.list:
## Uncomment the following two lines to fetch updated software from the network
deb http://us.archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hoary main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu hoary universe
deb-src http://us.archive.ubuntu.com/ubuntu hoary universe

deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted

deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe

deb http://archive.ubuntu.com/ubuntu hoary multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary multiverse

## Backports
deb http://ubuntu-backports.mirrormax.net/ hoary-backports main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe multiverse restricted

## bitterbpp
deb http://www.bunkus.org/ubuntu hoary
deb ftp://ftp.nerim.net/debian-marillat unstable main

I'm sure I'm doing some stupid misstake but I can't figure out what I'm doing wrong :(.

six6
3rd August 2005, 19:15
@GraDy
Hmm, irreproducible even with your sources.lst. Try the new script that I just uploaded.

GraDy
3rd August 2005, 19:26
Yeah, I'm suing the newst script. I get this error in synaptic or if I run apt-get install <something> from the cli. If I remove the 'deb http://www.bunkus.org/ubuntu hoary' i get no errors. Strange, might be something ubuntu-related (or GraDy-related ;))

six6
3rd August 2005, 19:33
Oh, I see what's wrong now. Change your "deb http://www.bunkus.org/ubuntu hoary" to "deb http://www.bunkus.org/ubuntu/hoary/ ./" (Notice the extra "./").

GraDy
3rd August 2005, 22:10
Thanks! That worked nicely! Now I have another problem :P When configuring lsdvd I get this

I'll be configuring lsdvd now. Enter your ./configure arguments, enter N for none, or press enter to accept the default []:
rdbi_software.sh: line 236: ./configure: No such file or directory

six6
3rd August 2005, 22:58
@GraDy

Again, irreproducible. Do you have the lsdvd directory (with the lsdvd program files inside) in the directory you're running the script? If so, it has to be the one bundled with bitterbpp (or the one downloaded from sourceforge). If you don't have either, the script can't configure lsdvd (because unlike the rest of the software, the script doesn't download lsdvd).

Anyway, I wouldn't worry about it unless you're using bitterbpp (otherwise you most likely don't need lsdvd), and even if you are, you can actually install lsdvd via apt if you have Marillat's debian repository in your sources.lst.

GraDy
4th August 2005, 13:14
I have to appologize for my stupidity, of course I had forgotten that! Now the script worked nicely, thanks!

six6
5th August 2005, 02:16
@GraDy

I'm glad it worked. Did you try the CVS MPlayer or stable? If you used stable you can't encode with x264; and CVS seems to be working now. If you want to update, just rerun the script in the same directory :)

GraDy
5th August 2005, 10:43
I think I used CVS :P The default of the script anyways. Haven't had enough time to encode anything yet, but mplayer playes files fine at least :).

dwflo
12th August 2005, 05:22
There is an RPM package for those that use them at http://rpm.livna.org/
It includes mencoder and a gui.

Dave

six6
13th August 2005, 23:47
I released a new version of bitterbpp, and updated this script too. You may download it from the links above or with the bitterbpp package.

six6
2nd September 2005, 07:05
New version, minor bugfixes (relating to installing/removing codecs).

six6
10th September 2005, 10:24
New version. Now we're back to running the script as root, and you no longer install/worry about lsdvd. This is in anticipation of bitterbpp_v1.5.2beta, which will be released as a deb package with this script, bitterbpp-refresh (formerly rdbi_software.sh), packaged with it.

TSO COBOL
24th September 2005, 22:23
marillat is out, so there is a problem with your script

six6
25th September 2005, 08:11
@TSO COBOL

Not sure what you mean.

TSO COBOL
25th September 2005, 13:33
marillat repository dont work so your script cant install x264

six6
5th February 2006, 20:37
Updated.