Skip to main content
Participant
March 1, 2010
Question

error message: method not found(getStreamlength)

  • March 1, 2010
  • 2 replies
  • 2985 views

ok, so I got the broadcast running as SE suggested, everything is running smooth local and live except for one thing.

every 45 seconds or so, I the encoder displays an error while broadcasting. the broadcast however continues, so I went to the error log in application.00.log. and this is what was there:

Sending error message: Method not found(getStreamLength)

I'm assuming it has something to do with the length of the file, when I look in the folder that saves the broadcast, is dozens of files that have approx size 1 mb. As the broadcast goes, I see the file being created, and then when it reaches about 1 mb, a new one is born.

I looked everywhere, from server configure, to the fms.ini file, and couldn't find anything.....

So my question is: why is this happenning and how can I fix it ?

    This topic has been closed for replies.

    2 replies

    Participant
    March 2, 2010

    how do I know if I'm using an interactive server or a streaming server ?

    I think it's an error and not a warning because why would it stop building the file and instead it chooses to build a new one, I mean everytime I do a broadcast test of 3 minutes I end up having 4 files with about 45 second each.

    I don't want the message to go away, I want the broadcast to be done and saved in one single file .

    Participating Frequently
    March 2, 2010

    Can you check if you are not using raw format for recording because it does create lot of files instead of one file. Before i answer you can you let me know about following things:

    1. Are you using you own application for recording, if yes , can you post the code here or send it to me? I suppose yes.

    2. I am assuming you are using FMLE for broadcast , if not please let me know what are you using for broadcasting(publishing).

    3. What are you using as Client, I somehow feel you are using FLVPlayback component and hence getting that warning at server-side which you can see in logs, because as far as i know correctly encoder would not call "getStreamLength" function and its the FLVPlayback component which is making the call.

    As JayCharles said, its not at error its just warning and its not responsible for creating so many files compared to one. I have gut feeling you are using RAW format for recording.

    Second, to know whether you are using FMIS, you can just open Admin Console (find it here:-<FMS Install Directory>\tools). Login using IP or machine name (you can use localhost if you are on same machine), use FMS Admin login and password (one which you specify when installing-in case you don't remember it , open fms.ini and look up for it).Once you login , click on Manage Server tab and then click on License Tab - you will get which server you are using.

    Please get back to me with your answer and we will try to resolve your issue.

    Participant
    March 2, 2010

    hi,

    ok here's what I found . I don't know what you guys mean with RAW format. can you explain a bit about it ?

    1. We are using Flash Media Encoder with device selected VH Screen capture from this website http://www.splitmedialabs.com/vh-video-sdk/vh-screen-capture so I guess we're using VH Screen capture as recorder.

    2. Yes we are using Flash Media encoder for broadcast.

    3. We built an html page with a swf player that looks for the .flv file that is being recorded in the server. I did it that way because that's eventually the way we want it done for our clients, meaning they recieve a link and when they click on it they join the broadcast. We followed the steps that were listed in this tutorial http://www.adobe.com/devnet/flashmediaserver/articles/beginner_live_fms3.html

    I think you guys are right regarding the RAW format, but how do I know if I'm doing it that way and how can I change it?

    Second to know answer is: after going into the console and accessing license.

    We're using Flash Streaming Server 3.5.1 r516

    Thanks for all your responses, I hope we can solve this.

    By the way, why do I have to create a new user everytime I want to post ? when I try posting using my account it says password and ID don't match.

    thanks

    March 1, 2010

    The message suggest that  the encoder is calling out to the server application to get the length of the recorded file, but the method getStreamLength is not defined on the server side. What you're seeing is a warning, not an error.

    Assuming you're using interactive server, you can make the message go away by adding the following to your main.asc

    Client.prototype.getStreamLength = function(stream){

    // do nothing

    }

    If you're using Streaming Server, I don't know of any fix for it.