Skip to main content
Participating Frequently
February 17, 2010
Question

Problem with recording streams

  • February 17, 2010
  • 2 replies
  • 2594 views

Hi all,

I'm having a problem with Flash Media Interactive Server 3.5. I have a simple application setup. I would like to simply to be allow the user to record multiple flvs. This is just because we want them to record, preview and either publish or try again.

This is the code on my FMS side

application.onConnect = function (client) {
     
     application.acceptConnection(client);
     
     application.allowDebug = true;
     
     client.getTeamtalkFilename = function(){
          
          fnameTracker = SharedObject.get("vid_counter", true);
          
          currentCounterObj = fnameTracker.getProperty("counter");
          
          if(currentCounterObj == null || currentCounterObj == "null" || currentCounterObj == "NaN")
               currentCounter = 0;
          else
               currentCounter = parseInt(currentCounterObj, 10);
          
          currentCounter++;
          
          fnameTracker.setProperty("counter", currentCounter);
          
          return "teamtalk_" + currentCounter;
          
     }
     
}

Then on the client side I just call:

out_ns.publish("flv:" + _fname, "record");

and

out_ns.close();

to start and stop recording. The problem I'm having is that while the first record seems to go ok, the second gets garbled. The video starts about 70% through, and then just plays a small portion. I've tried meta injection to fix it up, but it's just not working. I'm thinking maybe I have to reset the stream or something before starting a record again, but I don't know how.

Does this problem sound familiar to anyone?

Cheers

Troot

    This topic has been closed for replies.

    2 replies

    Participant
    February 19, 2010

    I have to record a stream as well but couldn't figure out how yet.

    Are you recording with a .swf file or with a FMServer on the client side?

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 19, 2010

    From the above code mentioned in the post, looks like the client

    is publishing in 'record' mode using client side action script.

    Regards,

    Janaki L

    Participant
    February 19, 2010

    thats what i've been trying to do, without success though

    trying it on the FMS on the client PC doesn't work either for me

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 18, 2010

    Hi,

    Your recorded video is garbled, then you will have to check the condition of that stream using flv check tool. It is a simple command line tool located at "$Root\Flash Media Server\tools\flvcheck.exe".

    When you try to issue a 'record' with the stream name, which already exists in the server, then it will discard the already written data and starting recording fresh... provided if the stream was already recorded and no other publisher is still writing to it.

    I could not get how you are trying to move to next stream from client. Can you share little more client side code to help me to narrow down the issue.

    Regards,

    Janaki L

    troot_1Author
    Participating Frequently
    February 18, 2010

    I ran that tool and got the following message:

    10-02-18 11:26:08       Error:  -11     Found backward timestamp.       ../applications/btdrecord/streams/_definst_/teamtalk_943.flv

    I'm currently trying to find out what exactly this means, if anybody has any suggestions, please let me know

    Janaki Lakshmikanthan
    Adobe Employee
    Adobe Employee
    February 18, 2010

    The time code attached to the media data in your stream is not in orderly manner. It might have one or more time code which is out of synch with that of its preceeding time codes. Hence you get backward time stamp. Can you share you client and server side application to investigate further? Which version of FMS are you using? provide us more details to narrow down the issue.

    Regards,

    Janaki L