PDA

View Full Version : rtmp server requested close on zerocast stream


4r1y4n
01-30-2015, 03:32 PM
Hi
I'm trying to dump this stream:
http://tv4embed.com/usa/NBC-stream1.html

I extracted parameters like this (using both Wireshark & rtmpsrv):
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:
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
read this
http://stream-recorder.com/forum/usa-channels-online-t19312.html
and this
http://stream-recorder.com/forum/please-help-t19307.html

4r1y4n
01-30-2015, 03:58 PM
read this
http://stream-recorder.com/forum/usa-channels-online-t19312.html
and this
http://stream-recorder.com/forum/please-help-t19307.html

Thank you very much. got it.

So I'm reading that variable with this:
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:
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
Congratulations beautiful work, i bow

Carudo
04-11-2015, 11:47 AM
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
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-rtmpdump-rtmpsrv-linux-t7661.html

for Windows I believe simply running those commands should work.
http://stream-recorder.com/forum/tutorial-simply-use-rtmpsrv-and-example-t6325.html

Using wireshark needs more skills in reading packets

passa1
05-10-2015, 05:37 PM
Zerocast new token please

biezom
05-10-2015, 06:21 PM
Zerocast new token please

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

%Zrey(nKa@#Z

passa1
05-11-2015, 10:40 AM
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
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

biezom
05-12-2015, 12:14 AM
token is dynamic and in the app in red
so it works just once


http://zerocast.tv/channels/embeds/abc.php

the first time it works
rtmpdump -r "rtmp://rtmp.zerocast.tv:1935/live" -a "live?t=555197a16191e/" -f "WIN 17,0,0,134" -W "http://p.jwpcdn.com/6/12/jwplayer.flash.swf" -p "http://zerocast.tv/embed.php?a=1&id=&width=640&height=480&autostart=true&strech=" --live -y "rGCi7bg0Qxvs8q7Sl13l" -o "rGCi7bg0Qxvs8q7Sl13l.flv"
RTMPDump v2.4 GIT-2015-01-15 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO: duration 0.00
INFO: width 640.00
INFO: height 480.00
INFO: videodatarate 650.00
INFO: framerate 30.33
INFO: videocodecid 7.00
INFO: audiodatarate 32.00
INFO: audiosamplerate 22050.00
INFO: audiosamplesize 16.00
INFO: stereo TRUE
INFO: audiocodecid 10.00
INFO: presetname Custom
INFO: creationdate Fri May 08 12:50:22 2015
INFO: videodevice iGrabber Device [4]
INFO: avclevel 30
INFO: avcprofile 66
INFO: videokeyframe_frequency 2
INFO: audiodevice Line (6- USB Device)
INFO: audiochannels 2
INFO: audioinputvolume 75
INFO: encoder Lavf55.26.100
INFO: filesize 0.00
3338.665 kB / 41.24 sec


the second time


rtmpdump -r "rtmp://rtmp.zerocast.tv:1935/live" -a "live?t=555197a16191e/" -f "WIN 17,0,0,134" -W "http://p.jwpcdn.com/6/12/jwplayer.flash.swf" -p "http://zerocast.tv/embed.php?a=1&id=&width=640&height=480&autostart=true&strech=" --live -y "rGCi7bg0Qxvs8q7Sl13l" -o "rGCi7bg0Qxvs8q7Sl13l.flv"
RTMPDump v2.4 GIT-2015-01-15 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server requested close

passa1
05-18-2015, 03:50 PM
This stream still not working for me.I try everything

URL: rtmp://rtmp.zerocast.tv:1935/live?t=555a5cdc30a10/<playpath>abcfam <swfUrl>http://p.jwpcdn.com/6/12/jwplayer.flash.swf <pageUrl>http://zerocast.tv/embed.php?a=1852&id=&width=640&height=480&autostart=true&strech= <objectEncoding>

it from:
http://www.ibrod.tv/abc-family-tv-online.html

Please.tx