Skip to main content
Participant
November 2, 2011
Question

FMS storage problems

  • November 2, 2011
  • 1 reply
  • 709 views

hi.

I use third-party encoder to launch RTMP stream to FMS, but there is no way to record thestream, there is no third-party encoder to provide a way to record?

Thanks everyone.

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    November 3, 2011

    Are you saying you want to record the incoming RTMP Streams from your third-party encoder? If that's the case - you can use Server-side API to do the recording - its very simple.

    For example below code would do recording for you (you need to create file named main.asc and put below code and place this file in application folder where you publish your streams)

    application.onPublish = function(myclient,mystream){

         mystream.record();

    }

    application.onUnpublish = function(myclient,mystream){

         mystream.record(false);

    }

    November 12, 2011

    hi,

      I use FMLE to publish h264 video to FMS , my server side code (main.asc):

    application.onPublish = function (client, stream)

    {

        var streamName = stream.name ;

        trace("onPublish stream: "+ streamName);

        stream = Stream.get("mp4:"+ streamName +".f4v");

        if(stream){

               stream.record("append");

               stream.play(streamName);

        }

    };

    I can save the H264 stream on the server,but less than 3 minites,the storage stops,How did this happen? can you help me ?

    thanks !

    maria