I am testing a new installation of Red5 server using the oflaDemo that is installed. I am wanting to publish a live video feed to be recorded to a file. This seems to work ok except for the fact that only a fraction of the video feed is ever recorded. Only the first frame for videos of around 30 seconds ever seems to be available to play back and only a few seconds of video is recorded for longer (~10 minutes) of video.
What could cause Red5 out of the box to only record a few seconds of video?
------------ Heres a code snippet -------------------------------------------------------------------------------------------
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
nc.connect("rtmp://myurl");
nc.client = this;
ns_out = new NetStream( nc );
ns_out.attachCamera( cam )
protected function onNetStatus(event:NetStatusEvent):void
{
switch(event.info.code)
{
case "NetConnection.Connect.Success":
ns_out.publish(_filename, "record");
break;
}
}
It seems to me this is a bug in the latest version of Red5. I have the same issue with an audio recorder app. Although I used to record streams with no problems in older versions of Red5.