PDA

View Full Version : channelfireball.com: Need help with a stream using RTMPdump


vivisect
06-15-2011, 09:45 AM
I feel like I have tried a lot of different strings, and nothing seems to work. Thanks for any help given.

I should also note that this does work in Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-download-and-capture-streaming-music-radio-video.htm), but it gives me the downgraded flv, not the original mp4.

Page I am trying to grab a video from:
http://www.channelfireball.com/articles/channel-lsv-3-nph-draft-1/

Used URL Snooper to get the following MP4 link:
rtmp://cp101675.edgefcs.net/ondemand/&mp4:3/794267721001/794267721001_982107155001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4?__nn__=932629354001&slist=3/794267721001/&auth=daEb4aDdgbtdUd8bCa8deaUc2d

I get the following video players:
http://admin.brightcove.com/viewer/us1.25.05.00.2011-06-14161714/federatedVideoUI/BrightcovePlayer.swf

http://admin.brightcove.com/viewer/us1.25.05.00.2011-06-14161714/BrightcoveBootloader.swf?playerID=981350681001&playerKey=AQ%7E%7E%2CAAAAuO4LnSk%7E%2CAwdRtAYlwc5M-nuQqeTXyww-Ni08gz6R&purl=http%3A%2F%2Fwww.channelfireball.com%2Funcate gorized%2Fchannel-lsv-3-nph-draft-1-alternate%2F&autoStart=&bgcolor=%23FFFFFF&debuggerID=&dynamicStreaming=true&flashID=myExperience&height=410&isUI=true&isVid=true&width=588

http://static.inplay.tubemogul.com/core/core-as3-v4.4.8.swf

http://static.inplay.tubemogul.com/core/core-as3-v4.4.8.swf?playerID=P-RS5-841&bootloaderID=B-0Y9-YVC

I've tried using all of these things, but I think my string is just wrong.

The most recent one I tried was:

rtmpdump -z -s "http://admin.brightcove.com/viewer/us1.25.05.00.2011-06-14161714/federatedVideoUI/BrightcovePlayer.swf" -r "rtmp://cp101675.edgefcs.net/ondemand/&mp4:3/794267721001/794267721001_982107155001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4" -o "part1.mp4"

Which gave me the following debug:

RTMPDump v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host : cp101675.edgefcs.net
DEBUG: Parsed app : ondemand
DEBUG: Protocol : RTMP
DEBUG: Hostname : cp101675.edgefcs.net
DEBUG: Port : 1935
DEBUG: Playpath : mp4:&mp4:3/794267721001/794267721001_982107155001_Channel-
LSV---3-NPH-Draft--1---Drafting
DEBUG: tcUrl : rtmp://cp101675.edgefcs.net:1935/ondemand
DEBUG: swfUrl : http://admin.brightcove.com/viewer/us1.25.05.00.2011-06-141617
14/federatedVideoUI/BrightcovePlayer.swf
DEBUG: app : ondemand
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 1593108824
DEBUG: HandShake: FMS Version : 3.5.6.1
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG2: RTMP_SendPacket: fd=1876, size=329
DEBUG2: 0000: 03 00 00 00 00 01 49 14 00 00 00 00 ......I.....

DEBUG2: 0000: 02 00 07 63 6f 6e 6e 65 63 74 00 3f f0 00 00 00 ...connect.?
....
DEBUG2: 0010: 00 00 00 03 00 03 61 70 70 02 00 08 6f 6e 64 65 ......app...
onde
DEBUG2: 0020: 6d 61 6e 64 00 08 66 6c 61 73 68 56 65 72 02 00 mand..flashV
er..
DEBUG2: 0030: 0e 57 49 4e 20 31 30 2c 30 2c 33 32 2c 31 38 00 .WIN 10,0,32
,18.
DEBUG2: 0040: 06 73 77 66 55 72 6c 02 00 66 68 74 74 70 3a 2f .swfUrl..fht
tp:/
DEBUG2: 0050: 2f 61 64 6d 69 6e 2e 62 72 69 67 68 74 63 6f 76 /admin.brigh
tcov
DEBUG2: 0060: 65 2e 63 6f 6d 2f 76 69 65 77 65 72 2f 75 73 31 e.com/viewer
/us1
DEBUG2: 0070: 2e 32 35 2e 30 35 2e 30 30 2e 32 30 31 31 2d 30 .25.05.00.20
11-0
DEBUG2: 0000: c3 .

