Red5 server only records first few seconds of RTMP video from AIR
I am testing a fresh install of Red5 server using atlaDemo installed. I want to publish a live video feed for recording to a file. This seems to work fine, except for the fact that only a fraction of the video stream is ever recorded. Only the first frame for video about 30 seconds long appears to be playable, and only a few seconds of video is recorded longer (~ 10 minutes) video.
What can cause Red5 to fail just to record a few seconds of video?
------------ Here is 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;
}
}
+3
source to share