7 Replies Latest reply: Dec 8, 2014 10:19 AM by ilvio.casa RSS

    Multipoint publishing Stream Stop issue

    Arvind Mehta Community Member

      Hi,

           I am creating a application in which I am using Multipoint Publishing between the servers. I am using four Flash Media Servers for streaming. But after some time the stream stops publishing between the server appoximately after  5-7 minutes. All servers are developement servers.

       

      Please reply if anyone know the solution.

       

      warm regards.

        • 1. Re: Multipoint publishing Stream Stop issue
          Apurva Udaykumar Adobe Employee

          Hi Arvind,

           

          If you're using Adobe Media Server starter (without license) then recording will stop after 10 min and error will be logged in your core logs. If you want to continue recording for longer than 10 minutes you'll have to buy a serial key.

           

          Hope this helps.

           

          Thanks,

          Apurva

          • 2. Re: Multipoint publishing Stream Stop issue
            Arvind Mehta Community Member

            Thanks Apurva for quick reply,

             

                                          But when I use only two FMS servers for Multipoint publishing and both are starter servers then there is no such issue. Please explain little bit more if u can.

             

            Regards

            • 3. Re: Multipoint publishing Stream Stop issue
              Arvind Mehta Community Member

              Hi,

                 I forgot to mention that I am using only RTMP connection.

               

              regards.

              • 4. Re: Multipoint publishing Stream Stop issue
                Mr_Hefner

                I too am having this issue with AMS 5 professional. Any idea how to keep the republished streams alive for the entire length of the streaming event?

                • 5. Re: Multipoint publishing Stream Stop issue
                  ilvio.casa Community Member

                  You can try this code, it works like a charm

                   

                   

                  application.i = 0;

                  application.nc = new Array();

                  application.ns = new Array();

                   

                   

                  ...

                   

                   

                  application.onPublish = function(client, myStream) {

                    trace(">>>> starting onPublish");

                    if (application.name == "<APPNAME>/_definst_"){

                    application.nc[index] = new NetConnection();

                    application.nc[index].connect("<URL>");

                    application.ns[index] = new NetStream(application.nc[index]);

                    application.ns[index].onStatus = function(info) {

                    if (info.code == "NetStream.Publish.Start") {

                    trace("The stream is now publishing");

                    }

                    }

                    application.ns[index].setBufferTime(2);

                    var isAttached = application.ns[index].attach(myStream);

                    if (isAttached) {

                    application.ns[index].publish(myStream.name, "live");

                    } else {

                    trace(myStream.name + " is not attached");

                    }

                    application.i = application.i + 1;

                    }

                    trace(">>>> ending onPublish");

                  }

                   

                   

                  ...

                   

                   

                  application.onUnpublish = function( client, myStream ) {

                    var streamName = myStream.name;

                    for (j = 0; j<application.i; j++) {

                    application.ns[j].publish(false);

                    application.ns[j].attach(false);

                    application.nc[j].close();

                    }

                    application.i = 0;

                  }

                  • 6. Re: Multipoint publishing Stream Stop issue
                    turbidwater Community Member

                    I can also replicate this issue in AMS 5.0.6 both dev and licensed. The threshold seems to be about 1.5 to 5 minutes of multistream republishing. I don't see any errors in the core logs relating to limits, but I do see this issue:

                    2014-12-05 13:51:18 8652 (e)2581279 Assert failed in .\core\FcLiveStream.cpp line 4303 -
                    2014-12-05 13:52:46 8652 (i)2581247 Core (8652) disconnected from edge. -

                     

                    I'd love to know if this is something server code related before I rework my republishing app.

                    • 7. Re: Multipoint publishing Stream Stop issue
                      ilvio.casa Community Member

                      Please, could you post your application source code?