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.
some games from the listing shown simply don't work. Is this known?
nyy and bos games was downloaded successfully. It only needed 1 restart because it stopped around 80%
Good Work!!!
Yes, I purposely included a couple of duds in the listings to verify error handling.
When you say it needed a restart, did my code take care of the restart for you or did you have to restart it yourself?
The ones that are expected to work are:
(yes) 6:00 PM: WBC Mexico at WBC Cuba
(yes) 5:00 PM: WBC Venezuela at WBC Puerto Rico
(no) 8:00 PM: WBC Cuba at WBC Mexico
(yes) 4:00 PM: WBC Puerto Rico at WBC United States
(yes) 4:15 PM: Boston Red Sox at New York Yankees
(no) 10:05 AM: Detroit Tigers at Atlanta Braves
(no) 10:05 AM: Tampa Bay Rays at Minnesota Twins
(no) 10:05 AM: Florida Marlins at Baltimore Orioles
I plan to rewrite the whole process thread to streamline both recording and playing as well as perform error handling on both processes. One of the things I plan to do is detect return values and act accordingly as well as remove the 5 byte dud files created with a bad stream like the ones marked "no" above.
Friday, there are two more beta test games on the schedule (the two New York games), and there's a Yankee game beta on Saturday. I'm going to do my best to figure out the live game recording during those periods.
For those who have tested the new code, I'd like a bit of feedback.
1) Did rtmpdump complete all the way through a stream or did it have to restart?
2) If it restarted, did my restart code work or did you have to either re-select from the listings or else restart mlbdvr.py?
3) How was the quality of the recorded stream?
4) Did you experience any "Uncaught errors"? Do you tracebacks from enabling debugging ('d' key) to share with me?
For Friday's live games, I hope to have the following:
Recorder and Player processes managed under a common loop. This means that I can monitor both processes for errors without sacrificing one for the other like the code currently does.
By Saturday, I will create a bookmarks file out of the re-hosted listings page and open up the listings to fetch them from mlb.com. I will also have the status codes fixed, colors, and local blackout enabled. Not sure about National Blackout support yet. I will also verify backwards compatibility for anyone with 2008 / 2007 bookmarks. (Am I the only one who uses bookmarks???)
For those who have tested the new code, I'd like a bit of feedback.
1) Did rtmpdump complete all the way through a stream or did it have to restart?
2) If it restarted, did my restart code work or did you have to either re-select from the listings or else restart mlbdvr.py?
3) How was the quality of the recorded stream?
4) Did you experience any "Uncaught errors"? Do you tracebacks from enabling debugging ('d' key) to share with me?
For Friday's live games, I hope to have the following:
Recorder and Player processes managed under a common loop. This means that I can monitor both processes for errors without sacrificing one for the other like the code currently does.
By Saturday, I will create a bookmarks file out of the re-hosted listings page and open up the listings to fetch them from mlb.com. I will also have the status codes fixed, colors, and local blackout enabled. Not sure about National Blackout support yet. I will also verify backwards compatibility for anyone with 2008 / 2007 bookmarks. (Am I the only one who uses bookmarks???)
1) rtmpdump segfaulted and restarted a lot yesterday. I'm streaming a game right now and it has restarted once through 50%.
2) Your restart code worked great.
3) The streams look good. Do you think it will be possible to use the autobahn stuff to access 1.2M streams or will we have to make do with 800K?
4) The only uncaught errors I saw were when I was trying to play one of the bad streams.
I haven't tried bookmarks. Are they for a particular day, or a particular game or can you set a bookmark for a particular play in a game? That would be cool. I'll check them out this year, I like the idea of bookmarking noteworthy games or especially noteworthy plays within games.
1) rtmpdump segfaulted and restarted a lot yesterday. I'm streaming a game right now and it has restarted once through 50%.
2) Your restart code worked great.
3) The streams look good. Do you think it will be possible to use the autobahn stuff to access 1.2M streams or will we have to make do with 800K?
4) The only uncaught errors I saw were when I was trying to play one of the bad streams.
I haven't tried bookmarks. Are they for a particular day, or a particular game or can you set a bookmark for a particular play in a game? That would be cool. I'll check them out this year, I like the idea of bookmarking noteworthy games or especially noteworthy plays within games.
Thanks again for all your work on this.
Jim
Autobahn, probably not.
Bookmarks save the highlighted listing (and allow you to name it) which has the necessary bits for finding and replaying that media stream. Don't remember about whether CG's and Top Plays were supported, but I don't see why they wouldn't be. CG's and Top Plays are not a priority right now but I'll do my best to support them again for 2009 season. Live games and gameday audio, though, are a higher priority.
1) Did rtmpdump complete all the way through a stream or did it have to restart?
needed to be restarted at somewhere near 82%
Quote:
Originally Posted by daftcat
2) If it restarted, did my restart code work or did you have to either re-select from the listings or else restart mlbdvr.py?
I left my pc downloading and I found the "Hope it worked" screen. Firstly I tought that it would have finished the donwload, but the last couple of innings were missing
Quote:
Originally Posted by daftcat
3) How was the quality of the recorded stream?
Someway sharper and noisier at the same time. Generally it is very good but it happens that the noisy photograms are very bad. "Old" stream was more omogeneus in my opinion. Note that it was a spring training game so it could be just because of that, last year they were not very much good if I remember correctly.
Quote:
Originally Posted by daftcat
4) Did you experience any "Uncaught errors"? Do you tracebacks from enabling debugging ('d' key) to share with me?
Yes, as already said by someone else, I got it on some of the not working games.
ok, copied! (it was not clear, reading documentation).
it's normal that i don't get the listings?
("there was a parser problem with the listings page")
Did you copy MediaService.wsdl and MediaService.xsd to the .mlb directory in your home directory? From inside the mlbviewer directory cp Mediaservice* $HOME/.mlb
Oh, and mlbviewer.py and mlblistings.py are not working right now. Run mlbdvr.py
I am having problems. Trying to download and some times get message that the ls: (the mlbdvr folder plus the date) cant be found. none of the games are playing. Like the WBC Mexico vs WBC Cuba at 9:00pm when I highlight it it says Unknown Flag= Completed Earlier
Last edited by Qbfinest83; 04-03-2009 at 12:17 PM.
I am having problems. Trying to download and some times get message that the ls: (the mlbdvr folder plus the date) cant be found. none of the games are playing. Like the WBC Mexico vs WBC Cuba at 9:00pm when I highlight it it says Unknown Flag= Completed Earlier
There are some duds in the list. Check a few messages up (or is it a page back already?) for the list of which games are expected to work and which ones are not.
If you want to mess around with test/soapeventid.py and rtmpdump to see if you can figure out live games with me, the two on the schedule today are:
14-257746-2009-04-03 BOS at NYM 6:10 EDT
14-256309-2009-04-03 CHC at NYY 7:05 EDT
In Wireshark, using the Flash Player, there's an RTMP message that decodes as Handshake 3 in the top list, which has all the connect parameters. You can try overriding rtmpdump's default connect parameters with the ones you find in this message. Hopefully one of these is the magic trick to getting live games working.
In one window, you can run soapevent.py and tee it to a file. In the other window, you can grep out the url = rtmp: bit and mess around with different rtmpdump parameters.
1) Did rtmpdump complete all the way through a stream or did it have to restart?
I only tested one in its entirety, but rtmpdump made it all the way through.
Quote:
Originally Posted by daftcat
3) How was the quality of the recorded stream?
The best way I can describe it is that its quality is pulsating. I find it really pronounced in the Red Sox/Yankees game -- viz., 0-0.1 seconds = very blocky/blurry; 0.11-0.5 seconds = progressively less blocky/blurry; 0.51-2.99 seconds = looks fine; 3-3.1 seconds = blocky/blurry; 3.11-3.5 seconds = progressively less blocky/blurry; 3.51-5.99 seconds = looks fine, and so on. It makes that game pretty difficult to watch.
The WBC games seem to follow a similar pulsating quality, but the difference between the "bad" and "good" parts is far less pronounced. If the WBC games are any indication of what to expect during the regular season, then I would consider it an upgrade over last year's 800k streams.
I only tested one in its entirety, but rtmpdump made it all the way through.
The best way I can describe it is that its quality is pulsating. I find it really pronounced in the Red Sox/Yankees game -- viz., 0-0.1 seconds = very blocky/blurry; 0.11-0.5 seconds = progressively less blocky/blurry; 0.51-2.99 seconds = looks fine; 3-3.1 seconds = blocky/blurry; 3.11-3.5 seconds = progressively less blocky/blurry; 3.51-5.99 seconds = looks fine, and so on. It makes that game pretty difficult to watch.
The WBC games seem to follow a similar pulsating quality, but the difference between the "bad" and "good" parts is far less pronounced. If the WBC games are any indication of what to expect during the regular season, then I would consider it an upgrade over last year's 800k streams.
I guess I should have been more specific. How does the quality of the recorded stream match up with your experience with the official flash player?
The official flash player has some fancy pants way of auto-negotiating the stream quality based on perceived bandwidth. rtmpdump, at least with the archived streams, does a balls-to-the-wall download which for me is about 2 - 6 Mbps. The result is that I can download an archived game in much less time than it takes to watch it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.