[MPlayer-users] Recording streaming baseball radio on mlb.com

Christopher Swingley cswingle at iarc.uaf.edu
Tue Jun 7 17:48:56 CEST 2005


Chris,

* Chris Grafham <cgrafham at yahoo.co.uk> [2005-Jun-01 14:46 AKDT]:
> I'm considering joining the gameday audio subscription
> provided by mlb.com 
> 
> I hope to record the games in mp3 format so I can
> listen to them on an ipod. 
> 
> Is there a way to do this using mplayer running on Mac
> OS X?  I'm not sure if it will handle the audio codec
> used and any web authenication. 

Dunno about OS X, and you might be violating various licensing 
agreements, patents, trademarks, Copyright law, etc., by doing this but 
check out my MLB on Linux page:

    http://www.frontier.iarc.uaf.edu/~cswingle/baseball/mlb_linux.php

Here's a summary of what I do:

    * Use the Windows Media formatted stream
    * Start up a game from the web
    * Hack around in /proc to obtain the 'mms://' url (I have a little 
      shell script to do this, at that web site)
    * "Record" the game:

        mplayer -cache 128 -vc dummy -vo null "mms://..." -ao pcm:waveheader:file=giants_7_apr_2005.wav

    * Convert to OGG:

        oggenc -q 0 --downmix --resample 6000 giants_7_apr_2005.wav -o giants_7_apr_2005.ogg

You might find quality 0, and a resampling of 6000 to be too aggressive, 
but this yields a file that can be streamed over a very slow dial-up 
connection, but which is understandable.

Chris
-- 
Christopher S. Swingley          email: cswingle at iarc.uaf.edu
Intl. Arctic Research Center
University of Alaska Fairbanks   www.frontier.iarc.uaf.edu/~cswingle/




More information about the MPlayer-users mailing list