LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-30-2009, 11:29 AM   #1546
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15

Quote:
Originally Posted by daftcat View Post
Quick question (and quick roadmap):

Now that the revision I released yesterday or the day before tells you what stream you are using, are you guys actually getting the 3000K stream?

I never get more than the 2200K stream, but I'm not complaining. The 2200 is more than enough and Comcast probably can't give me more than 2.5 mbps without upgrading to a Docsis 3.0 cable modem.

I'm going to have an extremely busy weekend (my dance competition season is beginning with two comps in two days this weekend) so I'm just going to finish up some documentation, the rtmpdump integration, and maybe a couple more features like an HD indicator and condensed games and call this ready for first Sourceforge release for Monday. After that, jump to innings interface will probably be the last major feature. Then I can shift to maintenance mode for awhile. Maybe even make it out to a real game instead of testing the streams 24/7. Later next month or June I'll write a stream downloader based on mlblistings.py and soapevent.py for the non-premium users to replace mlbdvr.py. No curses gui, but decent command-line options. Finally, I expect if Adobe makes good on their promise to release the RTMP specification, I'll probably be busy again later this summer if and when mplayer/ffmpeg support RTMP natively.
When I set the max_bps to 3000k mlbviewer reports it as using 3000k not 2200k.
 
Old 04-30-2009, 11:41 AM   #1547
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by JackRubysDog View Post
Code:
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:

    * HttpContext[/protected]
    * HttpContext[/]

The links above may not work if a virtual host is configured
Yes - that is exactly what I get. is this good or bad news?
If you got this it means all hope is not lost yet. The web server is running. I'll get you a script later today to make proper requests to autobahn and see how much of it works. You might just try nexdef.py with an event-id from mlblistings.py.

Heck, try this one:

Code:
$ test/nexdef.py 14-244501-2009-04-29 | tee /tmp/nexdefmessages.log
Post that log file to pastebin.com.

Wait, have we done this before?

Do it again anyway, because you'll need various components of the SOAP messages to make the requests directly to autobahn with your web browser.
 
Old 04-30-2009, 12:55 PM   #1548
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by Takabru View Post
When I set the max_bps to 3000k mlbviewer reports it as using 3000k not 2200k.
Sweet! One of us is getting the full 3000K stream.

Like I said, I'm really not heartbroken over it because 2200K looks amazing too.

Probably later in the summer (June?) I'll implement the quality bar interface.
 
Old 04-30-2009, 01:23 PM   #1549
mjbcoug
LQ Newbie
 
Registered: Apr 2009
Location: Spokane, WA
Distribution: Ubuntu (Jaunty)
Posts: 19

Rep: Reputation: 0
3000K streams?

Quote:
Originally Posted by daftcat View Post
Quick question (and quick roadmap):

Now that the revision I released yesterday or the day before tells you what stream you are using, are you guys actually getting the 3000K stream?
I have my max_bps set to 3000K.

I got the 3000K stream Tuesday night for the Giants-Bums game. It was glorious. On my laptop it was nearly full screen in its window - not in "full screen" mode. The stream info in mlbviewer displayed as 3000K. It kept dropping at the start of the game but by the 2nd or 3rd inning it played continuously without issue until probably the 9th inning. Occasional jumpiness is usually solved by pausing (spacebar) in mplayer for a couple seconds. This seems to allow it to buffer enough to be smooth again.

Last night I got the Giants game at 2200K and that was what mlbviewer displayed. Played for most of the game until I got local network connection issues in the 8th inning - probably my cable modem renewing IP or something. Anyway...once it I got network again and restarted mlbviewer initially I only got 300K stream, which bumped up (on the fly) to 600K and bumped up again (on the fly) to 1200K. Mplayer resized itself when the stream bumped up and mlbviewer updated its display to correspond to the stream. It crapped on me again and then when I restarted again it was back connected as 2200K for the remainder of the game.

I am convinced that MLB.TV isn't always even producing a 3000K stream for every game. I would think if they were I would get that stream every time. More often than not I get a 2200K stream. My belief is 3000K vs 2200K is dependent on the broadcast they get the stream from. And the difference on my end is when I go to full screen. 3000K at full screen looks like full HD...no noticeable change from windowed. 2200K at full screen is a little less sharp, but in its window it is just as sharp as 3000K.
 
