PDA

View Full Version : RTMPE Capturing help


Darwin222
10-05-2012, 08:09 AM
So, I inspected the source code of the target page and I found this:

config={
"plugins":{
"rtmp":{
"url":"flowplayer.rtmp-3.2.3.swf","netConnectionUrl":"rtmpe://something.com/rtmp"}
,"secure":{
"url":"flowplayer.securestreaming-3.2.3.swf","token":"#ed%h0#w@1"}
}
,"clip":{
"autoPlay":true,"autoBuffering":true,"provider":"rtmp","connectionProvider":"secure","live":true,"url":"63e5c27b9dc03e8d51254f7cbdae96fec5b686a3","scaling":"fit"}
,"playerId":"player","playlist":[{
"autoPlay":true,"autoBuffering":true,"provider":"rtmp","connectionProvider":"secure","live":true,"url":"63e5c27b9dc03e8d51254f7cbdae96fec5b686a3","scaling":"fit"}
]}

The playpath above (63e5c27b9dc03e8d51254f7cbdae96fec5b686a3) seems encrypted somehow. I noticed this value changes everytime I login.

I tried using this command:
rtmpdump -r rtmpe://something.com/rtmp -y 63e5c27b9dc03e8d51254f7cbdae96fec5b686a3 -T "#ed%h0#w@1" -o 1.flv
...but no luck. I got:
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Also I tried using rtmpsrv and I got the same error as above.

Any help on how to capture these types of clips?

karlo2105
10-05-2012, 09:28 AM
I think you are missing -W parameter, SWF player.

svnpenn
10-05-2012, 03:33 PM
If you truly want definitive answers quickly and without
delay, please include link(s) to the web-page(s) with video(s)

stream-recorder.com/forum/announcement.php?f=4 (stream-recorder.com/forum/announcement.php?f=4)

Darwin222
10-08-2012, 02:38 AM
Unfortunatelly I'm not supposed to give my login details in public. If anyone is interested in helping me in private, I am willing to send $20 to his paypal if he finds the correct way to capture the stream.

svnpenn
10-08-2012, 05:18 AM
PM me

Darwin222
10-12-2012, 08:07 AM
I have uploaded the page over here: http://50.116.72.70/~rtmp/rtmp.html

It is however unlikely that the streaming will work for too long. The streaming works infinitely if you load it at the right time and you don't press stop. However it will not start if this time is passed.

Any help would be appreciated

Darwin222
10-15-2012, 02:42 AM
I have uploaded the page over here: http://50.116.72.70/~rtmp/rtmp.html

It is however unlikely that the streaming will work for too long. The streaming works infinitely if you load it at the right time and you don't press stop. However it will not start if this time is passed.

Any help would be appreciated
The streams are running right now.

svnpenn
10-15-2012, 03:25 AM
I can only get it to run with rtmpsuck

$ rtmpsuck
RTMP Proxy Server v2.4-47-gc26c541
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
Processing connect
app: securestreamingrtp
flashVer: WIN 11,4,402,278
swfUrl: http://webcast.uoa.gr/libs/www.flowplayer.org/flowplayer-3.2.7.swf
tcUrl: rtmpe://webcast.gunet.gr/securestreamingrtp
pageUrl: http://webcast.uoa.gr/live/live_slides.php?org=uoa&unit=di&room=amfith&
ipcamera=yes&
WARNING: Trying different position for server digest!
Playpath: 87a01f7e027efc03e7b47866044c01fdf9a971d3
Saving as: 87a01f7e027efc03e7b47866044c01fdf9a971d3
INFO: Metadata:
INFO: videocodecid avc1
INFO: width 1280.00
INFO: height 720.00
INFO: frameWidth 1280.00
INFO: frameHeight 720.00
INFO: displayWidth 1280.00
INFO: displayHeight 720.00
INFO: videodatarate 50000.00
INFO: audiochannels 1.00
INFO: audiosamplerate 16000.00
INFO: audiocodecid mp4a
INFO: audiodatarate 64.00
INFO: trackinfo:
INFO: timescale 90000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype H264
INFO: type video
INFO: profile-level-id 420029
INFO: sprop-parameter-sets Z0IAKeKQCgC3YC3AQEB4eJEV,aM48gA==
INFO: description {H264CodecConfigInfo: codec:H264, profile:Baseline
, level:4.1, frameSize:1280x720, displaySize:1280x720, PAR:1:1}
INFO: timescale 16000.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype mpeg4-generic
INFO: type audio
INFO: config 1408
INFO: description {AACFrame: codec:AAC, channels:1, frequency:16000,
samplesPerFrame:1024, objectType:LC}
INFO: rtpsessioninfo:
INFO: emailaddress NONE
INFO: name Media Presentation
INFO: origin - 1350281347215955 1350281347215955 IN IP4 88.197.
40.20
INFO: timing 0 0
INFO: protocolversion 0
INFO: attributes:
INFO: range npt=0.000000-

