Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

rtmp server requested close on zerocast stream

(http://stream-recorder.com/forum/showthread.php?t=19316)

4r1y4n 01-30-2015 03:32 PM

rtmp server requested close on zerocast stream


 
Hi
I'm trying to dump this stream:
http://tv4embed.com/usa/NBC-stream1.html

I extracted parameters like this (using both Wireshark & rtmpsrv):
Code:

rtmpdump -V -r 'rtmp://rtmp.zerocast.tv:1935/live?t=54cbecd3c5127/' -a 'live?t=54cbecd3c5127/' -f 'LNX 16,0,0,296' -W 'http://cdn.zerocast.tv/player/jwplayer.flash.swf' -p 'http://zerocast.in/embed.php?a=653&id=&width=658&height=430&autostart=true&strech=' -y '3GdoAHRAxgZNzmQZL29l'  -T '8964316ec8772dfa' -o out.flv
But i'm getting "rtmp server requested close" !
I tried with both of original rtmpdump & K-S-V version.

Here is the output:
Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host    : rtmp.zerocast.tv
DEBUG: Parsed app    : live?t=54cbecd3c5127
DEBUG: Protocol : RTMP
DEBUG: Hostname : rtmp.zerocast.tv
DEBUG: Port    : 1935
DEBUG: Playpath : 3GdoAHRAxgZNzmQZL29l
DEBUG: tcUrl    : rtmp://rtmp.zerocast.tv:1935/live?t=54cbecd3c5127/
DEBUG: swfUrl  : http://cdn.zerocast.tv/player/jwplayer.flash.swf
DEBUG: pageUrl  : http://zerocast.in/embed.php?a=653&id=&width=658&height=430&autostart=true&strech=
DEBUG: app      : live?t=54cbecd3c5127/
DEBUG: flashVer : LNX 16,0,0,296
DEBUG: live    : no
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: 61 95 5f 46 f5 d1 d3 0d eb e5 a2 86 fb 42 d2 54
DEBUG: bf 54 7a 05 12 24 92 f0 ed 22 f1 c0 0a 71 e8 56
DEBUG: SWFSize  : 396979
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 03
DEBUG: HandShake: Client digest offset: 417
DEBUG: HandShake: Initial client digest:
DEBUG: 5c 04 5a 66 58 ff a0 40 33 fe 35 3d 4e c3 59 90
DEBUG: 55 d0 6f ff 88 6c e9 a4 d4 32 fd 5e 7e f4 f6 e9
DEBUG: HandShake: Type Answer  : 03
DEBUG: HandShake: Server Uptime : 96850052
DEBUG: HandShake: FMS Version  : 3.0.1.1
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: 9e ed a0 e9 fc b3 3f d8 7e 08 1f 41 80 75 a1 bb
DEBUG: a5 5c ec c1 5f 4c 3d f0 27 7f 69 ae b0 f9 45 47
DEBUG: HandShake: Client signature calculated:
DEBUG: 09 d2 a0 ab 5d fa ef 8a 61 b0 f7 ed c4 d2 3c b1
DEBUG: 22 31 c9 7b ef 01 43 b5 76 d4 53 b5 b9 8d 49 20
DEBUG: HandShake: Server sent signature:
DEBUG: 82 bb 89 20 bc d1 32 66 cc f9 a3 03 df 1b 60 6c
DEBUG: a3 16 a4 7a 0f 11 4a b2 e3 e9 95 db df 37 83 27
DEBUG: HandShake: Digest key:
DEBUG: fb 28 59 2a 65 8b 58 8b a5 0c df 1d 8f 0a 85 7e
DEBUG: 5a 27 63 a5 c6 c5 c7 58 c0 9e 45 ed 32 22 b1 6c
DEBUG: HandShake: Signature calculated:
DEBUG: 82 bb 89 20 bc d1 32 66 cc f9 a3 03 df 1b 60 6c
DEBUG: a3 16 a4 7a 0f 11 4a b2 e3 e9 95 db df 37 83 27
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 2500000
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG: HandleCtrl, received ctrl, type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
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.

My IP is definitely registered with server (as the stream is playing in browser)
What is the problem?
Is there any AMF data missed? or what?

Thanks

biezom 01-30-2015 03:36 PM

Re: rtmp server requested close on zerocast stream


 
read this
http://stream-recorder.com/forum/usa...ne-t19312.html
and this
http://stream-recorder.com/forum/ple...lp-t19307.html

4r1y4n 01-30-2015 03:58 PM

Re: rtmp server requested close on zerocast stream


 
Thank you very much. got it.

So I'm reading that variable with this:
Code:

wget -q -O- "http://zerocast.in/embed.php?a=653&id=&width=658&height=430&autostart=true&strech="|grep "file:" |sed 's#\s*file: .*t=\(\w*\)/.*#\1#'
So now this command works like charm:
Code:

t=$(wget -q -O- "http://zerocast.in/embed.php?a=653&id=&width=658&height=430&autostart=true&strech="|grep "file:" |sed 's#\s*file: .*t=\(\w*\)/.*#\1#') && rtmpdump -V -r "rtmp://rtmp.zerocast.tv:1935/live?t=$t/" -a "live?t=$t/" -f 'LNX 16,0,0,296' -W 'http://cdn.zerocast.tv/player/jwplayer.flash.swf' -p 'http://tv4embed.com/usa/NBC-stream1.html' -y '3GdoAHRAxgZNzmQZL29l'  -T '8964316ec8772dfa' -o out.flv

biezom 01-30-2015 04:10 PM

Re: rtmp server requested close on zerocast stream


 
Congratulations beautiful work, i bow

Carudo 04-11-2015 11:47 AM

Re: rtmp server requested close on zerocast stream


 
Hi! I'm a fresher to video stream recording. I've already tried to launch wireshark a couple of times, but was unable to find any necessary command arguments. May somebody say me what steps should I do to record this NBC channel?

4r1y4n 04-13-2015 10:50 AM

Re: rtmp server requested close on zerocast stream


 
Quote:

Originally Posted by Carudo (Post 75639)
Hi! I'm a fresher to video stream recording. I've already tried to launch wireshark a couple of times, but was unable to find any necessary command arguments. May somebody say me what steps should I do to record this NBC channel?

Hi
Use rtmpsrv and/or rtmpsuck to extract parameters:
for linux check this out:
http://stream-recorder.com/forum/use...nux-t7661.html

for Windows I believe simply running those commands should work.
http://stream-recorder.com/forum/tut...ple-t6325.html

Using wireshark needs more skills in reading packets

passa1 05-10-2015 05:37 PM

Re: rtmp server requested close on zerocast stream


 
Zerocast new token please

biezom 05-10-2015 06:21 PM

Re: rtmp server requested close on zerocast stream


 
Quote:

Originally Posted by passa1 (Post 76504)
Zerocast new token please

for
Code:

http://p.jwpcdn.com/6/12/jwplayer.flash.swf
Code:

%Zrey(nKa@#Z

passa1 05-11-2015 10:40 AM

Re: rtmp server requested close on zerocast stream


 
Yes thank you if not i did have it.The problem is this site is using different players with different token i suppose.at moment bein sport us on that site is completely different of ABC in player.

biezom 05-11-2015 03:15 PM

Re: rtmp server requested close on zerocast stream


 
Quote:

Originally Posted by passa1 (Post 76537)
Yes thank you if not i did have it.The problem is this site is using different players with different token i suppose.at moment bein sport us on that site is completely different of ABC in player.

post an example or the player


All times are GMT -6. The time now is 03:58 PM.