DEBUG2: 0000: 36 2d 31 34 31 36 31 37 31 34 2f 66 65 64 65 72 6-14161714/f
eder
DEBUG2: 0010: 61 74 65 64 56 69 64 65 6f 55 49 2f 42 72 69 67 atedVideoUI/
Brig
DEBUG2: 0020: 68 74 63 6f 76 65 50 6c 61 79 65 72 2e 73 77 66 htcovePlayer
.swf
DEBUG2: 0030: 00 05 74 63 55 72 6c 02 00 29 72 74 6d 70 3a 2f ..tcUrl..)rt
mp:/
DEBUG2: 0040: 2f 63 70 31 30 31 36 37 35 2e 65 64 67 65 66 63 /cp101675.ed
gefc
DEBUG2: 0050: 73 2e 6e 65 74 3a 31 39 33 35 2f 6f 6e 64 65 6d s.net:1935/o
ndem
DEBUG2: 0060: 61 6e 64 00 04 66 70 61 64 01 00 00 0c 63 61 70 and..fpad...
.cap
DEBUG2: 0070: 61 62 69 6c 69 74 69 65 73 00 40 2e 00 00 00 00 abilities.@.
....
DEBUG2: 0000: c3 .

DEBUG2: 0000: 00 00 00 0b 61 75 64 69 6f 43 6f 64 65 63 73 00 ....audioCod
ecs.
DEBUG2: 0010: 40 a8 ee 00 00 00 00 00 00 0b 76 69 64 65 6f 43 @.........vi
deoC
DEBUG2: 0020: 6f 64 65 63 73 00 40 6f 80 00 00 00 00 00 00 0d odecs.@o....
....
DEBUG2: 0030: 76 69 64 65 6f 46 75 6e 63 74 69 6f 6e 00 3f f0 videoFunctio
n.?.
DEBUG2: 0040: 00 00 00 00 00 00 00 00 09 .........

DEBUG: Invoking connect
INFO: Connected...
DEBUG2: RTMP_ReadPacket: fd=1876
DEBUG2: 0000: 03 00 00 00 00 00 86 14 00 00 00 00 ............

DEBUG2: 0000: 02 00 06 5f 65 72 72 6f 72 00 3f f0 00 00 00 00 ..._error.?.
....
DEBUG2: 0010: 00 00 05 03 00 05 6c 65 76 65 6c 02 00 05 65 72 ......level.
..er
DEBUG2: 0020: 72 6f 72 00 04 63 6f 64 65 02 00 1e 4e 65 74 43 ror..code...
NetC
DEBUG2: 0030: 6f 6e 6e 65 63 74 69 6f 6e 2e 43 6f 6e 6e 65 63 onnection.Co
nnec
DEBUG2: 0040: 74 2e 52 65 6a 65 63 74 65 64 00 0b 64 65 73 63 t.Rejected..
desc
DEBUG2: 0050: 72 69 70 74 69 6f 6e 02 00 29 5b 20 41 63 63 65 ription..)[
Acce
DEBUG2: 0060: 73 73 4d 61 6e 61 67 65 72 2e 52 65 6a 65 63 74 ssManager.Re
ject
DEBUG2: 0070: 20 5d 20 3a 20 41 63 63 65 73 73 20 64 65 6e 69 ] : Access
deni
DEBUG2: RTMP_ReadPacket: fd=1876
DEBUG2: 0000: c3 .

DEBUG2: 0000: 65 64 21 00 00 09 ed!...

