LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-06-2009, 06:01 AM   #1096
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16

I appreciate all the work, deftcat, and the rest of you have done. I too would prefer watching through mplayer, but I'll take what I can get for now.

Is there someone out there who can explain how to install the autobahn.jar file bodly has linked. I downloaded the file and don't know what to do with it.
 
Old 04-06-2009, 06:25 AM   #1097
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
For audio-only, it seems like that should be easy enough to implement once I've seen a working example of how mlb.com has implemented it themselves.
Seems like they don't have audio streams fully ready yet. From the mlb.tv blog:

Quote:
There was a lot of progress made yesterday and last night on GameDay Audio, but we are still hammering away at it today. Busy little bees we are.
Hopefully they'll get this ready soon.
 
Old 04-06-2009, 06:30 AM   #1098
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by rjwood View Post
I appreciate all the work, deftcat, and the rest of you have done. I too would prefer watching through mplayer, but I'll take what I can get for now.

Is there someone out there who can explain how to install the autobahn.jar file bodly has linked. I downloaded the file and don't know what to do with it.
I just have it sitting in my home directory. Then from an terminal window I type
Code:
java -jar autobahn.jar
I could probably whip up a .desktop file to put in autostart so it would automatically start when you start your window manager (e.g. gnome, kde, xfce, etc.).
 
Old 04-06-2009, 06:58 AM   #1099
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
I opened it with java and it seems to work okay in that I get all the functions of the premium player from mlb, including the higher resolution. However, the resolution isn't consistent and the flash player has a tendency to do 'quick freezes'. I think the quick freezes and inconsistent resolution are linked. Is there a setting somewhere in the flash player or FF that fixes this?
 
Old 04-06-2009, 10:00 AM   #1100
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by rjwood View Post
I opened it with java and it seems to work okay in that I get all the functions of the premium player from mlb, including the higher resolution. However, the resolution isn't consistent and the flash player has a tendency to do 'quick freezes'. I think the quick freezes and inconsistent resolution are linked. Is there a setting somewhere in the flash player or FF that fixes this?
That was my experience too. Plus the auto-adjustment was seriously pissing me off. It would flip flop between one bar and full bars frequently so one second it would be HD and the next like Atari. I wonder if the jre makes any difference.
 
Old 04-06-2009, 10:08 AM   #1101
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Revision 132: more tweaking for archived games

I'm still trying to figure out the proper connect parameters for getting archived games to work. I think the tweaking of the rtmpdump command-line will start to taper off soon as mlb.com should be more consistent with how they launch their streams now that the beta tests are over. With the change in rev 132, I am currently watching last night's ATL-PHI game.

In a couple of hours, I'll see if I can subscribe to a lower bandwidth live stream to implement a gameday audio hack. If I can connect to a 164K stream, would that be too much bandwidth for my audio-only users?
 
Old 04-06-2009, 11:28 AM   #1102
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
Quote:
Originally Posted by daftcat View Post
I am currently watching last night's ATL-PHI game.
Well, that game is coming in near perfectly. Good game too, me being a Mets fan...
 
Old 04-06-2009, 04:27 PM   #1103
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I have gameday audio working but I want to test it a bit more first. I'm not sure how to do home vs. away streams yet.

As for streaming live video, it's not looking good. One of two things needs to happen: 1) I need to teach myself streaming flash media, h264, and edit rtmpdump to handle video/audio packets in a sane way, or 2) Adobe needs to release their FMS specifications already so the open source developers (looking at the mythtv team specifically) can either improve upon rtmpdump or write something new. I'm kind of stubborn, so #1 may happen before #2.

I'll have another round of improvements checked into svn probably tonight or tomorrow night. I might even include the live game streaming code in for kicks and giggles just to see if anyone else can make heads or tails of it.

I'm also having quite a few problems with the recorder/player model so I recommend using dvr_record_only=True until I get 'em all worked out.

I think I checked in some debug exceptions last night which I pulled out this morning. Might be a good idea to svn up.

Anyone try the rtmpdump patch and live game hack with soapevent.py yet?

Lastly, it looks like nexdef issues are not just Linux so this will be pretty exciting to finally have full support in the flash player when they have those issues worked out.
 
Old 04-06-2009, 05:20 PM   #1104
dmandell
Member
 
Registered: Apr 2008
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
I'll do what I can but this conversion to flash has really thrown a wrench in the machine. I'm hoping that 1) mlb.com sticks with this technology for more than one season, and 2) Adobe makes good on their promise to open the Flash Media specification and a better flash player comes out than rtmpdump.

In the meantime, I continue to read and learn about Flash Media like everyone else who has gone down this road (Google and Wireshark. ;-)

For audio-only, it seems like that should be easy enough to implement once I've seen a working example of how mlb.com has implemented it themselves. In the meantime, if you feel up to a bit of hacking, you can try the following... etc
Thanks, I've not been following this thread closely so I've got to figure out the changes you've made. Does anybody have any suggestions on a page number to start at? If not in about 15 minutes I'll just keeping wading backwards until I find the starting point for the non-mlbviewer method of doing this. I'll miss the curses interface though!

Thanks again daftcat for doing what you're doing with this. I'm sure you realize how many people appreciate your work, but I bet it's still nice to hear a word or two of thanks every once in a while.
 
Old 04-06-2009, 05:27 PM   #1105
rjwood
Member
 
Registered: Jan 2006
Distribution: UBUNTU
Posts: 130

Rep: Reputation: 16
I'd start at page 66
 
Old 04-07-2009, 10:58 AM   #1106
knappster
Member
 
Registered: Mar 2004
Posts: 175

Rep: Reputation: 30
This post seems to be where they major changed began:
http://www.linuxquestions.org/questi...60#post3493260

I'm posting this for my own reference as well as yours :P
 
Old 04-07-2009, 01:42 PM   #1107
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
SVN revision 138: Gameday Audio!!!

Gameday audio support has been checked in.

You will need to patch your rtmpdump with the provided Patch.sh script.

Code:
matthew@tango:~/mlbtv/svn/mlbviewer$ ls rtmpdump-patches/
mlbviewer-rtmpdump.patch  Patch.sh
matthew@tango:~/mlbtv/svn/mlbviewer$ cd rtmpdump-patches/
matthew@tango:~/mlbtv/svn/mlbviewer/rtmpdump-patches$ ./Patch.sh
Enter path to rtmpdump source directory: /home/matthew/source/rtmpdump
Source directory : /home/matthew/source/rtmpdump
Patch file       : /home/matthew/mlbtv/svn/mlbviewer/rtmpdump-patches/mlbviewer-rtmpdump.patch
Applying patch...
patching file log.h
patching file rtmp.cpp
patching file rtmpdump.cpp
patching file rtmp.h
Patch succeeded.  Please run 'make clean' before 'make'.
Remember to cp rtmpdump to a directory in your path.
matthew@tango:~/mlbtv/svn/mlbviewer/rtmpdump-patches$
The good news is that rtmpdump is extremely tenacious with gameday audio streams so you likely won't ever run into the restart code. You will however have to manually exit the stream with Ctrl-C in the recorder screen. I have seen these streams continue long past the game completion in my testing yesterday.

I've only been able to test with live games as they haven't archived any audio streams yet. I also haven't figured out how to differentiate between home and away streams so audiofollow isn't implemented yet.

Enjoy!
 
Old 04-07-2009, 05:26 PM   #1108
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
Quote:
Originally Posted by daftcat View Post
I'm also having quite a few problems with the recorder/player model so I recommend using dvr_record_only=True until I get 'em all worked out.

I think I checked in some debug exceptions last night which I pulled out this morning. Might be a good idea to svn up.

Anyone try the rtmpdump patch and live game hack with soapevent.py yet?
I've downloaded the latest SVN (revision 138), installed python-xml and suds, downloaded rtmpdump source, patched it, compiled it, "installed" it, I've tried the test video and my codecs are fine, then I read the DVR-POLICY and added all those settings to my ~/.mlb/config. Oh yeah, and I copied the schema/wsdl over to the ~/.mlb directory. I'm using mlbdvr.py, and I can't get anything to work.

Code:
An error occurred in locating the game stream:
Uncaught error
I've tried live, archived today, archived yesterday, live/archived audio, nothing. Am I missing anything?

And to answer your question, I did try soapevent.py, and I get a bunch of stuff followed by this:

