LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-02-2009, 01:05 PM   #1066
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86

Quote:
Originally Posted by Onip View Post
tested this afternoon
  • 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.
 
Old 04-02-2009, 02:13 PM   #1067
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
A few questions

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???)
 
Old 04-02-2009, 05:09 PM   #1068
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
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.

Thanks again for all your work on this.

Jim
 
Old 04-02-2009, 06:21 PM   #1069
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by bodly View Post
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.
 
Old 04-03-2009, 02:10 AM   #1070
Onip
Member
 
Registered: Apr 2008
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
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 View Post
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 View Post
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 View Post
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.
 
Old 04-03-2009, 07:28 AM   #1071
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
REQUIRED:
done!

done!

uhm.. downloaded. compiled (with make). and then?
(make install doesn't work)
(./get_iplayer --raw --force --get 1 --vmode flashhigh --rtmp --rtmpdump "./rtmpdump" what's that?)
 
Old 04-03-2009, 09:48 AM   #1072
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by lephio View Post
REQUIRED:


done!



done!



uhm.. downloaded. compiled (with make). and then?
(make install doesn't work)
(./get_iplayer --raw --force --get 1 --vmode flashhigh --rtmp --rtmpdump "./rtmpdump" what's that?)
Don't worry about get_iplayer. That's for watching BBC.

Just copy rtmpdump to /usr/bin.

Also, make sure you comment out that #define _DEBUG in log.h. The debug is way too verbose to be useful.
 
Old 04-03-2009, 09:53 AM   #1073
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by lephio View Post

uhm.. downloaded. compiled (with make). and then?
(make install doesn't work)
(./get_iplayer --raw --force --get 1 --vmode flashhigh --rtmp --rtmpdump "./rtmpdump" what's that?)
Copy rtmpdump somewhere in your path, e.g. /usr/local/bin/ or /usr/bin/
 
Old 04-03-2009, 10:56 AM   #1074
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
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")
 
Old 04-03-2009, 11:18 AM   #1075
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by lephio View Post
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
 
Old 04-03-2009, 12:15 PM   #1076
Qbfinest83
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
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.
 
Old 04-03-2009, 01:42 PM   #1077
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Qbfinest83 View Post
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.
 
Old 04-03-2009, 01:45 PM   #1078
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Another chance to figure out the live games

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.
 
Old 04-03-2009, 02:53 PM   #1079
quonset
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by daftcat View Post
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 View Post
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.
 
Old 04-03-2009, 03:06 PM   #1080
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by quonset View Post
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.

Too bad I can't do that for live streams.
 
  


Reply

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:30 AM.

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