Can storing a live stream using actionscript fail by the cache filling up with overhead?

Hi,
Lately we have been seeing a problem with the archives of live streams we create using FMS. We use FMS for live streaming and concurrently store the stream in a file using ActionScript. We use the following code to record:
var s2 = Stream.get('mp4:' + mp4name);
application.publishedStreamMP4= s2;
application.publishedStreamMP4.record();
application.publishedStreamMP4.play(application.publishedStream.name,-1,-1);
(some lines have been removed that are used for logging, etc).
Sometimes some of these functions fail and return false. In these cases FMS's core log shows that the cache is full:
2013-06-11 11:45:55        13863   (w)2611372      The FLV segment cache is full.  -
In investigating this issue I have not yet been able to recreate this exact situation. By lowering the cache to 1MB I have however been able to create a situation where storing a stream can stop because the cache is full. The situation occurs as follows:
* The server is restarted, the cache is empty.
* A live stream is started, which is also recorded.
* Via the Administration API the cache values <bytes> and <bytes_inuse> show to be exactly the same as the <overhead> of the object that relates to the file being saved. The <bytes> and <bytes_inuse> values of the object are 0.
* This continues in the same way untill the cache is full.
* When the limit of the cache is reached the message
2013-06-11 12:07:35        13863   (w)2611372      The FLV segment cache is full.  -
is shown in the core log and storing of the file stops. The instance log also show status changes:
2013-06-11 12:07:35        13863   (s)2641173      MP4 recording status for livestream.mp4: Code: NetStream.Record.NoAccess Level: status Details:         -
2013-06-11 12:07:35        13863   (s)2641173      MP4 recording status for livestream.mp4: Code: NetStream.Record.Stop Level: status Details:     -
In the filesystem I can confirm that the last change of the file is on this moment (in this case 12:07). The live stream continues without problems.
I have reproduced this several times. Though I can understand that caches can fill up and this can cause trouble I feel like this situation is a bug in FMS. The cache fills up with overhead, which is apparently reserved untill writing the file ends.
I hope someone here can help out. Has anyone seen a situation like this and is there any remedy for it? Or even a workaround where this overhead in the cache can be released so the cache does not fill up?
We use FMS version 4.5.1.

You can use an XML socket, but the FMS application will need to initiate the connection, as FMS has no support for listening for anything other than RTMP and HTTP requests.
Stream switching can happen on the FMS side. In your FMS application, you'll create a server side stream, and use the Stream.play method for playing other sources (live streams or recorded flv/h.264 files) over that stream. Your subscribers will connect to the server side stream
See the FMS docs for the Stream class and the XMLSocket class.

