Question
Server detected backward timestamp - Problem
Hi,
I'm using FMS 2 on my debian machine and a small application which records my webcam and sends it to the fms. But sometimes I got the following error in my core logs while I'm recording:
"server detected a backward timestamp from #number to #number in file foobar"
After some more messages of this kind the server didn't accept connections any more - I have to restart it.
I have googled a bit and found some hints about using clock adjusting tools like ntp together with fms - which can cause this problem - but I have disabled all clock adjusting tools on my machine - without any success.
There is a hint in the release notes for fms2:
[166039] Recording FLVs with inserted server-side data messages could result in backward timestamps in the FLV.
And here comes my question: What does that mean in detail? I'm quite new to AS-programming and I don't even know how to insert server-side data messages. The main.asc on my server was an example which I haven't coded by myself and looks like this:
application.onAppStart = function(info) {
trace('Application.onAppStart' );
application.userId = 1;
for (i=0; i<500; i++) {
data += "S->C";
}
Client.prototype.recData = function(data) {
this.ping();
var v = this.getStats();
this.call("ack", 0, v.ping_rtt);
};
Client.prototype.echoData = function() {
this.call("onEcho", 0, data);
};
Client.prototype.getBWInfo = function() {
return this.getStats();
};
Client.prototype.onConnTimeout = function() {
clearInterval(this.connTimeout);
this.connTimeout = null;
application.disconnect(this);
};
Client.prototype.getConnection sCount = function() {
trace("Connections: " + application.clients.length);
return application.clients.length;
};
Client.prototype.removeStream = function(name) {
trace("Clear stream: " + name);
application.clearStreams(name);
};
Client.prototype.getStreamName = function() {
trace("CLIENT.ID: " + this.id);
return this.id.toString();
}
};
application.onConnect = function(client_obj) {
trace("Application.onConnect") ;
trace("User trying to connect from:" + client_obj.referrer);
application.userId++;
client_obj.id = application.userId;
application.clearStreams(clien t_obj.id.toString());
application.acceptConnection(c lient_obj);
};
Any hints or ideas would be perfect. Thanks in advance
octaman