LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2013, 05:28 PM   #3781
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by mkomko View Post
Thanks for the information! I'm looking forward to the upcoming season .

Will the World Baseball Classic be supported?
The good news is that I figured out where they are hiding the WBC listings. The bad news is that at least for the next week (I haven't looked much further than that), there is no audio or video available. There will be some media available for WBC vs MLB exhibition games, though. Looks like the first of them is 5-Mar WBC Dominican Republic vs Philadelphia Phillies. That one will show up in mlbviewer without any changes on my end.

If you're curious, change grid.xml in MLBviewer/mlbtv.py to grid_int.xml (first occurrence, line 307 in SVN rev375.)
 
Old 03-10-2013, 12:51 PM   #3782
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
I did a reinstall on my laptop last year so I'm trying to install mlbviewer again from git but when I try to install PyXML with sudo easy_install pyxml I get an error:
Code:
$  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-nolH77/PyXML-0.8.4/egg-dist-tmp-LIHQk2
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
$
Is there something I'm missing? I'm using the tutorial I wrote last year for my site and I have no clue what I need to do to get PyXML installed anymore.
 
Old 03-11-2013, 12:35 AM   #3783
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
I did a reinstall on my laptop last year so I'm trying to install mlbviewer again from git but when I try to install PyXML with sudo easy_install pyxml I get an error:
Code:
$  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-nolH77/PyXML-0.8.4/egg-dist-tmp-LIHQk2
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
$
Is there something I'm missing? I'm using the tutorial I wrote last year for my site and I have no clue what I need to do to get PyXML installed anymore.
I don't think it's explicitly required anymore. It is either a standard part of python or it is installed by default by many distributions. I have recently reinstalled both Debian and Linux Mint (Debian Edition.) In both cases, I did not install anything other than mplayer2, rtmpdump, and/or mlbhls. Try skipping the pyxml step in the tutorial.

By the way, I'm not sure what the point of commenting out the sys.exit() line in mlbplay.py. mlbviewer.py and mlbplay.py are two different implementations (interfaces) of the MLBviewer library. One uses curses and one does not. But mlbviewer does not use mlbplay (or vice versa.)
 
Old 03-11-2013, 07:31 AM   #3784
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I notice that for about the last week nexdef/mlbhls mode no longer works. I get the message:

"An error occurred in locating the game stream:
Stream URL not found in reply. Stream may not be available yet".

This has also affected last year's archives, which I can no longer reach in nexdef mode. The standard non-nexdef mode still seems to work fine however.

The nexdef stream is still being transmitted by MLBTV: it works on pre-season games (including with selectable audio channels) with the google chrome flash browser plugin and the 2012 nexdef.jar java binary.

Something in the nexdef stream selection formatting seems to have changed. I have a basic MLBTV subscription, rather than premium subscription, if that makes any difference.
 
Old 03-11-2013, 10:57 AM   #3785
BostonPeng
Member
 
Registered: Jul 2009
Location: Boston, MA
Distribution: SolydK Testing + KDE 4.9.5
Posts: 113

Rep: Reputation: Disabled
Quote:
Originally Posted by daftcat View Post
I don't think it's explicitly required anymore. It is either a standard part of python or it is installed by default by many distributions. I have recently reinstalled both Debian and Linux Mint (Debian Edition.) In both cases, I did not install anything other than mplayer2, rtmpdump, and/or mlbhls. Try skipping the pyxml step in the tutorial.

By the way, I'm not sure what the point of commenting out the sys.exit() line in mlbplay.py. mlbviewer.py and mlbplay.py are two different implementations (interfaces) of the MLBviewer library. One uses curses and one does not. But mlbviewer does not use mlbplay (or vice versa.)
Thnaks, I'm able to run mlbviewer2013 without PyXML. I have noticed two things though. When I first fired up mlbviewer I had the config file set to use VLC but after going into the config file and switching to either mplayer or mplayer2 it still uses VLC for playing videos.

I also hit H to call up the help screen (I forgot what the hotkeys were and didn't want to open the README file to check them but as soon as I hit H mlbviewer crashed with this in the terminal:
Code:
$ python mlbviewer.py 
Traceback (most recent call last):
  File "mlbviewer.py", line 1637, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 986, in mainloop
    myscr.addstr(n,0,k)
_curses.error: addstr() returned ERR
$
Am I missing something?
 
Old 03-11-2013, 04:54 PM   #3786
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by BostonPeng View Post
Thnaks, I'm able to run mlbviewer2013 without PyXML. I have noticed two things though. When I first fired up mlbviewer I had the config file set to use VLC but after going into the config file and switching to either mplayer or mplayer2 it still uses VLC for playing videos.

I also hit H to call up the help screen (I forgot what the hotkeys were and didn't want to open the README file to check them but as soon as I hit H mlbviewer crashed with this in the terminal:
Code:
$ python mlbviewer.py 
Traceback (most recent call last):
  File "mlbviewer.py", line 1637, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 986, in mainloop
    myscr.addstr(n,0,k)
_curses.error: addstr() returned ERR
$
Am I missing something?
Check both video_player and audio_player.

vlc is not the default player in mlbviewer so you are picking it up somewhere. Try removing/renaming the config file and let it auto-generate a new one.

The help error occurs when there are either more lines or more columns of text to print than your terminal supports. Sorry, I just haven't implemented truncation or scrolling in all my addstr()'s. Then again, the help screen is formatted for a standard 80x24 terminal.
 
Old 03-11-2013, 05:03 PM   #3787
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by chrisVV View Post
I notice that for about the last week nexdef/mlbhls mode no longer works. I get the message:

"An error occurred in locating the game stream:
Stream URL not found in reply. Stream may not be available yet".

This has also affected last year's archives, which I can no longer reach in nexdef mode. The standard non-nexdef mode still seems to work fine however.

The nexdef stream is still being transmitted by MLBTV: it works on pre-season games (including with selectable audio channels) with the google chrome flash browser plugin and the 2012 nexdef.jar java binary.

Something in the nexdef stream selection formatting seems to have changed. I have a basic MLBTV subscription, rather than premium subscription, if that makes any difference.
Please post day and game for the games that aren't working. Today's St Louis-New York and yesterday's Boston-Tampa work just fine. Don't have the time to go looking for broken ones.

Please read the instructions in the TOOLS file for providing a debug trace using test/nexdef.py. Post the entire log to pastebin.com and the pastebin url here. We can see if there's something not quite right in the xml response back to you.
 
Old 03-11-2013, 05:53 PM   #3788
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
How strange. Assuming that you meant the Boston-Miami game, neither that nor the St Louis-New York game is given a tag by mlblistings.py, so I cannot get a debug trace for those.

mlblistings.py outputs this (as at 1838 EDT).

MLB.TV Listings for 3/11/2013
F: 5:05 PM: 2013/03/11/atlmlb-wasmlb-1 E: 14-363214-2013-03-11
F: 5:05 PM: 2013/03/11/balmlb-pitmlb-1 E: 14-363215-2013-03-11
F: 5:05 PM: 2013/03/11/bosmlb-miamlb-1 E: None
F: 5:05 PM: 2013/03/11/nynmlb-detmlb-1 E: 14-363221-2013-03-11
F: 5:05 PM: 2013/03/11/slnmlb-nyamlb-1 E: None
I: 8:05 PM: 2013/03/11/anamlb-clemlb-1 E: 14-363213-2013-03-11
F: 8:05 PM: 2013/03/11/colmlb-chamlb-1 E: None
I: 8:05 PM: 2013/03/11/lanmlb-milmlb-1 E: 14-363219-2013-03-11
I: 8:05 PM: 2013/03/11/oakmlb-sdnmlb-1 E: 14-363222-2013-03-11
I: 8:05 PM: 2013/03/11/sfnmlb-texmlb-1 E: 14-363223-2013-03-11
I: 8:10 PM: 2013/03/11/chnmlb-arimlb-1 E: 14-363217-2013-03-11
P: 11:05 PM: 2013/03/11/minmlb-tbamlb-1 E: 14-363220-2013-03-11

However, both these games play fine as archives in non-nexdef mode.

I obtained the output of nexdefdl.py for the LA Angels/Cleveland Indians game at http://pastebin.com/iK9BWDB7 . I think the game was still in progress then, but not sure. I will try in a few minutes with the late game.
 
Old 03-11-2013, 06:28 PM   #3789
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The late game is not on video, but the LA Angels/Cleveland Indians is now archived and I got a more complete result at http://pastebin.com/N4DV5GuZ. It plays OK in non-nexdef mode.
 
Old 03-11-2013, 06:39 PM   #3790
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Sorry this is getting very confusing. The last paste was for the non-televised Minnesota v Tampa game. Here is the real paste for the archive of LA/Cleveland: http://pastebin.com/eNXBVp56 .
 
Old 03-11-2013, 07:58 PM   #3791
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
You're getting a notAuthorizedStatus in the reply. Not sure why yet. Those XML replies are a beast to sort through. I'll look deeper into this later tonight.
 
Old 03-11-2013, 08:00 PM   #3792
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
BTW, you can use 'z' key in mlbviewer to get event-id's in Spring Training where not all the media is available. I think mlblistings.py is not getting the event-id from the right tuple which is why St Louis-New York shows no event-id yet in mlbviewer, it has video but not audio.
 
Old 03-12-2013, 02:20 AM   #3793
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I modified the test tools to print a decoded version of the XML rather than the raw XML itself. This should make it much easier for me look at these logs. Maybe one day I'll implement some kind of GUI tree for these responses.

Here is your response decoded: http://pastebin.com/z2kEJYXn

Looks like you're not authorized for HTTP_CLOUD_WIRED (playback-scenario used for nexdef) with the basic subscription.

However, it looks like you are authorized for HTTP_CLOUD_WIRED_WEB. I have no idea what the difference is.

Try this:

Code:
./nexdefdl.py 14-363213-2013-03-11 25689745 HTTP_CLOUD_WIRED_WEB
If that works for you, I can make a change in mlbviewer code. I'll probably make it a configuration file override temporarily to get you up and running and give me some time to look into it further.
 
Old 03-12-2013, 04:06 AM   #3794
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 381: test tools updated to print decoded responses rather than raw XML

Updated the test tools:

test/mlbgame.py
test/mlbgamedl.py
test/nexdef.py
test/nexdefdl.py

to print decoded versions of the responses rather than the raw xml.

Waiting on feedback from HTTP_CLOUD_WIRED_WEB test before I make any changes to the nexdef scenario requested.
 
Old 03-12-2013, 05:22 AM   #3795
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by daftcat View Post
[snip]
Looks like you're not authorized for HTTP_CLOUD_WIRED (playback-scenario used for nexdef) with the basic subscription.

However, it looks like you are authorized for HTTP_CLOUD_WIRED_WEB. I have no idea what the difference is.

Try this:

Code:
./nexdefdl.py 14-363213-2013-03-11 25689745 HTTP_CLOUD_WIRED_WEB
If that works for you, I can make a change in mlbviewer code. I'll probably make it a configuration file override temporarily to get you up and running and give me some time to look into it further.
You sleuthing has not diminished in the off season. With HTTP_CLOUD_WIRED_WEB, nexdefdl.py completed successfully, to the lines:

[MLB] Get (1237): 19/55/01.ts (bw: 500000, time: 1.14s) [Avg. D/L Rate of last 3 chunks: 2.77 Mbps]
[MLB] Get (1239): 19/55/06.ts (bw: 500000, time: 0.54s) [Avg. D/L Rate of last 3 chunks: 5.26 Mbps]

and so on.

Doing a textual search and replace of HTTP_CLOUD_WIRED_WEB for HTTP_CLOUD_WIRED in mlbtv.py, and mlbviewer now works fine for me in nexdef mode.

Maybe this is at the moment only affecting basic MLBTV subscribers or international subscribers. Maybe it will be applied to premium users in due course. Who knows. Anyway it resolves the problem for me.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration