LinuxQuestions.org
Visit Jeremy's Blog.
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-28-2009, 07:38 PM   #1501
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35

rtmpdump is creating broken files. We're still not sure if it's rtmpdump's fault or if that's the way the files are being given to rtmpdump by the server.
 
Old 04-28-2009, 07:49 PM   #1502
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
rtmpdump is creating broken files. We're still not sure if it's rtmpdump's fault or if that's the way the files are being given to rtmpdump by the server.
Can you open another ticket with ffmpeg with a 10mb sample file saved from a live stream?

I find it hard to believe that it's rtmpdump's fault (as much as I'd like to blame rtmpdump.) I also find mplayer's support for the streams (even in nexdef) somewhat embarrassing and sad. I mean we finally have seekable streams from mlb.com but try to move 10 seconds forward and back and mplayer chokes.

My offer still stands. If any of the ffmpeg developers are interested in baseball or want to test with real streams, I'd be happy to buy them a month or two of mlb.tv out of the donations I've received.
 
Old 04-28-2009, 07:56 PM   #1503
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
I feel a little sorry for the Windows users stuck with the flash player. If the ffmpeg fix ever gets propagated to the Windows build, I might cook up a little something for them, or at the very least, try to support mlbviewer for cygwin.
 
Old 04-28-2009, 08:02 PM   #1504
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15
Nexdef isnt even loading properly in Flash so it is Swarmcast doing it on their end for some of the games.
 
Old 04-28-2009, 08:35 PM   #1505
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Takabru View Post
Nexdef isnt even loading properly in Flash so it is Swarmcast doing it on their end for some of the games.
Right.

The primary consumer of all the information contained in the XML's and the SOAP messages is, after all, the Flash player. So I would expect that if they are telling the Flash player the media state is MEDIA_OFF, the Flash player would actually look at that bit of information and do something with it. In this case, it's sending up Media Error messages.

The "fix" I checked in this afternoon is actually above and beyond the Flash player capabilities and functionality. This is partly why I will likely remove that fix and replace it with a config file option. MLB.com is being nice enough to tolerate us, even if they aren't actually supporting us. It would only be fair to them to play nice. I haven't checked in the config file option yet, but I'll let you know when I do.
 
Old 04-28-2009, 08:59 PM   #1506
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by daftcat View Post
Can you open another ticket with ffmpeg with a 10mb sample file saved from a live stream?
Done.

https://roundup.ffmpeg.org/roundup/ffmpeg/issue1040
 
Old 04-28-2009, 09:20 PM   #1507
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Theophile View Post
Thanks! Hopefully the fix will be as prompt as the last one! Then I can get down to figuring out why python does so poorly at managing two processes at a time (or more likely it's just the way I have it coded.)
 
Old 04-28-2009, 09:22 PM   #1508
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15
Having some issues starting streams when the max_bps is set to 3000000. The stream will load in mplayer then freeze or alternate between full screen and window mode. Or it will close altogether. I changed the max_bps to 2200000 and the first try it loaded up ok. Not sure what this issue is but if as you say nexdef's highest bitrate is 2200k then there should be no issue changing to 2200k. Just thought I would let you know.

FYI - I ran one feed at 1200k just to see what it looked like through mplayer and man its a 100 times better than the 1200k feed on flash (windows machine). I just cant understand how the two could be so different at the same speed. I guess the flash player in windows is using a heck of lot more resources to produce the picture.

Last edited by Takabru; 04-28-2009 at 09:26 PM.
 
Old 04-28-2009, 09:26 PM   #1509
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Just had a cool thought. The new version of rtmpdump supports streaming to stdout and I've already tested an mplayer pipeline like:

Code:
rtmpdump <url> -o - | mplayer -autosync 30 -
If we can get a fix from rtmpdump for archived games and that fix from ffmpeg for live games, I won't have to support any "dvr" code for rtmpdump or any downloading of games.

rtmpdump can be the non-premium users version of autobahn.jar.

I think when I get a chance, I'll see how the LibRTMP code differs from rtmpdump or maybe I can hack in some flow control into rtmpdump.
 
Old 04-28-2009, 09:31 PM   #1510
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by Takabru View Post
Having some issues starting streams when the max_bps is set to 3000000. The stream will load in mplayer then freeze or alternate between full screen and window mode. Or it will close altogether. I changed the max_bps to 2200000 and the first try it loaded up ok. Not sure what this issue is but if as you say nexdef's highest bitrate is 2200k then there should be no issue changing to 2200k. Just thought I would let you know.

FYI - I ran one feed at 1200k just to see what it looked like through mplayer and man its a 100 times better than the 1200k feed on flash (windows machine). I just cant understand how the two could be so different at the same speed. I guess the flash player in windows is using a heck of lot more resources to produce the picture.
When it switches from full-screen to windowed mode the stream rate is switching from nexdef. Have you looked at the stream details output in the new mlbviewer? It should tell you for sure what nexdef is actually giving you.

Maybe after we get the fix for the non-premium users, we can ask mplayer if there is a way to not switch to window mode when the rate switches.

Although, I'd rather have those guys work on the seeking issues before that one.
 
Old 04-28-2009, 09:51 PM   #1511
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by daftcat View Post
Maybe after we get the fix for the non-premium users, we can ask mplayer if there is a way to not switch to window mode when the rate switches.
If you run mplayer with the "-fs" option, it won't drop out of full-screen mode when the rate changes.
 
Old 04-28-2009, 09:55 PM   #1512
Takabru
Member
 
Registered: Apr 2009
Posts: 37

Rep: Reputation: 15
Ah, so that means the stream from nexdef was fluctuating for that game. Could be why I was having so many issues getting to load. Good point Theophile I will add to the the player commands.

Thanks
 
Old 04-28-2009, 11:10 PM   #1513
mjbcoug
LQ Newbie
 
Registered: Apr 2009
Location: Spokane, WA
Distribution: Ubuntu (Jaunty)
Posts: 19

Rep: Reputation: 0
Right now I am enjoying my Giants against the hated Bums in baseball's "other" great rivalry (after NY-BOS). Live 3000K stream using latest from SVN. Simply beautiful and amazing. Better than TV. This thing is coming together VERY nicely.

As an aside, I was tinkering with your code and trying to get it to run on my Vista box at work today (no linux at work...and it was a slow day). After getting all the python module errors worked out (with pulse, json and such) I'm now to the point where it pops up the main screen - with what looks like a list of games - then burps with a 'not a valid socket' error. It only flashes up for a sec so I can't tell what's going on before the call stack from python comes back. Is there a way to enable more verbose logging than what python itself spits for the call stack so I can try and figure this out?
 
Old 04-28-2009, 11:42 PM   #1514
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by daftcat View Post
Just had a cool thought. The new version of rtmpdump supports streaming to stdout and I've already tested an mplayer pipeline like:

Code:
rtmpdump <url> -o - | mplayer -autosync 30 -
If we can get a fix from rtmpdump for archived games and that fix from ffmpeg for live games, I won't have to support any "dvr" code for rtmpdump or any downloading of games.

rtmpdump can be the non-premium users version of autobahn.jar.

I think when I get a chance, I'll see how the LibRTMP code differs from rtmpdump or maybe I can hack in some flow control into rtmpdump.
I'm currently testing this on an archived game and so far, the results are quite encouraging. It seems that mplayer itself performs the throttling on rtmpdump forcing rtmpdump to "dump" the stream only as fast as mplayer can consume it. The result is a steady 800K stream.

I'll be testing this tonight and if it streams all the way through an archived game without crapping out, I'll check in the mlbviewer integration code and scrap mlbdvr.py.
 
Old 04-28-2009, 11:51 PM   #1515
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,883

Rep: Reputation: 86
Quote:
Originally Posted by mjbcoug View Post
Right now I am enjoying my Giants against the hated Bums in baseball's "other" great rivalry (after NY-BOS). Live 3000K stream using latest from SVN. Simply beautiful and amazing. Better than TV. This thing is coming together VERY nicely.

As an aside, I was tinkering with your code and trying to get it to run on my Vista box at work today (no linux at work...and it was a slow day). After getting all the python module errors worked out (with pulse, json and such) I'm now to the point where it pops up the main screen - with what looks like a list of games - then burps with a 'not a valid socket' error. It only flashes up for a sec so I can't tell what's going on before the call stack from python comes back. Is there a way to enable more verbose logging than what python itself spits for the call stack so I can try and figure this out?
A few recommendations:

1. Try this through cygwin if possible. I'm not sure how well the other pieces of mlbviewer work under native windows.

2. Get the test tools working first. Start with mlblistings.py. If that works, you know the xml code works. Move on to soapevent.py (just insert a sys.exit() call before the rtmpdump command to verify the SOAP code (e.g. suds) works under Windows. Finally you can try rtmpdump with soapevent.py or nexdef and mplayer with nexdef.py. The nice thing about the test tools is that these (while, yes, they are quite messy) are linear so you know exactly where it fails without having to make sense of the curses gui. You can also insert as many print statements into the test tools without fear of messing with/crashing the curses gui.

Let me know how far you get with the test tools. Once you've proven that a) the listings code and b) the test tools work, then getting the curses to work is simple. It worked last year.
 
  


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 06:58 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