Old 04-30-2009, 01:35 PM   #1550
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by mjbcoug View Post
3000K at full screen looks like full HD...no noticeable change from windowed. 2200K at full screen is a little less sharp, but in its window it is just as sharp as 3000K.
Actually, in its window, the 2200k stream should be sharper than the 3000k stream. Since the 3000k stream is full-frame HD, that drives the bits-per-pixel rate down. In actuality, the bpp of the 3000k stream is a respectable 0.109. On the other hand, the bpp of the 2200k stream is an amazing 0.204. That means that when displayed in their native frame sizes, the 2200k stream should be much sharper.

So if you're watching a game on, say, a work computer that you are also using for other things, the 2200k stream is ideal. But if you're comparing the streams by scaling to a larger size (say on an HDTV), then the higher bitrate stream (3000k) would look sharper.
 
Old 04-30-2009, 01:35 PM   #1551
JackRubysDog
Member
 
Registered: Feb 2009
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
If you got this it means all hope is not lost yet. The web server is running. I'll get you a script later today to make proper requests to autobahn and see how much of it works. You might just try nexdef.py with an event-id from mlblistings.py.

Heck, try this one:

Code:
$ test/nexdef.py 14-244501-2009-04-29 | tee /tmp/nexdefmessages.log
Post that log file to pastebin.com.

Wait, have we done this before?

Do it again anyway, because you'll need various components of the SOAP messages to make the requests directly to autobahn with your web browser.
Here ya go:

http://pastebin.com/m31006c52

Thx
 
Old 04-30-2009, 01:45 PM   #1552
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Wow!

That was a piece of cake to get mlbviewer working from last year to this year under cygwin.

I must have already had pyxml because all I needed to do was:

Code:
% easy_install suds
% svn up
% cp MediaService* ~/.mlb/
Download and install Applian FLVPlayer.

Change the video_player setting to

Code:
video_player=/cygdrive/c/Program\ Files/FLV\ Player/FLVPlayer.exe
And fire up mlbviewer. I didn't bother setting max_bps because I'm at work and I probably shouldn't be watching streaming video at 3000K. ;-) I probably shouldn't be watching streaming video at all. Without setting max_bps, I default to 800K. The auto-adjust, surprisingly, tried me first at 1200K (where I had a little heart attack thinking IT would walk in at any minute) but thankfully backed me down to the 600K stream.

It's one time where I actually appreciate the auto-adjust quality code in nexdef.

I will definitely have to try this again from home where I won't have to worry about the IT department.

I think it would be incredibly embarrassing for MLB.TV team if I was able to get 3000K (or even 2200K) without any freezing or stuttering or other issues that plague the flash player on one of their supported platforms. I should probably keep my mouth shut about this on the forums.
 
Old 04-30-2009, 01:47 PM   #1553
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
By the way, condensed games are back.
 
Old 04-30-2009, 01:57 PM   #1554
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by JackRubysDog View Post
Congratulations! Your nexdef is working just fine.

Now you have to figure out why mplayer is unhappy.

Are you using the very latest mplayer built from svn source?

Code:
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
$ cd mplayer
$ sh configure --enable-dynamic-plugins --prefix=/usr
$ make
$ sudo make install
(or do the last step as root without the 'sudo')

The other thing I've observed is that occasionally you have to prime the nexdef pump. In other words, the first try doesn't always produce a stream right away but the second or third will latch on.

But yes, this part here tells me you're connecting to the nexdef plugin and it is responding with the available streams:

Code:
http://local.swarmcast.net:8001/protected/content/adaptive-live/describe/base64:aHR0cDovL3d3dy5tbGIuY29tL3B1YmFqYXh3cy9iYW1yZXN0L01lZGlhU2VydmljZTJfMC9vcC1nZW5lcmF0ZUtleS92LTEuMT9jb250ZW50SWQ9NDMxNTY2NyZpcGlkPTE4MTUxMzQwJnBsYXliYWNrPU1MQl9GTEFTSF9TV0FSTUNMT1VEJnNlc3Npb25LZXk9Qm12Ulp1Nmc3eTUxbEhSUERVRFpCOU9BajNrJTNE?mlbfpk=v7P02kZ1k4RPloslFRSfASmiRU4%3D&refetch=true
<?xml version="1.0" encoding="UTF-8"?>

