PDA

View Full Version : can't capture wowz/rtmp stream


naskoboy
07-18-2013, 08:27 PM
Hi folks,
I am trying to capture this TV (http://novatv.bg/live/) with rtmpdump but get an "failed to read RTMP packet header" error (details below).
Help very much appreciated.
pls help


"C:\users\adam\My Apps\rtmpdump.exe" -v -r rtmp://pri.cdn.bg:2060/fls/_definst_/ntv_1.stream --verbose -
-stop 14400 --timeout 240 -o "D:\temp\NovaTV__test5.flv" -p "http://novatv.bg/live"
RTMPDump v2.4 GIT-2011-07-11 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : pri.cdn.bg
DEBUG: Port : 2060
DEBUG: Playpath : ntv_1.stream
DEBUG: tcUrl : rtmp://pri.cdn.bg:2060/fls/_definst_
DEBUG: pageUrl : http://novatv.bg/live
DEBUG: app : fls/_definst_
DEBUG: StopTime : 14400000 msec
DEBUG: live : yes
DEBUG: timeout : 240 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 96850052
DEBUG: HandShake: FMS Version : 3.0.1.1
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 349 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,5,7,7009>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: Property: <Name: mode, NUMBER: 1.00>
DEBUG: (object end)
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: data, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: version, STRING: 3,5,7,7009>
DEBUG: (object end)
DEBUG: Property: <Name: clientid, NUMBER: 382531229.00>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
DEBUG: Property: <Name: secureToken, STRING: e1b7e6ab1c625c8cf9c3165296a299f0daf4ea16f6b015832f 9c7ab24019071a
b0402ddb>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking createStream
DEBUG: FCSubscribe: ntv_1.stream
DEBUG: Invoking FCSubscribe
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=14400000, sending play: ntv_1.stream
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.


URLSnooper reports this URLs being called when opening the TV page

http://pagead2.googlesyndication.com/pagead/TemplateContainer.swf
http://pagead2.googlesyndication.com/pagead/gadgets/components/ryo.swf
http://pagead2.googlesyndication.com/pagead/gadgets/blank_V1/blank_V1_spec_300_250.swf
http://pagead2.googlesyndication.com/pagead/gadgets/fonts/arial_LATIN_ALT.swf
http://i.cdn.bg/eflash/jwNTV/jplayer.swf
rtmp://e
wowz://pri.cdn.bg:2060/fls/_definst_/ntv_1.stream

chap
07-18-2013, 11:07 PM
rtmpdump -r "rtmp://e1.cdn.bg:2060/fls" -a "fls" -f "WIN 11,7,700,224" -W "http://i.cdn.bg/eflash/jwNTV/jplayer.swf" -p "http://i.cdn.bg/live/0OmMKJ4SgY" -y "ntv_1.stream" -o "2013-07-19_08-03-00_ntv_1.stream.flv" -T "N0v4TV6#2"

naskoboy
07-21-2013, 05:00 PM
chap, you are genius :)
it works !!!
If you have few minutes could you pls explain to us what these magical parameters mean and how did you figure them out? Did you use rtmpsrv ? Is there a manual that can teach me ?
I hope that once I get the handle of it, next time I wouldn't waste your time but would figure it out myself.
thanks a lot !

chap
07-21-2013, 05:16 PM
use rtmpsusk
RTMP Proxy Server v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Processing connect
app : fls
flashVer : WIN 11,7,700,224
swfUrl : http://i.cdn.bg/eflash/jwNTV/jplayer.swf
tcUrl : rtmp://e1.cdn.bg:2060/fls
pageUrl : http://i.cdn.bg/live/0OmMKJ4SgY
live : no
Playpath : ntv_1.stream
Saving as : 2013-07-22_02-15-32_ntv_1.stream.flv
INFO: Metadata:
INFO: audiochannels 2.00
INFO: audiosamplerate 44100.00
INFO: audiocodecid mp4a
INFO: videocodecid avc1
INFO: width 768.00
INFO: height 576.00
INFO: frameWidth 720.00
INFO: frameHeight 576.00
INFO: displayWidth 768.00
INFO: displayHeight 576.00
INFO: framerate 25.00
INFO: trackinfo:
INFO: timescale 0.00
INFO: language eng
INFO: sampledescription:
INFO: type audio
INFO: config 1210
INFO: description {AACFrame: codec:AAC, channels:2, frequency:4410
0, samplesPerFrame:1024, objectType:LC}
INFO: timescale 0.00
INFO: language eng
INFO: sampledescription:
INFO: type video
INFO: profile-level-id 640029
INFO: sprop-parameter-sets Z2QAKazZQLQSb/wAQAA8QAAAAwBAAAAMo8YMZYA=,aO6yyLA
=
INFO: description {H264CodecConfigInfo: codec:H264, profile:High,
level:4.1, frameSize:720x576, displaySize:768x576, frameRate:25.0, PAR:16:15}
INFO: rtpsessioninfo:
INFO: connectiondata IN IP4 0.0.0.0
INFO: name WowzaMediaServer
INFO: origin - -316259410 -316259410 IN IP4 127.0.0.1
INFO: timing 0 0
INFO: protocolversion 0
INFO: attributes:
INFO: range npt=now-
WARNING: ignoring too small audio packet: size: 0

naskoboy
02-23-2014, 01:38 PM
Hi chap,
Hope you are doing well despite turbulence in your country.
Sorry for bugging you again but something in that stream (http://novatv.bg/live) changed and I can't figure out the rigbht rtmp parameters (can't make rtmpsuck work).

Help appreciated.