[MPlayer-users] Capture NASA ustream with rtmpdump

Daniel Labarowski labarowski.1 at gmail.com
Thu Oct 11 05:41:58 CEST 2012


I am posting to this mailing list because rtmpdump is hosted on the MPlayer
website. I hope that I am in the right place. I would like to use rtmpdump
to record NASA's ustream <http://www.ustream.tv/nasahdtv>. All of the cool
stuff happens early in the marning, so the ability to set a script to run
would be nice. In the past, I have always used wirshark to sniff the rtmp
handshake to get all of the appropriate urls. This took a lot of trial and
error and now the header format seems to have changed and I simply can't
make sense of it. I have attached an excerpt from the TCP stream if you
guys want to take a crack at decoding it, but it would be nice to have a
reliable way to grab these addresses and settings as they often change.
Using rtmpexplorer under Windows (with rtmpsrv 2.4), I can get only "trying
different position for client digest" messages and failed to read header /
handshake failed messages. Using the instructions here,
<http://stream-recorder.com/forum/use-rtmpsuck-ubuntu-10-04-lucid-lynx-t7070.html>I
checked out the latest svn of rtmpdump a couple nights ago and gave this a
try under ubuntu. I had to build for posix, but did eventually get things
working. Rtmpsrv mostly responded with the same errors as
rtmpexplorer/rtmpsrv 2.4. I did get a rtmpdump command a couple of times.
Running this command while the stream was still open in my browser would
give a handshake error while running the command after the streaming video
was closed would give an error that the stream was not available. Does
anyone know why rtmpsrv does not seem to work for NASA's ustream? Can
anyone make sense of the tcp excerpt I've attached? Thanks! Would really
like to keep up with the SpaceX stuff and watch the Russian launch next
month.

-Dan

Videos used to require a string like this to dump
rtmpdump.exe -v -r "rtmp://
cp152495.live.edgefcs.net/live/ustream-sj2_378 at 22555" -W "
http://www.ustream.tv/flash/viewer.swf" -o "NASAHD.flv"
-------------- next part --------------
connect.?..........app...ustream..flashVer...WIN 11,4,402,287..swfUrl..Ghttp://static-cdn1.ustream.tv/swf/live/viewer.rsl:312..swf?rmalang=en_US..tcUrl..!rtmp://199.66.239.65:1935/ustream..fpad....capabilities.@m........audioCodecs.@.........videoCodecs..@o.......
videoFunction.?.........pageUrl..0http://www.ustream.tv/embed/6540154?wmode=direct..objectEncoding...............appli.cation...channel..referrer..2http://www.nasa.gov/multimedia/nasatv/ustream.html..rpin...rpin.20968962501093183..rsid...qkypxvzv:.05dcrqf6..loaderUrl..5http://static-cdn1.ustream.tv/swf/live/viewer3:52.swf..externalInterface....media...6540154................&%..............&%..................................._result.?..........capabilities.@?........fmsVer..
FMS/4,0,0,457......level...status..code...NetConnection.Connect.Success..d.escription...Connection succeeded...objectEncoding.............................../...........&%.B.............C....
)...
moduleInfo.............id. at V........logo
.......align...2..margin...5..mobile.......stream
.......name...level3.
needSubscrib.e....streams
.......bitrate. at . .......isTranscoded...
streamName...stream_live_1_1_6540154......description...480p..bitrate. at .@........preset...viewer_480p..isTranscoded....size...854x480.
streamName...stream_live_8_1_6540154......description...360p..bitrat.e. at .p.......preset...viewer_360p..isTranscoded....size...640x360.
streamName...stream_live_7_1_6540154......description...240p...bitrate. at .@.......preset...viewer_240p..isTranscoded....size...426x240.
streamName...stream_live_6_1_6540154.....url..2rtmp://us.treamlivefs.fplive.net/ustream1live-live/......name...akamai.
needSubscribe....streams
.......bitrate. at . .......isTranscoded...
.streamName...ustream-sj2_270 at 53902......description...480p..bitrate.@. at .......preset...viewer_480p..isTranscoded....size...854x4.80.
streamName...ustream-sj2_477 at 57635......description...360p..bitrate.@.p.......preset...viewer_360p..isTranscoded....size...6.40x360.
streamName...ustream-sj2_376 at 57378......description...240p..bitrate.@. at .......preset...viewer_240p..isTranscoded....size....426x240.
streamName...ustream-sj2_600 at 55030.....url..%rtmp://cp152495.live.edgefcs.net/live......name...tcdn..streams
........bitrate. at . .......isTranscoded...
streamName...streams/live_1......description...480p..bitrate. at .@.......preset...viewer_480p..i.sTranscoded....size...854x480.
streamName...streams/live_8......description...360p..bitrate. at .p.......preset...viewer_360p..isTr.anscoded....size...640x360.
streamName...streams/live_7......description...240p..bitrate. at .@.......preset...viewer_240p..isTrans.coded....size...426x240.
streamName...streams/live_6.....url..:rtmp://sjc-rtmpcdn01.ustream.tv/ustreamCdn/flash77/6540154.....vi.ewers.@_.......
allViewers.A.:H......tcdn...percent.?............meta...keywords
.......HD...NASA...Science.
offairContent...vid.eos
.......26055584.....mainCategoryId...167..pageUrl..2http://www.nasa.gov/multimedia/nasatv/ustream.html..mainCategoryName..
T.echnology..countryCode...US..adFree....url...http://www.ustream.tv/nasahdtv..ip...164.107.186.175.
subCategoryId...173..title....NASA Public..logicId...ums06..userName...NASAtelevision..umsId...ums09..embedAnchor...<a href="http://www.ustream.tv/" style="pa.dding: 2px 0px 4px; width: 400px; background: #ffffff; display: block; color: #000000; font-weight: normal; font-size: 10px; tex.t-decoration: underline; text-align: center;" target="_blank">Streaming live video by Ustream</a>..tagline...Broadcasting NASA T.V in HD!..subCategoryName...Science......C..... ....playing.............6540154..C.....B...
moduleInfo.............viewers. at _.......
allViewers.A.:H..........
moduleInfo.............viewers. at _@......
allViewers.A.:H..........
moduleInfo.............viewers. at _.......
allViewers.A.:H..........
moduleInfo.............viewers. at _.......
allViewers.A.:P.......


More information about the MPlayer-users mailing list