Code:
no session-key found in reply
Traceback (most recent call last):
  File "test/soapevent.py", line 235, in <module>
    content_id = reply[0][0]['user-verified-content'][0]['content-id']
TypeError: string indices must be integers
I can send more info if needed.

BTW, thank you so much, this is a great project and keep up the great work!
 
Old 04-07-2009, 06:22 PM   #1109
bodly
LQ Newbie
 
Registered: Mar 2009
Distribution: Kubuntu
Posts: 24

Rep: Reputation: 16
Quote:
Originally Posted by poorboywilly View Post
I've tried live, archived today, archived yesterday, live/archived audio, nothing. Am I missing anything?

And to answer your question, I did try soapevent.py, and I get a bunch of stuff followed by this:

Code:
no session-key found in reply
Traceback (most recent call last):
  File "test/soapevent.py", line 235, in <module>
    content_id = reply[0][0]['user-verified-content'][0]['content-id']
TypeError: string indices must be integers
I can send more info if needed.

BTW, thank you so much, this is a great project and keep up the great work!
If you look at http://mlb.mlb.com/mediacenter/index.jsp you'll notice that only a few games from yesterday and none from today are archived. We're streaming the ones listed in the MLB.TV column, not the ones under the MLB.TV Premium column. I'm getting the Mets and Reds game from 4/6, one of the few that say "Watch" not "Soon" and it's working fine. Also be aware that the Tigers @ Blue Jays game is only there through part of the 4th inning, or at least it was a few hours ago when I tested it. I verified that by using the flash player to stream it and it stops during the first at-bat of the bottom of the 4th.

Hopefully daftcat will implement streaming of the Premium streams for people with premium accounts along with selecting the home or away stream. But I would rather he focuses on just getting things to work reliably for now.
 
Old 04-07-2009, 06:24 PM   #1110
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by poorboywilly View Post
I've downloaded the latest SVN (revision 138), installed python-xml and suds, downloaded rtmpdump source, patched it, compiled it, "installed" it, I've tried the test video and my codecs are fine, then I read the DVR-POLICY and added all those settings to my ~/.mlb/config. Oh yeah, and I copied the schema/wsdl over to the ~/.mlb directory. I'm using mlbdvr.py, and I can't get anything to work.

Code:
An error occurred in locating the game stream:
Uncaught error
I've tried live, archived today, archived yesterday, live/archived audio, nothing. Am I missing anything?

And to answer your question, I did try soapevent.py, and I get a bunch of stuff followed by this:

Code:
no session-key found in reply
Traceback (most recent call last):
  File "test/soapevent.py", line 235, in <module>
    content_id = reply[0][0]['user-verified-content'][0]['content-id']
TypeError: string indices must be integers
I can send more info if needed.

BTW, thank you so much, this is a great project and keep up the great work!
Can you send me the entire text of soapevent.py to straycat000(at)yahoo(dot)com?

MLB.com is really behind right now. A lot of things don't work right on their side yet so there's only so much I can do with my code.

Live games won't work yet. I mean you can download a stream with soapevent.py but it's pretty much useless because rtmpdump isn't writing a correct mp4. I think it's just writing what it receives but there's a bit more to it than that for streaming (live) vs. ondemand (archived.)

Here's what should work:

Archived games as listed on mlb.com's Media Center should work. I'll see if there's something in the xml or the soap responses that might provide me any clues about the archived status.

A couple of archived games that download (but they don't necessarily play very well--maybe the same drawback above of rtmpdump) are
4/05 Atlanta at Philadelphia
4/06 New York at Baltimore

Gameday audio of live games should work and may be the only thing that actually really does work in mlbviewer.

Here's what doesn't work:

Live games (except through soapevent.py which doesn't count since the video part of the stream is unplayable.)

Archived audio - mostly because mlb.com hasn't archived any audio yet so I haven't had a chance to test that.

I checked in a new revision into svn that doesn't catch errors in the "Fetching url...." code. This way instead of getting the "uncaught error" (which is really another way of saying, "I don't know where this is failing"), you'll get a truly helpful crash with a Traceback.

Please send me the soapevent.py log and the Traceback. And also be patient with this project since mlb.com has changed so much from last year and there's only so many rtmp resources and utilities out there.
 
  


Reply

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



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:02 PM.

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