FMS can't continue to record stream with record mode "append".
Hi there,
I develop failover fms application with server-side action script. But i have a problem that FMS can't continue to record stream with record mode "append".
Environment: FMS 4.5.1 r484 on CentOS 5.5/6.0
Goals:
I have 2 same data streams in failover application and republish primary to livepkgr application.
I have to store of last 10 hours intact recorded video (DVR).
Failover app logic:
1. I create NetConnection and NetStream to livepackager;
2. When primary stream is connected it attach the primary stream to livePackager NetStream
3. If primary stream is disconnected it reattach the backup stream to livePackager NetStream
Problem:
I have testing environment. It stop primary stream every 5 min, and started primary stream 5 min after stopping.
It work's, fine, but after a few hours testing LIVEPACKAGER falls.
It can't record a stream, NetStream.Record.Start -> NetStream.Record.NoAccess -> NetStream.Record.Stop
Search a solution:
I try to relaunch recording process and have no success.
try to shutdown/start livepackager, it's same,
try to restart server, same no success.
I cant stream.clear() or record with mode "record" cause it clears my dvr cache,
I cant clean stream directory in livepackager application.
Core.00.log
For example 1,
2012-04-11 15:22:01 3544 (e)2611178 Error from libf4f.so: f4fAdaptor::record failed. Error: Inconsistent fragment numbers. -
2012-04-11 15:22:01 3544 (e)2611082 Failed to record 1tvtest2. -
2012-04-11 15:22:01 3544 (e)2611178 Error from libf4f.so: [Fragmenter] [1tvtest3] Error in completeFragment(): Incorrect fragment number. Expected 1039930. Got 180984
. -
2012-04-11 15:22:01 3544 (e)2611178 Error from libf4f.so: f4fAdaptor::record failed. Error: Inconsistent fragment numbers. -
2012-04-11 15:22:01 3544 (e)2611082 Failed to record 1tvtest3. -
2012-04-11 15:22:01 3544 (e)2611178 Error from libf4f.so: [Fragmenter] [1tvtest1] Error in completeFragment(): Incorrect fragment number. Expected 1039930. Got 180984
. -
2012-04-11 15:22:01 3544 (e)2611178 Error from libf4f.so: f4fAdaptor::record failed. Error: Inconsistent fragment numbers. -
2012-04-11 15:22:01 3544 (e)2611082 Failed to record 1tvtest1. -
2012-04-11 15:22:03 3544 (w)2611179 Warning from libf4f.so: [Utils] [1tvtest1] Discarding all Media Messages received till we receive the ATC message
.
For example 2,
2012-04-11 12:59:56 3609 (e)2611178 Error from libf4f.so: F4V error: 1280. -
2012-04-11 12:59:56 3609 (e)2611423 Failed to record 1tvtest1 (Unknown Error).