DEBUG: RTMP_ClientPacket, received: invoke 134 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name., STRING: _error>
DEBUG: Property: <Name: no-name., NUMBER: 1.00>
DEBUG: Property: NULL
DEBUG: Property: <Name: no-name., OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Re
jected>
DEBUG: Property: <Name: description, STRING: [ AccessManager.Reject ]
: Access denied!>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG2: RTMP_ReadPacket: fd=1876
DEBUG2: 0000: 03 00 00 00 00 00 12 14 00 00 00 00 ............

DEBUG2: 0000: 02 00 05 63 6c 6f 73 65 00 00 00 00 00 00 00 00 ...close....
....
DEBUG2: 0010: 00 05 ..

DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
DEBUG: (object begin)
DEBUG: Property: <Name: no-name., STRING: close>
DEBUG: Property: <Name: no-name., NUMBER: 0.00>
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: Closing connection.

chap
06-15-2011, 10:06 AM
Use RTMPexplorer (http://all-streaming-media.com/record-video-stream/RTMPExplorer-freeware-GUI-for-rtmpsrv-Windows.htm) (changed bat file). Is it?
-r "rtmp://cp101675.edgefcs.net:1935/ondemand?__nn__=932629354001&slist=3/794267721001/&auth=daEajbVahcMc1bGc3aZdoddcNaBc4a_aLcY-bn.mJW-bWG-HBEm_GFo_BExD_EpF&aifp=v00234&videoId=981960544001&lineUpId=981610633001&pubId=794267721001&playerId=981350681001&affiliateId=" -a "ondemand?__nn__=932629354001&slist=3/794267721001/&auth=daEajbVahcMc1bGc3aZdoddcNaBc4a_aLcY-bn.mJW-bWG-HBEm_GFo_BExD_EpF&aifp=v00234&videoId=981960544001&lineUpId=981610633001&pubId=794267721001&playerId=981350681001&affiliateId=" -f "WIN 10,3,181,16" -W "http://admin.brightcove.com/viewer/us1.25.05.00.2011-06-14161714/federatedVideoUI/BrightcovePlayer.swf" -p "http://www.channelfireball.com/articles/channel-lsv-3-nph-draft-1/" -y "mp4:3/794267721001/794267721001_982107155001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4?__nn__=932629354001&slist=3/794267721001/&auth=daEajbVahcMc1bGc3aZdoddcNaBc4a_aLcY-bn.mJW-bWG-HBEm_GFo_BExD_EpF&aifp=v00234&videoId=981960544001&lineUpId=981610633001&pubId=794267721001&playerId=981350681001&affiliateId=" -o 794267721001_982107155001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4


rtmpdump -r "rtmp://cp101675.edgefcs.net:1935/ondemand?__nn__=932629354001&slist
=3/794267721001/&auth=daEajbVahcMc1bGc3aZdoddcNaBc4a_aLcY-bn.mJW-bWG-HBEm_GFo_BE
xD_EpF&aifp=v00234&videoId=981960544001&lineUpId=981610633001&pubId=794267721001
&playerId=981350681001&affiliateId=" -a "ondemand?__nn__=932629354001&slist=3/79
4267721001/&auth=daEajbVahcMc1bGc3aZdoddcNaBc4a_aLcY-bn.mJW-bWG-HBEm_GFo_BExD_Ep
F&aifp=v00234&videoId=981960544001&lineUpId=981610633001&pubId=794267721001&play
erId=981350681001&affiliateId=" -f "WIN 10,3,181,16" -W "http://admin.brightcove
.com/viewer/us1.25.05.00.2011-06-14161714/federatedVideoUI/BrightcovePlayer.swf"
-p "http://www.channelfireball.com/articles/channel-lsv-3-nph-draft-1/" -y "mp4
:3/794267721001/794267721001_982107155001_Channel-LSV---3-NPH-Draft--1---Draftin
g.mp4?__nn__=932629354001&slist=3/794267721001/&auth=daEajbVahcMc1bGc3aZdoddcNaB
c4a_aLcY-bn.mJW-bWG-HBEm_GFo_BExD_EpF&aifp=v00234&videoId=981960544001&lineUpId=
981610633001&pubId=794267721001&playerId=981350681001&affiliateId=" -o 794267721
001_982107155001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4

Closing connection... done!

RTMPDump v2.3 r569 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 1303.74
INFO: moovPosition 48.00
INFO: width 640.00
INFO: height 360.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 77.00
INFO: avclevel 30.00
INFO: aacaot 2.00
INFO: videoframerate 29.97
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: tags:
INFO: ┬йtoo Lavf52.92.0
INFO: trackinfo:
INFO: length 3907300.00
INFO: timescale 2997.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 57493504.00
INFO: timescale 44100.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mp4a
14249.657 kB / 210.21 sec (16.1%)

vivisect
06-15-2011, 01:43 PM
That's great! Totally works. But how about this. The stream that it grabs still seems to be the downgraded version. I admittedly don't know how these protocols work, nor how the player chooses the sample rate. Any ideas? The player seems to go to the high sample rate after about 30 seconds of play. I can't seem to get any other urls out of it though.

Stream Recorder
06-15-2011, 03:11 PM
Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-download-and-capture-streaming-music-radio-video.htm) and RTMPexplorer (http://all-streaming-media.com/record-video-stream/RTMPExplorer-freeware-GUI-for-rtmpsrv-Windows.htm) find and download exactly the stream that you start to play. Don't really know how to get a higher bitrate stream here. May be Wireshark (http://all-streaming-media.com/find-stream-URL/Wireshark-free-network-protocol-analyzer.htm) can help.

chap
06-15-2011, 04:10 PM
That's great! Totally works. But how about this. The stream that it grabs still seems to be the downgraded version. I admittedly don't know how these protocols work, nor how the player chooses the sample rate. Any ideas? The player seems to go to the high sample rate after about 30 seconds of play. I can't seem to get any other urls out of it though.
you need a high bitrate?

General
Complete name :794267721001_982024647001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4
Format : Flash Video
File size : 11.4 MiB
Duration : 1mn 17s
Overall bit rate : 1 239 Kbps

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.2
Format settings, CABAC : No
Format settings, ReFrames : 2 frames
Codec ID : 7
Duration : 1mn 17s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 10
Duration : 1mn 17s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy



794267721001_982107137001_Channel-LSV---3-NPH-Draft--1---Drafting.mp4
Format : Flash Video
File size : 8.32 MiB
Duration : 32s 866ms
Overall bit rate : 2 123 Kbps

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 7
Duration : 32s 866ms
Nominal bit rate : 1 633 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.059
Writing library : x264 core 112
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=4 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=0 / keyint=60 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1633 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.41 / aq=1:1.00

Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 10
Duration : 32s 866ms
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy

vivisect
06-16-2011, 07:42 AM
Replay Media Catcher (http://all-streaming-media.com/record-video-stream/Replay-Media-Catcher-download-and-capture-streaming-music-radio-video.htm) and RTMPexplorer (http://all-streaming-media.com/record-video-stream/RTMPExplorer-freeware-GUI-for-rtmpsrv-Windows.htm) find and download exactly the stream that you start to play. Don't really know how to get a higher bitrate stream here. May be Wireshark (http://all-streaming-media.com/find-stream-URL/Wireshark-free-network-protocol-analyzer.htm) can help.

The stream that starts to play is the lowest quality. If you wait for about 30 seconds while watching the stream in full screen, it switches to a different bit rate.

you need a high bitrate?

How did you get those two different bitrates?

chap
06-16-2011, 03:03 PM
How did you get those two different bitrates?

http://www.mediafire.com/?o2ew76t288km1cn

you can still get a result with rtmpsusk (RTMPexplorer (http://all-streaming-media.com/record-video-stream/RTMPExplorer-freeware-GUI-for-rtmpsrv-Windows.htm)).

vivisect
06-16-2011, 04:21 PM
Fantastic! Thanks again.