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


1 answer


It seems to me that this is a bug in the latest version of Red5. I have the same problem with my audio recording app. Although I've used to record streams without issue in older versions of Red5.



+2


source







All Articles