Skip to main content
April 9, 2010
Question

FMIS record stream as filetype fail

  • April 9, 2010
  • 1 reply
  • 911 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?

    April 14, 2010

    I am sorry to say but i think that might not work But why do you want to do that anyways ?


    I'm just prototyping out a project, so that's how I was checking the recordings.

    No worries.  Good to know I guess.

    Cheers!