LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MLB.TV in Linux (https://www.linuxquestions.org/questions/linux-software-2/mlb-tv-in-linux-432479/)

redseventyseven 05-18-2010 07:26 PM

ok, now I'm having problems viewing the listings, using the latest svn revision (252).

If I run mlbviewer.py with debug turned off I get "There was a parser problem with the listings" and then the program quits out. With debug on, I get the following message:

Code:

Traceback (most recent call last):
  File "mlbviewer.py", line 1545, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 207, in mainloop
    raise Exception, detail

anyone able to shed some light as to what's happening? I can't even get to the listings page.

daftcat 05-18-2010 07:42 PM

Quote:

Originally Posted by redseventyseven (Post 3973392)
ok, now I'm having problems viewing the listings, using the latest svn revision (252).

If I run mlbviewer.py with debug turned off I get "There was a parser problem with the listings" and then the program quits out. With debug on, I get the following message:

Code:

Traceback (most recent call last):
  File "mlbviewer.py", line 1545, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 207, in mainloop
    raise Exception, detail

anyone able to shed some light as to what's happening? I can't even get to the listings page.

Is that the entire Traceback? There seems to be something missing, namely the actual Exception that was thrown.

If that's the entire error message, try changing line 207 in mlbviewer.py from:

Code:

raise Exception,detail
to:

Code:

raise

daftcat 05-18-2010 07:44 PM

Quote:

Originally Posted by poorboywilly (Post 3973343)
Live games working fine for me now, but archived games are saying
Code:

Requested stream not available.
Requested coverage association: (number)
Available content list =
[]


I'm guessing that means the game isn't actually archived yet. What does the website say for that game?

kweisen 05-18-2010 07:48 PM

I was about to report that problems, but all of sudden it WORKS? Thanks to daftcat and also cktb for their assistance.

kaput 05-18-2010 08:29 PM

Thanks again, daftcat!

poorboywilly 05-18-2010 08:32 PM

Quote:

Originally Posted by daftcat (Post 3973420)
I'm guessing that means the game isn't actually archived yet. What does the website say for that game?

Oops, my bad, I forgot the 1800k's aren't getting archived. It's good :).

kdz13 05-18-2010 09:14 PM

I am trying to get this working via a http server so I can watch it from other machines....

video_player = vlc --intf=dummy --rc-fake-tty %sv stream/ts:///dev/stdin --sout '#standard{access=http,dst=0.0.0.0:8080/baseball.mp4}'

It almost works, not quite. VLC gives a message about mp4 only being valid in file mode, then complains about an invalid ts stream....

Any other way to do what I am trying? I wanna run this on a headless box, then be able to use VLC or XBMC to connect to the stream... ideally I wanna do this over the internet, not just on the LAN

kdz13 05-18-2010 11:30 PM

if anybody cares.... I've made a bit of progress as the following now gives me audio (but no video yet):
Code:

video_player = vlc --intf=dummy --rc-fake-tty file:///dev/stdin %s-sout '#standard{access=http,dst=0.0.0.0:8080/baseball,mux=ts}'
This one gives me really cool looking ascii art baseball on the putty terminal:
Code:

video_player = vlc --intf=dummy --rc-fake-tty file:///dev/stdin %sv

poorboywilly 05-19-2010 11:35 AM

Quote:

Originally Posted by kdz13 (Post 3973481)
I am trying to get this working via a http server so I can watch it from other machines....

...

It almost works, not quite. VLC gives a message about mp4 only being valid in file mode, then complains about an invalid ts stream....

Any other way to do what I am trying? I wanna run this on a headless box, then be able to use VLC or XBMC to connect to the stream... ideally I wanna do this over the internet, not just on the LAN

VLC means what it says: it can only mux an MPEG 4 container as a file, it cannot stream an MP4, probably because MP4 needs a "hint track" for streaming which I would guess isn't implemented by VLC.

What you are doing is dangerous. This project is currently tolerated enough to be allowed to exist. I guarantee that MLBAM would not be pleased with their content being re-streamed over the internet, and with good cause. What could it possibly be used for besides unauthorized viewing of the media? You can use mlbviewer (or the official player) anywhere that there is the internet.

I urge you for the sake of mlbviewer to not discuss re-streaming the content.

kdz13 05-19-2010 11:38 AM

my apologies - My only intent is to get the content to my TV and not to get around any restrictions. I dislike plugging my laptop into the TV as it's not widescreen and hard to maintain, so I was hoping to stream to my media center (which handles http streams but is not an actual PC)

kdz13 05-19-2010 11:43 AM

My only reason for saying "over the internet" is actually because I want to conserve bandwidth. I have a rather low bandwidth link between my linux machine and my living room TV/media center, and was hoping to do a direct stream as opposed to reencoding - I am not rebroadcasting at all. I hope I have not in any way endangered this excellent project.

daftcat 05-19-2010 01:17 PM

I don't know if this helps any, but mlbviewer supports remote X server display through the x_display config file option.

I know it's necessary for my particular quirky setup ("headless" laptop connected to wall mount LCD) but I've not actually tested it across a network.

poorboywilly 05-19-2010 01:48 PM

Quote:

Originally Posted by kdz13 (Post 3974334)
My only reason for saying "over the internet" is actually because I want to conserve bandwidth. I have a rather low bandwidth link between my linux machine and my living room TV/media center, and was hoping to do a direct stream as opposed to reencoding - I am not rebroadcasting at all. I hope I have not in any way endangered this excellent project.

No, you are fine, I didn't mean to frighten you. It's just really best not to cross certain lines. While there are uses, such as the one you describe (viewing the content on your media center with large display) that I think can be defended as fair use, I don't know if "they" would see it this way.

The main problem with discussing it here is that if it were to engender the ire of MLBAM, it is mlbviewer that is seen as supporting it, which would not be good.

reefis 05-19-2010 06:51 PM

it's still not working for me, i have the regular non nextdef version. what do i have to do to get it working again?

redseventyseven 05-19-2010 07:13 PM

Quote:

Originally Posted by daftcat (Post 3973418)
Is that the entire Traceback? There seems to be something missing, namely the actual Exception that was thrown.

If that's the entire error message, try changing line 207 in mlbviewer.py from:

Code:

raise Exception,detail
to:

Code:

raise

ok - here's a traceback that i get without setting debug=1 in the mlbviewer config file:

Code:

Traceback (most recent call last):
  File "mlbviewer.py", line 1545, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 405, in mainloop
    + len(coveragetoggle.get(cfg['coverage'])) + 2
TypeError: object of type 'NoneType' has no len()

and here's what I get when I do as you suggested (debug=1, line 207 edited as instructed):

Code:

Traceback (most recent call last):
  File "mlbviewer.py", line 1545, in <module>
    curses.wrapper(mainloop, mycfg.data)
  File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "mlbviewer.py", line 203, in mainloop
    available = mysched.getListings(cfg['speed'],cfg['blackout'],cfg['audio_follow'])
  File "/home/michael/Projects/mlbviewer-svn/MLBviewer/mlbtv.py", line 870, in getListings
    return self.getXmlListings(myspeed, blackout, audiofollow)
  File "/home/michael/Projects/mlbviewer-svn/MLBviewer/mlbtv.py", line 885, in getXmlListings
    for elem in listings]
KeyError: '400'

thanks!


All times are GMT -5. The time now is 02:23 PM.