Similar Messages

  • Re-Start a Live Stream using AMS 5 through Cloudfront

    We have AMS 5 running on an Amazon EC2 instance. We send a Live Stream from an FMLE encoder using H.264/AAC.
    If we do an Origin Pull from that instance running the AMS 5 and Live steam through one of our commercial CDN accounts, we can stop and re-start our Live stream without issue. It stops and re-starts as it should. When we re-connect to the AMS using FMLE, using the Origin Pull, the stream re-starts in either the OSMF or JW Player 6 in under 30 seconds.
    If we use that same AMS 5 on the same EC2 instance and Live stream through an Amazon Cloudfront distribution, if we stop our Live stream, when we re-start the stream it takes an unacceptably long time for the stream to refresh - if ever. Basically, after the re-start of the Live stream through FMLE, the Live stream at the player plays the first 10 or 15 seconds of the intial Live stream and then stops. If you refresh the player, it will play that same 10 or 15 seconds again - and stop again.
    It would seem that the AMS 5 is setup correctly. It works through our commercial CDN.
    It also would seem that the issue is with the cache on Amazon Cloudfront. Our assumption is that the Cloudfront cache is not properly updating. But we have tried about every variable in every setting for Cloudfront that we can find. We can't get past this.
    Any suggestions?
    Thanks
    As a followup to this discussion, you can follow the issue through the AWS.Amazon forums at https://forums.aws.amazon.com/thread.jspa?threadID=120448&tstart=0

    We also have other threads going.
    http://forums.adobe.com/thread/1180721?tstart=0
    https://forums.aws.amazon.com/thread.jspa?threadID=120448&tstart=0
    There appears to be 2 different issues - one issue with Amazon Cloudfront and a second issue with Adobe Media Server. Unfortunately, they are tied together in the real world application of these programs.
    In AMS. when we use the adbe-record-mode=record, then the AMS works fine because the AMS is clearing the streams on each re-publish. Unfortunately, this causes a status code error on Amazon Cloudfront. And that particular status code error from a custom origin server causes Cloudfront to "override the minimum TTL settings for applicable cache settings". As the programmers explained, basically what happens is that Cloudfront overrides our 30 second cache settings and goes into a standard cache setting of 5 minutes. And waiting 5 minutes to re-start a Live stream just doesn't work in the real world for real customers.
    We can fix that Cloudfront status code error issue by using adbe-record-mode=append on the AMS. If we use that AMS setting, then we can stop a Live stream, re-start the stream, the Cloudfront cache clears and everything works - unless you also change the stream settings in your FMLE. If you stop the stream and change the video input or output size in the FMLE, then the AMS server gets stuck and can't/won't append to the f4f record file.
    Does anyone have any ideas about how we can adjust all of this so that it works together?
    Thanks

  • Hi I would like to know if you can convert decimal to binary using actionscript 3.0?

    Hi I would like to know if you can convert decimal to binary using actionscript 3.0?

    Hi thanks for the response Ive tried to implement the code as you stated but it is not outputting please if you could check the following code and let me know where Ive gone wrong that would be much appreciated Thanks!.
    miles_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKilometres);
    miles_txt.restrict ="0-9";
    function convertKilometres (k:KeyboardEvent):void {
    var miles:Number;
    var kilometres:Number;
    if (k.keyCode == Keyboard.ENTER){
    miles=Number(miles_txt.text);
    kilometres=miles* 1.609344;
    kilometres_txt.text = kilometres.toPrecision(2);
    kilometreConvert_txt.addEventListener(KeyboardEvent.KEY_DOWN,convertKiloToMile);
    kilometreConvert_txt.restrict = "0-9";
    function convertKiloToMile(k:KeyboardEvent):void{
    var kilometreConvert:Number;
    var milesAnswer:Number;
    if (k.keyCode==Keyboard.ENTER) {
    kilometreConvert=Number(kilometreConvert_txt.text);
    milesAnswer=kilometreConvert* 0.621371192;
    milesAnswer_txt.text = milesAnswer.toPrecision(2);
    binary_txt.addEventListener(KeyboardEvent.KEY_DOWN, checkEnterKey2);
    function checkEnterKey2(e:KeyboardEvent):void{
    if(binary_txt.text != '' && e.keyCode == Keyboard.ENTER){
    decimal_txt.text=binaryToDecimal(binary_txt.text).toString();
    function binaryToDecimal(s:String):Number{
    var n:Number = 0
    for(var i:int=0;i<s.length;i++){
    n+=Number(s.substr(i,1))<<(s.length-1-i)
    return n;
    function decimalToBinary(n:Number):String{
    return n.toString(2);
    return_btn.addEventListener(MouseEvent.CLICK, goBackToCalculator);
    function goBackToCalculator(e:Event):void
    mybuttonSound.play();
    gotoAndStop("Calculator");
    clear_btn.addEventListener(MouseEvent.CLICK,clearField);
    function clearField(e:MouseEvent):void{
      mybuttonSound.play();
      miles_txt.text ="";
      kilometres_txt.text ="";
      milesAnswer_txt.text ="";
      kilometreConvert_txt.text ="";
      binary_txt.text ="";
      decimal_txt.text ="";

  • II  downloaded the OS X version 10.9 and my iPhoto version 9.2.3 will n.ot open.  I get a message that I can't use this version of the application I photo with this version of OSX.  What do I do now and how do I get the photos out of the old version?

    I downloaded the OS X version 10.9 and my Iphoto version 9.2.3 will not open.  I get a message that I can't use this version of the application I photo with this version of OS X.  How do I upgrade to a i photo that will run on 10.9.  Do I purchase a new program or can I do just an download?

    Check the "Purchases" page in the Mac App Store and see if there is a more recent version there already waiting for you.

  • The Imap command UID copy (to deleted messages) failed for the mailbox "bulk mail" with server error UID copy mailbox in use.  PLease try again later

    The Imap command UID copy (to deleted messages) failed for the mailbox "bulk mail" with server error UID copy mailbox in use.  PLease try again later

    What program are you using?  And what version?

  • I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!?

    I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!? It is very frustrating as the main reason i have bought  a mac is to use logic! Any help would be great as i am a complete novice when it comes to Macs!

    You're probably on OS X Lion?
    I had the same problem as you. I used Software Update to update Logic Express to the latest version, and then it ran without any problems.

  • Can we set output formats(used in billing)  at the time of project creation

    hi ,
    Can we set output formats(used in billing)  at the time of project creation (Project system)
    Output formats- like e billing format etc.
    Thanks

    Hi
    No .WE CANT

  • You can't use this version of the application "logic pro" with this version of os x

    After installing all of Logic Studio (i.e. install dvd, audio content 1-3, jam packs 1-3), my laptop concludes that everything is installed successfully, however, when going to open to Logic, error icon appears and says:
    'you can't use this version of the application "logic pro" with this version of os x'

    Thank you! I found that just after I entered the question. I reinstalled everything two times, updated software, but was still having issues. But, I specifically updated the 9.1.8 (which was supposedly included in my standard software update). Guess I needed to give it some extra attention and affection.
    P.S. - Why do I feel like the more I upgrade versions of OS X, the worse off I am getting or am? Isn't it supposed to be opposite...isn't it supposed to make things better...come on, mac...where you at? mt. lion or mavericks. I'm downloading Snow Leopard to make some programs run. (um, yeah).

  • Unable to open mail, address book etc due to this message:  You can't use this version of the application Address Book with this version of Mac OS X. HELP!

    I am transferring my mother's address book and mail etc to my computer from an external hard drive enclosure and am not able to open it due to this message:  You can't use this version of the application Address Book with this version of Mac OS X. HELP!  Is there a way to open her older applications and get the info out?

    her email is in user>Library>Mail folder. Hopefully you've created another user on your Mac for your mother so she would have her own user Library.

  • You can't use this version of the application Logic Pro with this version of Mac OS X.

    You can't use this version of the application Logic Pro with this version of Mac OS X. why am i getting this message after upgrading to lion

    <Bump>
    See this thread.
    https://discussions.apple.com/message/15700842#15700842
    and this one.
    https://discussions.apple.com/message/15700505#15700505
    pancenter-

  • Disk utility "You can't use this version of the application Disk Utility with this version of Mac OSX. You have Disk Utility 12.1"

    I use mountain lion 10.8.1
    I try start disk utility it only says: "You can't use this version of the application Disk Utility with this version of Mac OSX. You have Disk Utility 12.1"

    To do a Reinstall of the OS boot to the Recovery HD, Command+r key at startup, then select Reinstall Mac OS X. the files will be downloaded from the internet and then the instal will begin.
    With Mt Lion it is also available from the Mac App store in your Purchases area. You may be able to download it and then nmanually starting the install while booted to Mt Lion.
    But I'd normally use the Recovery HD as that takes the installed OS out of the picture.

  • TS3276 The IMAP command "UID COPY" (to Deleted Messages) failed for the mailbox "Bulk Mail" with server error: UID COPY Mailbox in use. Please try again later.

    I have been getting the following message and have no idea how to clear it.  Any help will be greatly appreciated!!!  I have force closed Mail, and have tried to re-sync my accounts but no luck.
    The IMAP command “UID COPY” (to Deleted Messages) failed for the mailbox “Bulk Mail” with server error: UID COPY Mailbox in use. Please try again later.

    What program are you using?  And what version?

  • I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV. After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the or

    I'm on a windows laptop using iTunes sharing through the family to connect with Apple TV.
    After choosing the folder of photos to be shared and displayed on the appletv and when I choose to show on screen, they are not shown in the order they are in the original folder.
    How to pair show in a certain order, for example, sorted by name.
    grateful
    Julio Cesar

    Not that I'm aware of. You just export JPEG copies to a folder that you can point iTunes to. For instance, I have created a folder in my Pictures folder called Apple TV. And within that folder I have other folders of pictures that I can choose from in iTunes to share with Apple TV. But there doesn't seem to be any way to share a Lightroom slideshow. If you have laid to create a video file that would probably work. Apple TV is a little clunky in my opinion. Some things are a little more difficult to do now than they were a while back. I probably haven't provided you with much help, but just keep experimenting and I think you will figure it out.

  • HT3546 I can't figure out how to install bonjour from the CD that came with my airport express.  Can anyone help?

    I can't figure out how to install bonjour from the CD that came with my airport.  Can anyone help?

    If you are having difficulties installing Bonjour from the Installation CD, you can download the latest version of Bonjour from here.

  • Can more than one email get a copy of the form filled out

    Can more than one email get a copy of the form filled out?  Not a link but the data from the form.

    I have the copy of the form coming to my main email but I need it to go to a second email address.  right now the 2nd email address only gets a link.  I do not want them to have access to the account only to get a copy of the data.  I have them set up under Email Notifications as a "reader".

Maybe you are looking for

  • PM How to define new scenarios / subscreens as selectable entries

    Hello! I've a customer who wants to use an own subscreen in PM / IW24. He wants to select it like a predefined scenario in the user default values / ref. object / scenario ... I can create new dynpros / subscreens ... no problem. But how to tell PM t

  • Using Dynamic Function module

    Hi, I have requirement where  have to call FM dynamically. I need to check if the IS OIL switch is on, than call the OIL FM otherwise normal FM. Problem is when the IS OIL switch is off, the Oil FM will not be present and will give syntax error. Henc

  • Not able to merge dimensions objects on webi report based on SAP query

    Hello We are using SAP BI 7.0 , BO XI 3.1 sp1 I have two queries in webi report. These two queries are based on the same universe. I am not able to merge dimensions from both queries as merge dimensions functionality is greyed. Two dimensions are of

  • Interactive form is not opening..Exception WDRuntimeException

    Hello Forum, I was trying to open an interactive form application and that application is throwing the below mentioned exception.. <b>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Failed to cre

  • Import function becoming unresponsive

    Hi, We're having a very strange issue on one of our workstations. After Effects CC 2014.2, Mac Pro (Late 2013) OSX 10.10.2 (this problem was present for us on previous versions of AE and OS). Basically you can be happily importing files into the Proj