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).
Also you can catch same error ( if you don't set MaxRecordGap of Recording section in event.xml )
2012-04-11 16:56:26 8840 (w)2611173 This is a rollover scenario -
2012-04-11 16:56:27 8840 (w)2611179 Warning from libf4f.so: [Utils] [1tvtest3] Will keep discarding all Media Messages untill we
get first Video Keyframe Message
. -
2012-04-11 16:56:27 8840 (w)2611179 Warning from libf4f.so: [Utils] [1tvtest3] Discarded all queued Media Messages received befo
re first Video Keyframe Message
. -
2012-04-11 16:56:27 8840 (e)2611178 Error from libf4f.so: [Utils] [1tvtest3] [1tvtest3] Restarting the recording after 2.000000
days is not allowed. Stopping the recording. Please change the config parameter<MaxRestartGap> under <Recording> in event.xml if you would like to i
ncrease this
. -
2012-04-11 16:56:27 8840 (e)2611178 Error from libf4f.so: f4fAdaptor::record failed. Error: Failed to push media message. -
2012-04-11 16:56:27 8840 (e)2611082 Failed to record 1tvtest3. -
2012-04-11 16:56:27 8840 (e)2611178 Error from libf4f.so: f4fAdaptor::record failed. Error: Failed to push media message. -
2012-04-11 16:56:29 8840 (w)2611179 Warning from libf4f.so: [Utils] [1tvtest3] Discarding all Media Messages received till we re
ceive the ATC message
. -
2012-04-11 16:56:29 8840 (w)2611173 This is a rollover scenario -
2012-04-11 16:56:30 8840 (w)2611179 Warning from libf4f.so: [Utils] [1tvtest3] Will keep discarding all Media Messages untill we
get first Video Keyframe Message
. -
It's important.
I publish multibitrate streams ( 3 primary and 3 backup ) to my failover application,
It have 3 multibitrate NetStreams to LIVEPKGR.
It reattach primary or backup stream to one NetStream in my Failover application..
I set syncronization true in FMLE, but I dont know what's happenen inside NetStream reattach process.
core.00.log
| 2012-04-12 | 15:08:08 | 2841 | (i)2611173 | Metadata not available before the flush of first segment. Default metadata recorded for stream /opt/adobe/fms/applications/livepkgr/streams/_definst_/1tvtest2 | - |
| 2012-04-12 | 15:08:08 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest2] Discarding all Media Messages received till we receive the ATC message | |
| . | - | ||||
| 2012-04-12 | 15:08:08 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest2] Will keep discarding all Media Messages untill we get first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:08:08 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest3] Discarding all Media Messages received till we receive the ATC message | |
| . | - | ||||
| 2012-04-12 | 15:08:08 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest3] Will keep discarding all Media Messages untill we get first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:13:09 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest1] Discarding all Media Messages received till we receive the ATC message | |
| . | - | ||||
| 2012-04-12 | 15:13:09 | 2841 | (w)2611173 | This is a rollover scenario | - |
| 2012-04-12 | 15:13:09 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest1] Will keep discarding all Media Messages untill we get first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:13:09 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest2] Discarding all Media Messages received till we receive the ATC message | |
| . | - | ||||
| 2012-04-12 | 15:13:09 | 2841 | (w)2611173 | This is a rollover scenario | - |
| 2012-04-12 | 15:13:09 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest2] Will keep discarding all Media Messages untill we get first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:13:09 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest3] Discarding all Media Messages received till we receive the ATC message | |
| . | - | ||||
| 2012-04-12 | 15:13:09 | 2841 | (w)2611173 | This is a rollover scenario | - |
| 2012-04-12 | 15:13:09 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest3] Will keep discarding all Media Messages untill we get first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:13:10 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest1] Discarded all queued Media Messages received before first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:13:10 | 2841 | (e)2611178 | Error from libf4f.so: [Utils] [1tvtest1] [1tvtest1] Restarting the recording after 2.000000 days is not allowed. Stopping the recording. Please change the config parameter<MaxRestartGap> under <Recording> in event.xml if you would like to increase this | |
| . | - | ||||
| 2012-04-12 | 15:13:10 | 2841 | (e)2611178 | Error from libf4f.so: f4fAdaptor::record failed. Error: Failed to push media message. | - |
| 2012-04-12 | 15:13:10 | 2841 | (e)2611082 | Failed to record 1tvtest1. | - |
| 2012-04-12 | 15:13:10 | 2841 | (e)2611178 | Error from libf4f.so: f4fAdaptor::record failed. Error: Failed to push media message. | - |
| 2012-04-12 | 15:13:10 | 2841 | (w)2611428 | Failed to record post context message for 1tvtest1. | - |
| 2012-04-12 | 15:13:10 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest2] Discarded all queued Media Messages received before first Video Keyframe Message | |
| . | - | ||||
| 2012-04-12 | 15:13:10 | 2841 | (e)2611178 | Error from libf4f.so: [Utils] [1tvtest2] [1tvtest2] Restarting the recording after 2.000000 days is not allowed. Stopping the recording. Please change the config parameter<MaxRestartGap> under <Recording> in event.xml if you would like to increase this | |
| . | - | ||||
| 2012-04-12 | 15:13:10 | 2841 | (e)2611178 | Error from libf4f.so: f4fAdaptor::record failed. Error: Failed to push media message. | - |
| 2012-04-12 | 15:13:10 | 2841 | (e)2611082 | Failed to record 1tvtest2. | - |
| 2012-04-12 | 15:13:10 | 2841 | (e)2611178 | Error from libf4f.so: f4fAdaptor::record failed. Error: Failed to push media message. | - |
| 2012-04-12 | 15:13:10 | 2841 | (w)2611428 | Failed to record post context message for 1tvtest2. | - |
| 2012-04-12 | 15:13:10 | 2841 | (w)2611179 | Warning from libf4f.so: [Utils] [1tvtest3] Discarded all queued Media Messages received before first Video Keyframe Messag |
Got errors under windows FMS after 2 hours.
2012-04-12 18:27:31 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:31 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:35 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:36 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:40 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:41 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:46 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:47 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:53 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:54 4292 (w)2611179 Warning from libf4f.dll: Tried to record fragment w/ no keyframe. - 2012-04-12 18:27:54 4292 (e)2611363 Server detected a backward timestamp from 9406559 to 9114639 in file: C:\Program Files\Adobe\Flash Media Server 4.5\applications\livepkgr\streams\_definst_\1tvtest1 - 2012-04-12 18:27:54 4292 (e)2611363 Server detected a backward timestamp from 6477783 to 6186023 in file: C:\Program Files\Adobe\Flash Media Server 4.5\applications\livepkgr\streams\_definst_\1tvtest2 - 2012-04-12 18:27:54 4292 (e)2611363 Server detected a backward timestamp from 6477713 to 6185953 in file: C:\Program Files\Adobe\Flash Media Server 4.5\applications\livepkgr\streams\_definst_\1tvtest3 - 2012-04-12 18:28:07 4292 (e)2611178 Error from libf4f.dll: F4V error: 1280. - 2012-04-12 18:28:07 4292 (e)2611423 Failed to record 1tvtest2 (Unknown Error). - 2012-04-12 18:28:07 4292 (e)2611178 Error from libf4f.dll: F4V error: 1280. - 2012-04-12 18:28:07 4292 (e)2611423 Failed to record 1tvtest3 (Unknown Error). - 2012-04-12 18:28:17 4292 (e)2611178 Error from libf4f.dll: F4V error: 1280. - 2012-04-12 18:28:17 4292 (e)2611423 Failed to record 1tvtest2 (Unknown Error). - 2012-04-12 18:28:18 4292 (e)2611178 Error from libf4f.dll: F4V error: 1280. - 2012-04-12 18:28:18 4292 (e)2611423 Failed to record 1tvtest3 (Unknown Error). - 2012-04-12 18:28:28 4292 (e)2611178 Error from libf4f.dll: F4V error: 1280. - 2012-04-12 18:28:28 4292 (e)2611423 Failed to record 1tvtest2 (Unknown Error). - 2012-04-12 18:28:28 4292 (e)2611178 Error from libf4f.dll: F4V error: 1280. -
North America
Europe, Middle East and Africa
Asia Pacific