9/22/2011 12:30:03 AM
Title:
Capture video from web cam and save it to FMS or red
I wan capture video from web cam with audio and want to save that file to server(FMS / Red)
any one can please tell me how to do this?
Tyler
Points: 430
Posts:0
9/23/2011 9:43:42 PM
here is the simple code that will allow you to capture and save video using FMS server.
//create connection to FMS server
var my_netconn:NetConnection = new NetConnection();
// provide path to your FMS application
my_netconn.connect("rtmp://appName/appInstance");
//create video stream
var my_ns:NetStream = new NetStream(my_netconn);
//give name to video and set it to recording mode
my_ns.publish("videoName", "record");
//Access the camera
my_ns.attachVideo(Camera.get());
// to stop recording video call this code
my_ns.publish(false);
//to play saved video use this code
my_ns.play("videoName");
9/24/2011 5:20:18 AM
Thank you Tylor,
can you provide any article which could explain more about this?
Thanks in advance
9/28/2011 12:41:27 PM
Hi Taylor and Rohit,
I'm also looking and googling for such solution or tuturioal.
This is already great, but indeed I would like to know how I can store it in a better way.
It would be great if you can use some session variables too when you have a PHP login, my quesion is here how can you use such vars in actionscript ?
9/29/2011 2:33:29 AM
actually it works on NetStream class in AS3
it will be loading your video and keep on saving on your server application
9/29/2011 5:09:37 AM
Rohit,
Are you willing to upload your testapp somewhere with code ?
I have some examples that I'm comparing...
Would be great!
Thanks
9/29/2011 8:02:21 AM
Hey Matt,
Thats great,
can you share those examples with me?
9/29/2011 10:24:06 AM
Hi,
yes I can, but have you above working ? I'm filtering a lot of sites to see which code is best. This looks good but I need to know if you have it working.
I'm still busy crawling.
Do you have an example online ?
Cheers,
Rohit
Points: 160
Posts:0
10/24/2011 5:09:49 AM
yes I have working this code now
Rohit
Points: 160
Posts:0
10/24/2011 5:11:16 AM
Matt,
let me know if you want to see code???????????
Rohit
Points: 160
Posts:0
11/8/2011 10:58:02 PM
Hi Matt,
i have build this app now I able to record audio with video/without video,
and then I can playback the audio with video and only audio also.