<adaptiveStream id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429"><streamHead timeStamp="18:05:10" /><streamTail timeStamp="23:24:05" /><encodings><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_2200K_STREAM" width="800" height="450" bps="2200000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_1800K_STREAM" width="800" height="450" bps="1800000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_3000K_STREAM" width="1280" height="720" bps="3000000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_800K_STREAM" width="800" height="450" bps="800000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_164K_STREAM" width="256" height="144" bps="164000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_1200K_STREAM" width="800" height="450" bps="1200000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_600K_STREAM" width="400" height="225" bps="600000" codec="H.264" container="FLV" /><encoding id="MLB_GAME_VIDEO_BOSCLE_HOME_20090429_MLB_FLASH_400K_STREAM" width="400" height="225" bps="400000" codec="H.264" container="FLV" /></encodings></adaptiveStream>
Two questions:

1. Do you remove the 14*mp4 file in between retries (you should!)

2. How long does it take to "Core dumped"? Unfortunately, some mplayer developer thought it would be cute to put "Core dumped" as the "download complete" message for dumpstream. To me, this is just bad coding practice because it would a) confuse the user, and b) potentially mask a real core dump (like crying wolf.)
 
Old 04-30-2009, 02:05 PM   #1555
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by Theophile View Post
By the way, condensed games are back.
Yeah, I haven't tried any code for requesting them yet. I have some basic code in mlbtv.py (parse_media_grid) to find condensed games content id, but that routine isn't quite ready yet. It's kinda puzzling me how it's over-stuffing the dictionary with duplicate entries. I got a little distracted by the rtmpdump integration but I guess that and session management and whatever else I mentioned above is what I'm going to try to finish for Monday.

You know, I really kind of bungled the whole OOP concept. I probably should have made base classes for GameStream and MLBSchedule and inherited classes for last year, this year's premium, and this year's non-premium.

Oh well, I want to get it all working first and available on Sourceforge. I can fix up the code later. Hopefully they'll stick with this architecture for more than one season in case I don't get to it until the off-season. Still, if they change it up in the off-season again, I'll have to write in yet another inherited class for next season so it would be better to get started on that sooner than later.
 
Old 04-30-2009, 02:13 PM   #1556
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by JackRubysDog View Post

You also have an Ubuntu box, right?

You *might* though I'm really not sure be able to take the content url and point your Ubuntu mplayer at it (or even possibly Applian FLVPlayer on the Windows machine) just to see if the streaming works. Because right now, all I can tell you is the web server portion of your nexdef is working.

