[rtmpdump] tnv.ru livestream failed to read RTMP packet header & NetStream.Play.UnpublishNotify

Azat Usmanov usmazat at yahoo.com
Mon Oct 4 00:10:14 CEST 2010


Hi everyone 
Iam trying to record a live stream for long time period like 25min  from a russian tv channel TNV  website  the page address is http://tnv.ru/online/640
sometimes rtmpdump gives me 
ERROR: RTMP_ReadPacket, failed to read RTMP packet header and when just closes the  connection.
here are my parameteres
 
rtmpdump -r "rtmp://83.229.211.162:80/live/tnv1200" -v 30 -V -o test2.flv -B 1500
here is what i get
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : 83.229.211.162
DEBUG: Port     : 80
DEBUG: Playpath : tnv1200
DEBUG: tcUrl    : rtmp://83.229.211.162:80/live
DEBUG: app      : live
DEBUG: StopTime      : 1500000 msec
DEBUG: live     : yes
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 : 1064061220
DEBUG: HandShake: FMS Version   : 3.5.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: RTMP_ClientPacket, received: invoke 240 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name:             fmsVer, STRING:     FMS/3,5,1,516>
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.Su
ccess>
DEBUG: Property: <Name:        description, STRING:     Connection succeeded.>
DEBUG: Property: <Name:     objectEncoding, NUMBER:     0.00>
DEBUG: Property: <Name:               data, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:            version, STRING:     3,5,1,516>
DEBUG: (object end)
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: tnv1200
DEBUG: Invoking FCSubscribe
DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onBWDone>
DEBUG: Invoking _checkbw
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=1500000, sending play: tnv1200
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: RTMP_ClientPacket, received: invoke 35 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_onbwcheck>
DEBUG: Invoking _result
DEBUG: RTMP_ClientPacket, received: invoke 119 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:     error>
DEBUG: Property: <Name:               code, STRING:     NetConnection.Call.Faile
d>
DEBUG: Property: <Name:        description, STRING:     Method not found (FCSubs
cribe).>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG: RTMP_ClientPacket, received: invoke 57 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onBWDone>
DEBUG: RTMP_ClientPacket, received: invoke 20 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result id 0 without matching request
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 1
DEBUG: RTMP_ClientPacket, received: invoke 156 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:     status>
DEBUG: Property: <Name:               code, STRING:     NetStream.Play.Reset>
DEBUG: Property: <Name:        description, STRING:     Playing and resetting tn
v1200.>
DEBUG: Property: <Name:            details, STRING:     tnv1200>
DEBUG: Property: <Name:           clientid, STRING:     uUqIgtcN>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Reset
DEBUG: RTMP_ClientPacket, received: invoke 150 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:     status>
DEBUG: Property: <Name:               code, STRING:     NetStream.Play.Start>
DEBUG: Property: <Name:        description, STRING:     Started playing tnv1200.
>
DEBUG: Property: <Name:            details, STRING:     tnv1200>
DEBUG: Property: <Name:           clientid, STRING:     uUqIgtcN>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Start
Starting Live Stream
For duration: 1500.000 sec
DEBUG: RTMP_ClientPacket, received: notify 24 bytes
DEBUG: (object begin)
DEBUG: (object end)
DEBUG: RTMP_ClientPacket, received: notify 525 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name:             author, STRING:     >
DEBUG: Property: <Name:          copyright, STRING:     >
DEBUG: Property: <Name:        description, STRING:     >
DEBUG: Property: <Name:           keywords, STRING:     >
DEBUG: Property: <Name:             rating, STRING:     >
DEBUG: Property: <Name:              title, STRING:     >
DEBUG: Property: <Name:         presetname, STRING:     Custom>
DEBUG: Property: <Name:       creationdate, STRING:     Sun Oct 03 23:39:16 2010
>
DEBUG: Property: <Name:        videodevice, STRING:     Decklink Video Capture>
DEBUG: Property: <Name:          framerate, NUMBER:     25.00>
DEBUG: Property: <Name:              width, NUMBER:     640.00>
DEBUG: Property: <Name:             height, NUMBER:     480.00>
DEBUG: Property: <Name:       videocodecid, STRING:     avc1>
DEBUG: Property: <Name:      videodatarate, NUMBER:     900.00>
DEBUG: Property: <Name:           avclevel, NUMBER:     41.00>
DEBUG: Property: <Name:         avcprofile, NUMBER:     66.00>
DEBUG: Property: <Name: videokeyframe_freq, NUMBER:     5.00>
DEBUG: Property: <Name:        audiodevice, STRING:     Decklink Audio Capture>
DEBUG: Property: <Name:    audiosamplerate, NUMBER:     44100.00>
DEBUG: Property: <Name:      audiochannels, NUMBER:     1.00>
DEBUG: Property: <Name:   audioinputvolume, NUMBER:     75.00>
DEBUG: Property: <Name:       audiocodecid, STRING:     .mp3>
DEBUG: Property: <Name:      audiodatarate, NUMBER:     96.00>
DEBUG: (object end)
DEBUG: (object end)
INFO: Metadata:
INFO:   author
INFO:   copyright
INFO:   description
INFO:   keywords
INFO:   rating
INFO:   title
INFO:   presetname            Custom
INFO:   creationdate          Sun Oct 03 23:39:16 2010
INFO:   videodevice           Decklink Video Capture
INFO:   framerate             25.00
INFO:   width                 640.00
INFO:   height                480.00
INFO:   videocodecid          avc1
INFO:   videodatarate         900.00
INFO:   avclevel              41.00
INFO:   avcprofile            66.00
INFO:   videokeyframe_frequency5.00
INFO:   audiodevice           Decklink Audio Capture
INFO:   audiosamplerate       44100.00
INFO:   audiochannels         1.00
INFO:   audioinputvolume      75.00
INFO:   audiocodecid          .mp3
INFO:   audiodatarate         96.00
0.608 kB / 0.00 sec
DEBUG: ignoring too small video packet: size: 2
542.930 kB / 0.00 sec
DEBUG: ignoring too small video packet: size: 2
DEBUG: ignoring too small audio packet: size: 0
2978.459 kB / 19.72 sec
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
3013.834 kB / 19.98 sec
DEBUG: RTMP_Read returned: 0
Download complete
DEBUG: Closing connection.
 
i tried supplying rtmpdumpwith -W parameter and a -f to see if thay helps but it made no differense still received  failed to read RTMP packet header simetime during recording process
 
i have also tried  to record for a longer time 3010sec
with the same parameters as above(only changed the -B parameter) 
and  got no  "failed to read RTMP packet header" error this time 
however rtmpdump stops after receving NetStream.Play.UnpublishNotify 
although i can see the stream in my browser just fine
is there an option for rtmpdump to wait  n seconds and check if the stream is availible again,
or will this kind of option be avaliable in future?

 
 
 
 
 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20101003/1adac367/attachment.htm>


More information about the rtmpdump mailing list