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.

    Participating Frequently
    March 4, 2010

    and here are the settings in the flash media encoder

    Preset Custom


    Video

    Device : VHScrCap (VH Screen capture)

    Format VP6

    Frame rate 20fps

    Input size 640x480

    Bit rate 350 kbps CHECKED

    100kbps unchecked

    100kbps unchecked


    Audio

    Device SoundMax HD

    Format mp3

    Channel mono

    Sample 22100

    bitrate 48kbps


    STREAM TO FMS

    rtmp://myserver/live

    backup URL ...... I have it empty

    Stream: MyCompanyLive

    Save to file is CHECKED and points to : my server \\ vod \ my company live \ my video.flv

    limit by size is unchecked

    limit by duration is unchecked

    DVR Auto record is unchecked

    That's all I've got man, I really appreciate your help...... I can't believe this small liltte thing is holding everything back, everything else is running


    Now i think i got the problem you are facing. The files which are getting recorded as result of "Save to File" to your vod folder won't be available as DVR Stream. For DVR functionality , you need FMIS and you have FMSS. So i would recommend you to Save the file to say local disk and then move it your VOD folder and make it available as VOD.

    I tried reproducing the steps, but i still did not get small small files like you said. Can you check confirm by checking your logs that your server did not face issue, please check master.00.log if you encountered any crash and as result of it your publish stopped, so file stopped growing and when new core came up it automatically started publishing again so file got created again.

    As far getStreamlength messages are concerned - Can you check when you drag FLVPlayback Component to your stage and use it  that you are setting isLive to "true" when you subscriber to livestream

    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.