Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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
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.
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)
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.
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.
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'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.