header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Rohit
Points:160
Posts:0

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?



1
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");


2
Rohit
Points: 0
Posts:0
9/24/2011 5:20:18 AM



Thank you Tylor,

can you provide any article which could explain more about this?


Thanks in advance

3
Matt
Points: 0
Posts:0
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 ?

4
Rohit
Points: 0
Posts:0
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

5
Matt
Points: 0
Posts:0
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

6
Rohit
Points: 0
Posts:0
9/29/2011 8:02:21 AM



Hey Matt,
Thats great,

can you share those examples with me?


7
Rohit
Points: 0
Posts:0
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,

8
Rohit
Points: 160
Posts:0
10/24/2011 5:09:49 AM



yes I have working this code now

9
Rohit
Points: 160
Posts:0
10/24/2011 5:11:16 AM



Matt,
let me know if you want to see code???????????

10
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.




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions