![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Gee! These Aren't Roasted!
![]() Join Date: Oct 2006
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
|
MLBTV 09 Ubuntu Jaunty
Are you a baseball fan and an Ubuntu fan? Then this guide is for you!
You must have a MLBTV premium account. Also, your computer and internet connection speed must be up to par for it keep up with the HD video feeds. 1st we will download everything that we will need.. Java: Code:
$ sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts Code:
$ sudo apt-get install build-essential Code:
$ sudo apt-get install python-xml Code:
$ sudo apt-get install python-simplejson Code:
$ sudo apt-get install python-setuptools Code:
$ sudo apt-get install python-distutils-extra Code:
$ sudo apt-get install subversion Code:
$ sudo apt-get build-dep mplayer Code:
$ sudo easy_install suds Mediabuntu: Code:
$ sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list \ --output-document=/etc/apt/sources.list.d/medibuntu.list Code:
$ sudo apt-get update && sudo apt-get install medibuntu-keyring \ && sudo apt-get update Code:
$ sudo apt-get install build-essential checkinstall gpac libgpac-dev git-core yasm Code:
$ git clone git://git.videolan.org/x264.git $ cd x264 $ ./configure --prefix=/usr --enable-shared $ make $ sudo checkinstall --fstrans=no --install=yes --pakdir "$HOME/Desktop" \ --maintainer "$USER" --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" \ --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default $ make distclean Code:
$ cd $HOME $ wget ftp://ftp.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2 $ sudo mkdir -pv /usr/lib/codecs $ tar xjvf all-20071007.tar.bz2 $ sudo cp -v $HOME/all-20071007/* /usr/lib/codecs Next we download mlbviewer, mplayer, and the autobahn.jar: mlbviewer: Code:
$ svn co https://mlbviewer.svn.sourceforge.net/svnroot/mlbviewer/trunk mlbviewer Code:
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer Code:
$ wget http://www.mlb.com/nexdef-jars/unsupported/autobahn.jar Compile mplayer: (note: after typing the make command, sit back and relax as it could take a bit) Code:
$ cd mplayer $ ./configure --codecsdir=/usr/lib/codecs --confdir=/etc/mplayer --prefix=/usr --enable-dynamic-plugins $ make $ sudo apt-get remove mplayer mencoder $ sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/Desktop" \ --pkgname mplayer --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \ --pkgversion "3:1.0~svn-`grep "#define VERSION" version.h | cut -d"-" -f2`" $ make distclean Code:
$ cd mlbviewer $ mkdir -p ~/.mlb $ cp MediaService.* ~/.mlb/ In terminal navigate to the mlbviewer folder: Code:
$ python mlbviewer.py $ cd $ cd .mlb $ gedit config Last but not least lets watch some baseball! Open terminal and navigate to the folder where you saved autobahn.jar and type: Code:
$ java -jar autobahn.jar Now open a new terminal and navigate to the mlbviewer folder and type this: Code:
$ python mlbviewer.py Here is a sample of my config file (note: you can try the 3000000k feed but you might have better luck using the 2200000k feed via the max_bps setting: My config (in the .mlb folder) Code:
# See README for explanation of these settings. # user and pass are required except for Top Plays user=your_mlbtv_username_here pass=your_mlbtv_password_here show_player_command=0 live_from_start=0 favorite_color=cyan speed=800 video_follow= video_player=mplayer -cache 2048 -really-quiet show_inning_frames=1 x_display= audio_player=mplayer -cache 64 -really-quiet flash_browser=firefox %s max_bps=2200000 bg_color=xterm coverage=home strict_stream=1 audio_follow= top_plays_player= favorite=ana use_color=0 use_nexdef=1 debug=0 time_offset= blackout=kc Code:
$ sudo apt-get install smplayer Open terminal and navigate to the folder where you saved the autobahn.jar and run the terminal code: Code:
$ java -jar autobahn.jar Code:
$ python mlbviewer.py I find it easier if you have autobahn.jar located in the mlbfolder. Want to make a simple script to open these commands? For autobahn.jar: Open a blank text document then copy and paste this into it: Code:
#!/bin/sh java -jar ./autobahn.jar Now to run autobahn.jar you simply open the folder where the file we created above is located and click on it. When asked what to do choose "Run In Terminal" For mlbviewer Open a blank text document then copy and paste this into it: Code:
#!/bin/sh python mlbviewer.py Now to run mlbviewer you simply open the folder where the file we created above is located and click on it. When asked what to do choose "Run In Terminal" If autobahn.jar is located in the mlbviewer folder then it is easy to make a copy of the entire folder and link it on your desktop. From there, you would simply open the folder and click on the 2 scripts we just made above. Kris
__________________
Registered Linux User: 433263 Registered Ubuntu User: 9010 Last edited by raqball; June 28th, 2009 at 11:01 PM.. Reason: update mplayer ./config code |
|
|
|
| Bookmarks |
| Tags |
| jainty, mlbtv, mlbviewer, ubuntu 32 bit |
| Thread Tools | |
| Display Modes | |
|
|