mlbviewer 2012 Installation guide for Ubuntu (MLB.TV on Linux)

Download mlbviewer:

Go and grab the latest version from the sourceforge page below:

http://sourceforge.net/projects/mlbviewer/

Unrar:

tar -zxvf mlbviewer2012.tar.gz

It doesn’t require any installation but you will need a few extras and the easiest way to install them is shown below:

Download PyXML:

PyXML is an XML processing tool for python which this project uses, sometimes it can be tricky to install python modules so we’ll be using setuptools which you can get from the link below.

If you’re unsure of what version you need, open terminal and type “python”, this will show the version of python you’re running. Mine was 2.7.4 so I downloaded “setuptools-0.6c11-py2.7.egg” I would imagine yours would be similar.

http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other

Once you have it, run it (replacing the version you downloaded for the one here):

sudo sh setuptools-0.6c11-py2.7.egg

Now to install PyXML it’s as simple as running:

sudo easy_install pyxml

That’s it, you’re done.

Optional – Install MPLAYER2:

MPLAYER2 offers at lot of advantages over MPLAYER however we’re most interested in it because it offers better streaming support and handle stream rate switches (important if you enable adaptive streaming in nexdef mode).

sudo add-apt-repository ppa:motumedia/mplayer-daily
sudo apt-get update
sudo apt-get install mplayer2

(Thanks to – Web Upd8)

Optional – Install mlbhls (for nextdef | HD):

Instructions as per in REQUIREMENTS-2012.txt in the mlbviewer package.

You’ll also need some extra packages which aren’t stated:

sudo apt-get install libconfig-dev libcurl4-gnutls-dev
svn co https://mlbtv-hls-nexdef.googlecode.com/svn/branches/experimental mlbhls
cd mlbhls
make
sudo cp mlbhls /usr/bin

Once that’s done, you should be able to get the higher bitrate streams too!

Using mlbplayer:

Setup:

The first time you run mlbviewer it will generate a config file which you’ll need to enter your Premium MLB.TV account details in, running mlbviewer will tell you where this file is located:

python mlbviewer.py

Go edit the file and enter your email as the “user” and your password after “pass”.

Now re-run mlbviewer and it should start up!

python mlbviewer.py

Sit back and enjoy!

5 comments to mlbviewer 2012 Installation guide for Ubuntu (MLB.TV on Linux)

  • Lars

    Hi!
    For me it doesn’t work. I post what terminal tells me, hoping you are able to see from which step on the errors are starting:

    lars@X64V:~$ sudo easy_install pyxml
    Searching for pyxml
    Reading http://pypi.python.org/simple/pyxml/
    Reading http://www.python.org/sigs/xml-sig/
    Best match: PyXML 0.8.4
    Downloading http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0
    Processing PyXML-0.8.4.tar.gz
    Running PyXML-0.8.4/setup.py -q bdist_egg –dist-dir /tmp/easy_install-WdnLRV/PyXML-0.8.4/egg-dist-tmp-uq9A2U
    warning: no files found matching ‘*.html’ under directory ‘extensions/expat’
    warning: no files found matching ‘*Makefile’ under directory ‘extensions/expat’
    warning: no files found matching ‘*.dsp’ under directory ‘extensions/expat’
    warning: no previously-included files matching ‘*/CVS/*’ found anywhere in distribution
    extensions/pyexpat.c:5:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
    compilation terminated.
    error: Setup script exited with error: command ‘gcc’ failed with exit status 1
    lars@X64V:~$ python mlbviewer.py
    python: can’t open file ‘mlbviewer.py’: [Errno 2] No such file or directory
    lars@X64V:~$

    My Ubuntu version: 11.04
    Help would be great! :-)
    Lars

  • MINImonster

    I have the same error like Lars when I install the pyxml ~
    My python’s version is 2.7.3
    Thanks!

    root@ubuntu:~# sh setuptools-0.6c11-py2.7.egg
    Processing setuptools-0.6c11-py2.7.egg
    Copying setuptools-0.6c11-py2.7.egg to /usr/local/lib/python2.7/dist-packages
    Adding setuptools 0.6c11 to easy-install.pth file
    Installing easy_install script to /usr/local/bin
    Installing easy_install-2.7 script to /usr/local/bin

    Installed /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
    Processing dependencies for setuptools==0.6c11
    Finished processing dependencies for setuptools==0.6c11
    root@ubuntu:~# easy_install pyxml
    Searching for pyxml
    Reading http://pypi.python.org/simple/pyxml/
    Reading http://www.python.org/sigs/xml-sig/
    Best match: PyXML 0.8.4
    Downloading http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0
    Processing PyXML-0.8.4.tar.gz
    Running PyXML-0.8.4/setup.py -q bdist_egg –dist-dir /tmp/easy_install-LU61b6/PyXML-0.8.4/egg-dist-tmp-H_xF0x
    warning: no files found matching ‘*.html’ under directory ‘extensions/expat’
    warning: no files found matching ‘*Makefile’ under directory ‘extensions/expat’
    warning: no files found matching ‘*.dsp’ under directory ‘extensions/expat’
    warning: no previously-included files matching ‘*/CVS/*’ found anywhere in distribution
    extensions/pyexpat.c:5:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: Setup script exited with error: command ‘gcc’ failed with exit status 1
    root@ubuntu:~#

  • MINImonster

    And I use ubuntu12.04.1 server x86.

  • Hi MINImonster & Lars,

    I believe the issue is that python-dev is not installed and is required for PyXML, try running:

    sudo apt-get install python-dev

    run through the steps again and re-post your results. Unfortunately, it’s difficult to judge without more in-depth information but from the missing Python.h I believe this could be the issue.

    Hope this helps!

    Alex

  • Adam

    Hi, Alex.

    I had the same issues as MINI and Lars on my Raspberry Pi and wanted to let you know that I think your suggestion worked. PyXML installed anyway. Still have to see about mlbviewer. Thanks!

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>