See what you can do with my other response and I'll test out streaming from another machine's nexdef. If that works, I can write you a test script to get the content url to paste into FLVPlayer (it's the one that doesn't have "describe" in it before the base64: part. (Or the one on the STREAM ASF, URL line in your output.

Code:
http://local.swarmcast.net:8001/protected/content/adaptive-live/base64:aHR0cDovL3d3dy5tbGIuY29tL3B1YmFqYXh3cy9iYW1yZXN0L01lZGlhU2VydmljZTJfMC9vcC1nZW5lcmF0ZUtleS92LTEuMT9jb250ZW50SWQ9NDMxNTY2NyZpcGlkPTE4MTUxMzQwJnBsYXliYWNrPU1MQl9GTEFTSF9TV0FSTUNMT1VEJnNlc3Npb25LZXk9Qm12Ulp1Nmc3eTUxbEhSUERVRFpCOU9BajNrJTNE?mlbfpk=v7P02kZ1k4RPloslFRSfASmiRU4%3D&start_time=68710000&max_bps=800000&v=0
Run the nexdef.py again, then copy that url to a text editor. Change the local.swarmcast.net to your PS3 IP and point Ubuntu or FLVPlayer at it. I'm not sure if that will work, but if it does, then we need to debug your mplayer and not your nexdef.
 
Old 04-30-2009, 03:05 PM   #1557
Onip
Member
 
Registered: Apr 2008
Posts: 36

Rep: Reputation: 15
with your patch 1.5 seems to work correctly with both last revision and r170 with mlbdvr.py .
Is %f filename expansion still supported? My 'old' mplayer still chokes with the stream and I also would like to watch games where I have no internet ( house in the mountains ), so I'd like to play a bit with -dumpstream, at my own risk obiouvsly.
 
Old 04-30-2009, 03:08 PM   #1558
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by daftcat View Post
You also have an Ubuntu box, right?

You *might* though I'm really not sure be able to take the content url and point your Ubuntu mplayer at it (or even possibly Applian FLVPlayer on the Windows machine) just to see if the streaming works. Because right now, all I can tell you is the web server portion of your nexdef is working.

See what you can do with my other response and I'll test out streaming from another machine's nexdef. If that works, I can write you a test script to get the content url to paste into FLVPlayer (it's the one that doesn't have "describe" in it before the base64: part. (Or the one on the STREAM ASF, URL line in your output.

Code:
http://local.swarmcast.net:8001/protected/content/adaptive-live/base64:aHR0cDovL3d3dy5tbGIuY29tL3B1YmFqYXh3cy9iYW1yZXN0L01lZGlhU2VydmljZTJfMC9vcC1nZW5lcmF0ZUtleS92LTEuMT9jb250ZW50SWQ9NDMxNTY2NyZpcGlkPTE4MTUxMzQwJnBsYXliYWNrPU1MQl9GTEFTSF9TV0FSTUNMT1VEJnNlc3Npb25LZXk9Qm12Ulp1Nmc3eTUxbEhSUERVRFpCOU9BajNrJTNE?mlbfpk=v7P02kZ1k4RPloslFRSfASmiRU4%3D&start_time=68710000&max_bps=800000&v=0
Run the nexdef.py again, then copy that url to a text editor. Change the local.swarmcast.net to your PS3 IP and point Ubuntu or FLVPlayer at it. I'm not sure if that will work, but if it does, then we need to debug your mplayer and not your nexdef.
No, this won't work because the server starts up as 127.0.0.1.

But...

If you enter that url in your YDL browser, you should see a garbage stream pour down the web page as the nexdef attempts to stream to firefox. Again, I'm just guessing here. I won't be able to test this for awhile.
 
Old 04-30-2009, 03:17 PM   #1559
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,766

Rep: Reputation: 76
Quote:
Originally Posted by Onip View Post
with your patch 1.5 seems to work correctly with both last revision and r170 with mlbdvr.py .
Is %f filename expansion still supported? My 'old' mplayer still chokes with the stream and I also would like to watch games where I have no internet ( house in the mountains ), so I'd like to play a bit with -dumpstream, at my own risk obiouvsly.
This won't work. I haven't removed the %f expansion but there's no "resume" code in mlbviewer. There's still a bug in rtmpdump (one that the developer doesn't seem to want to acknowledge) that if rtmpdump is left to run full speed (and -dumpstream doesn't perform the flow control that running it pipeline with a play command-line does), it will eventually crap out after 30-40% of the file is downloaded. You might want to revert back to revision 170 and rtmpdump 1.4 until I either figure out how to fix rtmpdump or move that mlbdvr.py code into a downloader script. I'm officially not supporting mlbdvr.py anymore and it will probably disappear from future revisions. I've been testing the piped command to mplayer and I'm satisfied with the results. It can and does stay up for a full game which is all that's necessary to get the sourceforge users going starting next week. After next week, I can work on a download script for special cases like yours where playing immediately is not practical.
 
Old 04-30-2009, 03:40 PM   #1560
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by mjbcoug View Post
rjwood...i got your reply. can't seem to email you directly (the email your reply came with bounced) or via forums (you are set to not receive emails from users apparently). i for one would be interested in your forum to talk baseball aside from this forum. obviously people here are passionate enough about baseball to want to jigger a piece of software to watch it in a way better than is offered by MLB. please post the info here.

thanks~!
Thank you!

http://www.negotiate-it.com/forum/index.php


I will set up a forum dedicated to sports, baseball of course being one. My user name ovr there is Jox

Thanks again for all the work, everyone. I'll wait for the forthcoming 'newbie' release on sourceforge.
 
  


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


All times are GMT -5. The time now is 11:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration