Skip to main content
April 9, 2010
Question

FMIS record stream as filetype fail

  • April 9, 2010
  • 1 reply
  • 909 views

I'm attempting to use FMIS to try and record a user's webcam as a file on the server.

Saving as .flv works fine but when i use     

myStream.record("mp4:"+mystreamName+".f4v");

It creates the file but its only 20kb and empty.

Do I require a plug-in or component?  Or do I have to record as FLV and then convert to another format?

As always appreciate the help guys.

BTW:  are there any IRC channels that flash professionals hang out at?  I'd like to plug into the community.

Thanks again

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    April 10, 2010

    I think the problem is with your record statement , you never pass stream name as parameter for record call.

    Can you do one of the following:

    1. Publish using stream name as "mp4:myStreamName.f4v" and in record mode
    2. Publish using stream name as "mp4:myStreamName.f4v" in live mode and record it on server by calling record in application.onPublish(see below example 1)
    3. Publish using stream as "myStreamName" in live mode and record it on server using Stream.get and Stream.record (see below example 2)

    Example 1:

    application.onPublish = function(myClient,myStream){

              myStream.record();

         }   

    Example 2:

    application.onPublish = function(myClient,myStream){

              myStream.record();

         }   

    Let me know if still you run into issues.

    April 12, 2010

    Hey,  Thank you SE.

    I tested having the client invoke the recording via    publish("mp4:testfile.f4v","record")

    My example app is creating the file, and appears to have the correct filesize now but is still unplayable...

    Is this because I'm recording from a webcam thus not actually sending it a h.264 stream?

    Does what I'm trying to do require Flash Media Live Encoder?

    Participating Frequently
    April 13, 2010

    No its not needed, you can have Sorenson data in "mp4" container so that's not the issue here.

    Can you let me know , how are you playing the file, it should be ns.play(""mp4:testfile.f4v",0,-1,true).

    Also make sure you are on updated Flash Player , as i feel you need to have FP 9 and above (dont remember exact version), best thing download latest player version.