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.
Flash player is available through the 'f' key for any listing which is a nice convenience for both live games and sanity checking the availability of streams.
Other supported features:
bookmarks
f)lash key
mlblistings.py for displaying event-ids
soapevent.py (I should really rename this)
gamedayaudio.py
rtmpdump patch for live audio
WHAT DOESN'T WORK YET:
-Live video (It seems all rtmp downloaders were written for flv and I still can't find one that supports h.264. But, the developer for flazr has indicated that he plans h.264 support.) Live video likely won't be supported for awhile.
-Audio follow/video follow - the content-id's are present in the soap replies, but I don't see how the streams are keyed to the content-id's.
-Condensed games and highlights - waiting to see how mlb.com supports these themselves.
ROADMAP
- Fix a minor bug with player process falling out of mlbdvr.py control when recorder process completes. (probably this weekend)
- Make the rtmpdump requests more reliable which means you all have to report to me which streams are not working for you.
- video and audio follow , I'll have to study the soap and possibly other http requests more to figure this out
- Test flazr as a replacement for rtmpdump.
Please give this revision some more testing and let me know how we're doing. If live video and the follow's are all that's missing, I'd say we're doing pretty good. Keep reporting the errors and bad streams and let me know if you still have Requested Media Not Found errors after updating to this revision.
(P.S. I'm pretty excited to be watching yesterday's Dodgers game knowing it will download successfully without my intervention now. I'm even more excited that I'll be able to watch today's archived games when I get back from dancing tonight.)
Thanks a bunch. Updated to rev 151 and the 4/9 KC@CHW works fine. Now if you could just produce a diff to remove Sidney Ponson from our rotation ;P
Sweet! Another Royals fan! I read on the mlb comments board, "proposal for a new rule: don't sign Yankees toss offs." If I could produce a diff to remove Ponson and Farnsworth-less (and fix up Hoch and Banny too), I'd feel a lot better about having the lawns removed from the Kauffman outfield. That beautiful park (though I've only been there once) made it a lot easier to endure so many losing seasons. Maybe the extra capacity and the new park smell will bring in enough revenues for better off-season deals next year. I'm still pretty optimistic though that we can produce a winning season this year.
Today, three games I've tested from 4/10 instantly return a "Command completed. Hope it worked!" and produce a 5B file. Rangers@Tigers, Cubs@Brewers, and Phillies@Rockies. All three play when using the awesome 'f' shortcut.
Huge DUH moment. I compiled rtmpdump from source with patches, carefully checked that PyXML available from my distro was the newest version, but failed to do so with suds. Installed a newer version of suds, and my mystery errors suddenly went away. Funny how when you do it right it works.
Anyways, soapevent.py is much more successful now. I forgot to save the output and now MLB has me locked out for "signing in too often" or some nonsense. I'll update you when I can get back on.
Today, three games I've tested from 4/10 instantly return a "Command completed. Hope it worked!" and produce a 5B file. Rangers@Tigers, Cubs@Brewers, and Phillies@Rockies. All three play when using the awesome 'f' shortcut.
What does the /tmp/rtmpdump.log file say? I thought it would be more convenient to log rtmpdump's output to this file than to have errors lost to the curses interface.
I think they are StreamNotFound errors.
I think I have a solution for this.
I also think I'd like to go out for awhile and enjoy my Friday night. I'll have a patch tomorrow.
I'm getting this error on around half of the archived games I try to view:
Code:
Server raised fault: 'Error in JiBX marshalling'
There was an error in the dvr processes:local variable 'u' referenced before assignment
Also, if I resize the xterm with mlbdvr, I get the following crash:
Code:
Traceback (most recent call last):
File "./mlbdvr.py", line 1273, in <module>
curses.wrapper(mainloop, mycfg.data)
File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "./mlbdvr.py", line 383, in mainloop
inputs, outputs, excepts = select.select(inputlst, [], [])
select.error: (4, 'Interrupted system call')
Great work though! The f) key is nice.
As an aside, the only real issues I have with the official client are that it takes up too much screen real estate -- I'm at least trying to work when I watch baseball -- and that even with scores removed, the "slider" can still spoil games by visually (and numerically) indicating how much time is left -- viz., "oh, well, that's not enough time that they could come back". Since both of these problems are non-existent with mplayer (viz., it's resizeable and I can turn osdlevel to none), I'd prefer to be watching live games with mlbviewer!
So I got everything installed, patched, and working. I'm using mlbdvr.py to "record" an archived game from yesterday. It writes the .mp4 file but mplayer gives the unsupported codec error. This is the error, right?
The way I figure it, rtmp dump is writing data and it's not being converted. That means there HAS to be a way to play it, doesn't it?
This might be a stupid question, but are there some dependencices that I don't know about for autobahn.jar? I tried to build it and just got a core dump.
This might be a stupid question, but are there some dependencices that I don't know about for autobahn.jar? I tried to build it and just got a core dump.
Hey daftcat, I just got live video working with mplayer.
The bad news is I think it was a fluke. I was using the soapevent.py script in the test subdirectory on the PIT-CIN game going on right now. rtmpdump stared writing the file and I handed it off to mplayer. To my surprise, it started playing, albeit without sound. Here's a screenshot showing the player window (video overlay didn't make it into the screenshot) and the terminal output:
Subsequent attempts to play the same file result in the error:
Code:
[flv @ 0xbe8990]Unsupported video codec (7)
[flv @ 0xbe8990]Unsupported video codec (7)
[flv @ 0xbe8990]Unsupported video codec (7)
[flv @ 0xbe8990]Unsupported video codec (7)
[flv @ 0xbe8990]Unsupported video codec (7)
[flv @ 0xbe8990]Unsupported video codec (7)
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [] 0x0 0bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Cannot find codec matching selected -vo and video format 0x7.
Read DOCS/HTML/en/codecs.html!
==========================================================================
==========================================================================
Forced audio codec: mad
Requested audio codec family [wma9spdmo] (afm=dmo) not available.
Enable it at compilation.
Requested audio codec family [wma9spdshow] (afm=dshow) not available.
Enable it at compilation.
Cannot find codec for audio format 0xA.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Video: no video
This tells me the video data is in there somewhere!
EDIT: I am now able to do this consistently. As long as I launch mplayer within a few seconds of starting the video capture, it plays every time in mplayer. Still no audio though. I'm guessing audio is in a different stream since they now have the option of choosing your audio stream.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.