Skip to main content
Participant
September 16, 2009
Question

Need help in FMS

  • September 16, 2009
  • 1 reply
  • 754 views

Hi

I my website I want to upload videos or recors videos. through webcam. I am new in this field. I have some doubts regarding video uploading to FMS. I think to use Fms for storing videos. Can I able to convert uploadded video by the user using FFMPEG to flv format and upload it to FMS.

    This topic has been closed for replies.

    1 reply

    Lazlo_Hollyfeld
    Inspiring
    September 16, 2009

    I'm also new to FMS, but have experience with uploading files and using ffmpeg via PHP.  You can certainly save video to the server via a simple client-side actionscript.  You can write a server side script to execute ffmpeg to convert that file to any format you want (in your case .flv format).  In the case of PHP, you can use the exec() command to call an OS level command to convert the file.  You would need to call the exec() command after the user finished recording (it would be easiest to have a "stop-recording" button on your client movie that closes the publish command).   The issue you need to be careful about is that you must place the converted file within the appropriate streaming directory of your FMS application in order to have the FMS server stream the file to a client.  As far as I know, FMS will not stream files that are outside of an application directory.

    Hope that helps!