AlanSun Aug 17 04:28:48 PDT 2008
So, NBC is putting quite a bit of video online at nbcolympics.com. However, if you decide to try and check out a bit of backstage action on = your linux box, you'll be told (politely) "Go away, kid, ya bother me". However, the intrepid folks over in the Ubuntu forums have come up with = a way, albeit convoluted, for those of us on the fringes to take part. Basically, they've created 3 different scripts to search the Olympic = site and parse out the stream urls, which you can then pass into your = favorite media player. The first, and least effective for me is nbcsched.py It takes two arguments, the sport and whether you want live or recorded. It will then return a list of streams based on the criteria: ajb at wembley:~/olympics$ python nbcsched.py badminton live Mixed Doubles Bronze-Medal Match mmsh://msolympics-ENC11-high.wm.llnwd.net/msftolympicslive-live/msolympics_= ENC11_high?e=3D1218970072&h=3D5ad555469147663221ba5ed234a30a0b ajb at wembley:~/olympics$ mplayer = mms://msolympics-ENC11-high.wm.llnwd.net/msftolympicslive-live/msolympics_E= NC11_high?e=3D1218970072&h=3D5ad555469147663221ba5ed234a30a0b (Note that I removed the "h" from the URL as mplayer won't play mmsh URLS.) ajb at wembley:~/olympics$ python nbcsched.py badminton rewind Women's Singles Round of 64 Juliane SCHENK (GER) - Maria Kristin = YULIANTI (INA) mms://msolympics-73.wmod.llnwd.net/a2439/d1/msftolympics/nbcs/wmp/rewinds/B= ADH-BJ-SD11-080908-085503--SBR--HIGH.wmv?e=3D1218972595&h=3D372a35a6684= 8b88d35f20b9143adcf5b However, NBC appears to be playing games with the URLs, as they "expire" = and you'll get a "Technical Difficulties" stream instead of your match. If you are fast on the cut and paste, it works about half the time. = Piping works at about the same percentage. The second method give me greater success. nbcquick-rev2.py takes an "asset" from a URL string and converts that = into the mms stream: ajb at wembley:~/$ python nbcquick-rev2.py fn2h-bj-sd09-081708-175003 ... mms://msolympics-ENC09-high.wm.llnwd.net/msftolympicslive-live/msolympics_E= NC09_high?e=3D1218970407\&h=3Da9da4c51e9efe8a28c7a08a7968a8198 $ mplayer 'mms://<stream here>' (Note the escapes) The asset number comes from the url on nbcolympics.com when you click on = the video feed link. <http://www.nbcolympics.com/video/player.html?assetid=3Dfn2h-bj-sd09-081708= -175003&channelcode=3Dsportfe> The bit between the =3D and the & The third script is essentially the same but attempts to locate the = "Silverlight" stream, supposedly higher quality. The syntax is the same as the nbcquick script: ajb at wembley:~/olympics$ python nbcquick-sl.py fn2h-bj-sd09-081708-175003 mmsh://msolympics-ENC09-high.wm.llnwd.net/msftolympicslive-live/msolympics_= ENC09_high?e=3D1218970930&h=3D972f0abe9eed99b93823287563601b11 ajb at wembley:~/olympics$ You can also pipe it to mplayer directly: $ mplayer -cache 8096 `python nbcquick-sl.py tb4h-bj-sd30-081308-095504` Why would you want to do this? Well, apart from the obvious factor that = most Olympic events don't have a chance of getting broadcast(they don't = feature skimpy bikinis or Michael Phelps), the footage is often the raw = camera footage. No announcers speaking over the action or inane commentary. The sound is = generally raw, you can hear the referees admonishing competitors, for = example. Also, it seems that a lot of the time, the NBC folks forget the cameras = are live, or just don't care. My moment of zen was watching the Sailing docks and a very angry Chinese = official tearing into a sailing crew loading their boat. I have no idea = what the problem was, but you wouldn't see that on the broadcast edit. Also a fencing referee having a stern talk with a Italian? fencer. I = don't speak French, so I'm not sure what it was about either. You can also use mimms to save the files for later viewing if you = prefer. mimms will also play mmsh urls: $ mimms `python ~/olympics/nbcquick-sl.py 0813_sd_ttm_ch_l0381` = KeyPoints.wmv $ mimms = 'mmsh://msolympics-ENC36-high.wm.llnwd.net/msftolympicslive-live/msolympics= _ENC36_high?e=3D1218969242&h=3Dd41c23ed3dfcdd4d99c7d3cb02ad82c1' = - | tee dock.wmv | mplayer - This is definately not the easiest route, but still, if you are a fan of = sports that don't get much airtime, with a bit of fussing you can see = what the first class citizens of the Windows world see. I'm will attach the scripts to this email, if they don't survive, you = can find them on the euglug server. <http://test.euglug.org/files/nbcquick-rev2.py.txt> <http://test.euglug.org/files/nbcquick-sl.py.txt> <http://test.euglug.org/files/nbcsched.py.txt> If that fails, the original Ubuntu thread can be found here: <http://ubuntuforums.org/showthread.php?t=3D883142> -ajb -------------- next part -------------- A non-text attachment was scrubbed... Name: nbcquick-rev2.py Type: text/x-python Size: 2083 bytes Desc: not available Url : http://euglug.org/pipermail/euglug/attachments/20080817/6b7c5c94/nbcq= uick-rev2.py -------------- next part -------------- A non-text attachment was scrubbed... Name: nbcquick-sl.py Type: text/x-python Size: 2016 bytes Desc: not available Url : http://euglug.org/pipermail/euglug/attachments/20080817/6b7c5c94/nbcq= uick-sl.py -------------- next part -------------- A non-text attachment was scrubbed... Name: nbcsched.py Type: text/x-python Size: 3388 bytes Desc: not available Url : http://euglug.org/pipermail/euglug/attachments/20080817/6b7c5c94/nbcs= ched.py