Darwin222
10-16-2012, 05:29 AM
The swf player used for the streaming is "http://webcast.uoa.gr/libs/www.flowplayer.org/flowplayer-3.2.7.swf". However it looks like there's a second swf player that manages the secure token:
<param value="config={
"plugins":{
"rtmp":{
"url":"flowplayer.rtmp-3.2.3.swf","netConnectionUrl":"rtmpe://webcast.gunet.gr/securestreamingrtp"}
,"secure":{
"url":"flowplayer.securestreaming-3.2.3.swf","token":"%23ed%25h0%23w@1"}
}
,"clip":{
"autoPlay":true,"autoBuffering":true,"provider":"rtmp","connectionProvider":"secure","live":true,"url":"ae50639515bac48420ea04335e67869484c91af8","scaling":"fit"}
,"playerId":"player","playlist":[{
"autoPlay":true,"autoBuffering":true,"provider":"rtmp","connectionProvider":"secure","live":true,"url":"ae50639515bac48420ea04335e67869484c91af8","scaling":"fit"}
]}
" name="flashvars">
Might that be the reason the stream is not captured correctly by rtmpdump?

svnpenn
10-16-2012, 09:51 AM
I have the answer, check your inbox.

RTMPDump v2.4-47-gc26c541
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: presetname Custom
INFO: creationdate Tue Oct 16 18:10:37 2012
INFO: videodevice o100vc.dll - Osprey Video Capture 1
INFO: framerate 12.00
INFO: width 768.00
INFO: height 576.00
INFO: videocodecid VP62
INFO: videodatarate 500.00
INFO: videokeyframe_frequency5.00
INFO: audiodevice Osprey Audio Capture
INFO: audiosamplerate 22050.00
INFO: audiochannels 1.00
INFO: audioinputvolume 75.00
INFO: audiocodecid .mp3
INFO: audiodatarate 48.00
10152.303 kB / 152.27 sec

svnpenn
10-16-2012, 08:42 PM
As requested, here is the command. If you have any problems feel free to reply in this thread or PM

rtmpdump -r "rtmpe://webcast.gunet.gr/securestreaming/z-di-uoa" -o "out.flv" -T "#ed%h0#w@1"

Darwin222
10-16-2012, 09:41 PM
As requested, here is the command. If you have any problems feel free to reply in this thread or PM
Could you tell me how did you find the location of the stream since there are other classrooms except "z-di-uoa" that I would like to capture as well.

Thanks

svnpenn
10-16-2012, 09:47 PM
Could you tell me how did you find the location of the stream since there are other classrooms except "z-di-uoa"

The site is down so I cant try it, but if I remember correct I believe I used RtmpDumpHelper (https://www.google.com/url?q=http://stream-recorder.com/forum/rtmpdumphelper-t12719.html&sa=U&ei=nlp-UK20DYjs2QWSuoGwDQ&ved=0CAcQFjAA&client=internal-uds-cse&usg=AFQjCNEtyN_ctKKhEzbKnub12ug3p_9kpA)with RtmpSuck (https://www.google.com/url?q=http://stream-recorder.com/forum/rtmpexplorer-rtmpsrv-rtmpsuck-rtmpdump-gui-windows-t10085.html&sa=U&ei=r1p-ULmxFMayqAHT34GwCQ&ved=0CBUQFjAH&client=internal-uds-cse&usg=AFQjCNEBdpo9lQl6AyVJTzGWZ_7rGw9z_w).