Thu 19 Nov 2009 11:36:47 AM UTC, original submission:
hey,
if i specify the timeout option with some value, lets say 10 sec, it doesnt do what i expect it to do, timing out and exiting. Instead it tries every $timeout seconds to resume the stream.
WARNING: AMF_LONG_STRING not tested!
DEBUG: Property: NULL
DEBUG: HandleInvoke, server invoking <_onbwcheck>
DEBUG: Invoking _result
206.218 kB / 1.04 sec
DEBUG: HandlePacket, received: invoke 215077 bytes
WARNING: AMF_LONG_STRING not tested!
DEBUG: Property: NULL
DEBUG: HandleInvoke, server invoking <_onbwcheck>
DEBUG: Invoking _result
DEBUG: HandlePacket, received: invoke 40 bytes
DEBUG: Property: NULL
DEBUG: HandleInvoke, server invoking <_onbwdone>
1600.061 kB / 14.76 sec
DEBUG: HandleCtrl, received ctrl. type: 6, len: 6
DEBUG: HandleCtrl, Ping 225677132
DEBUG: sending ctrl. type: 0x0007
2637.066 kB / 23.68 sec
WARNING: ignoring too small video packet: size: 5
WARNING: ignoring too small audio packet: size: 0
WARNING: ignoring too small audio packet: size: 0
WARNING: ignoring too small audio packet: size: 0
WARNING: ignoring too small audio packet: size: 0
WARNING: ignoring too small audio packet: size: 0
WARNING: ignoring too small audio packet: size: 0
DEBUG: HandlePacket, received: invoke 161 bytes
DEBUG: Property: NULL
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetStream.Play.UnpublishNotify>
DEBUG: Property: <Name: description, STRING: dasdasds@12345 is now unpublished.>
DEBUG: Property: <Name: clientid, STRING: n7dasds>
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.UnpublishNotify
DEBUG: HandlePacket, received: invoke 100 bytes
DEBUG: Property: NULL
DEBUG: Property: <Name: code, STRING: NetStream.Play.Stop>
DEBUG: Property: <Name: description, STRING: sportcast_scout_08@12985>
DEBUG: HandleInvoke, server invoking <onFCUnsubscribe>
DEBUG: FillBuffer, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
DEBUG: Setting buffer time to: 36000000ms
INFO: Connection timed out, trying to resume.
DEBUG: Invoking pause
DEBUG: Invoking pause
Starting Live Stream
For duration: 120.000 sec
DEBUG: HandlePacket, received: invoke 178 bytes
DEBUG: Property: NULL
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetStream.Pause.Notify>
DEBUG: Property: <Name: description, STRING: Pausing sportcast_scout_08@12985.>
DEBUG: Property: <Name: details, STRING: sportcast_scout_08@12985>
DEBUG: Property: <Name: clientid, STRING: n7D4kWgk>
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Pause.Notify
DEBUG: FillBuffer, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
DEBUG: Setting buffer time to: 36000000ms
INFO: Connection timed out, trying to resume.
DEBUG: Invoking pause
DEBUG: Invoking pause
Starting Live Stream
For duration: 120.000 sec
DEBUG: FillBuffer, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
DEBUG: Setting buffer time to: 36000000ms
INFO: Connection timed out, trying to resume.
DEBUG: Invoking pause
DEBUG: Invoking pause
Starting Live Stream
For duration: 120.000 sec
DEBUG: FillBuffer, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
DEBUG: Setting buffer time to: 36000000ms
INFO: Connection timed out, trying to resume.
DEBUG: Invoking pause
DEBUG: Invoking pause
Starting Live Stream
For duration: 120.000 sec
DEBUG: FillBuffer, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
DEBUG: Setting buffer time to: 36000000ms
INFO: Connection timed out, trying to resume.
DEBUG: Invoking pause
DEBUG: Invoking pause
Starting Live Stream
For duration: 120.000 sec
DEBUG: FillBuffer, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
DEBUG: Setting buffer time to: 36000000ms
INFO: Connection timed out, trying to resume.
DEBUG: Invoking pause
DEBUG: Invoking pause
Starting Live Stream
For duration: 120.000 sec
^CCaught signal: 2, cleaning up, just a second...
DEBUG: FillBuffer, recv returned -1. GetSockError(): 4 (Interrupted system call)
ERROR: ReadPacket, failed to read RTMP packet header
DEBUG: WriteStream returned: -1
Download may be incomplete (downloaded about 0.00%), try resuming
DEBUG: Closing connection.
I started recording with
./flvstreamer -vV --timeout 10 -r rtmp://cp12345.live.edgefcs.net/live/dasdasd@12345 --stop 120 -o /space/test.flv
Above you see it recording the stream correctly. then i stopped the encoding and you see it looping every 10 seconds trying to resume. If i would specify timeout 40 it would loop every 40 seconds.
The other way around is also buggy. If i start recording while the streams is not sending data, it waits for recording. When i start encoding and sending data, flvstreamer doesnt recognize that and is not recording. This makes recording of live events very difficult because it expects data to be on the line when starting flvstreamer. In earlier Versions this worked fine. So i could just start flvstreamer whith "at" some time i want and let it record when the encoder starts.
|