LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-10-2009, 09:47 PM   #1141
TheDevilWearsPravda
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0

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
 
Old 04-10-2009, 09:48 PM   #1142
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
State of Mlbviewer as of SVN revision 151

SUPPORTED MATRIX:

Archives:
video (yes)
audio (yes)

Live games
video (no)
audio (yes)

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.)
 
Old 04-10-2009, 09:54 PM   #1143
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

Rep: Reputation: 76
Quote:
Originally Posted by TheDevilWearsPravda View Post
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.
 
Old 04-11-2009, 12:01 AM   #1144
TheDevilWearsPravda
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
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.
 
Old 04-11-2009, 12:22 AM   #1145
poorboywilly
Member
 
Registered: Apr 2009
Posts: 120

Rep: Reputation: 18
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.
 
Old 04-11-2009, 12:31 AM   #1146
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,767

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

Thanks! It's a good catch.
 
Old 04-11-2009, 12:50 AM   #1147
TheDevilWearsPravda
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
yup, StreamNotFound. Appreciate your hard work and dedication. I think I owe you a SuperBeer 9000.
 
Old 04-11-2009, 03:34 AM   #1148
quonset
LQ Newbie
 
Registered: Apr 2008
Posts: 19

Rep: Reputation: 0
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!
 
Old 04-11-2009, 11:49 AM   #1149
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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?
 
Old 04-11-2009, 12:00 PM   #1150
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Also, rtmpdump should work for h.264. Before Hulu broke it, I used to use rtmpdump to get 480p h.264 videos from Hulu. Here's the info from one:

Code:
General
Complete name                    : PrideOfTheYankees-264.flv
Format                           : Flash Video
File size                        : 543 MiB
Duration                         : 1h 14mn
Overall bit rate                 : 1 019 Kbps
_code                            : NetStream.Data.Start

Video
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L5.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Muxing mode                      : Container profile=Unknown@5.1
Duration                         : 1h 14mn
Width                            : 640 pixels
Height                           : 480 pixels
Display aspect ratio             : 4/3
Frame rate mode                  : Variable
Frame rate                       : 29.970 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive

Audio
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Duration                         : 1h 14mn
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Resolution                       : 16 bits
Is this a container problem? Is a .mp4 being "forced" into an .flv container or something?
 
Old 04-11-2009, 12:54 PM   #1151
berselius
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
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.
 
Old 04-11-2009, 01:27 PM   #1152
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Quote:
Originally Posted by berselius View Post
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.
You don't have to build it. Just run it:

Code:
java -jar autobahn.jar
 
Old 04-11-2009, 01:36 PM   #1153
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
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:

SCREENSHOT

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.

Last edited by Theophile; 04-11-2009 at 01:44 PM.
 
Old 04-11-2009, 02:16 PM   #1154
berselius
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
Whoops, I meant run it, not build it. I get a "Aborted (core dumped)" message when I try to run it.
 
Old 04-11-2009, 02:26 PM   #1155
Theophile
Member
 
Registered: Jan 2003
Posts: 283

Rep: Reputation: 35
Another screenshot to prove my point:

SCREENSHOT 2

Also, mediainfo is able to detecet the videostream:

Code:
theophile@graven:~/mlbviewer/test$ mediainfo 14-244270-2009-04-11.mp4 
General
Complete name                    : 14-244270-2009-04-11.mp4
Format                           : Flash Video
File size                        : 22.9 MiB
Duration                         : 92h 33mn
Overall bit rate                 : 577 bps
_width                           : 400.000
_height                          : 450.000
_framerate                       : 29.970
_videocodecid                    : 7.000
_videodatarate                   : 750.000
_audiodatarate                   : 48.000

Video
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : Main@L3.2
Format settings, CABAC           : Yes
Format settings, ReFrames        : 1 frame
Muxing mode                      : Container profile=Unknown@3.2
Duration                         : 92h 33mn
Width                            : 400 pixels
Height                           : 450 pixels
Display aspect ratio             : 16/9
Frame rate mode                  : Variable
Frame rate                       : 29.970 fps
Standard                         : Component
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive

Audio
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : Main
Duration                         : 92h 33mn
Channel(s)                       : 1 channel
Channel positions                : C
Sampling rate                    : 48.0 KHz
Resolution                       : 16 bits
I'm thinking this is a container problem at heart. What do you think?
 
  


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 11:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM


All times are GMT -5. The time now is 01:23 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