Flash :: Import Media.video Not Able To Display Webcam?
Jun 27, 2010
I am trying to capture video from my webcam to a video display. I created a button on my main application and it gets my webcam just fine. When I try to use the same code inside a class I created it does not work. Does anyone know what could be the problem? Here is my code to capture the webcam.
We want to build an application that allows the user to record a video using their webcam on our site using flash and save the URL in a database using PHP. So that we can allow the user to send the video's to other users etc. Also we want to offer the user the possibility to upload their movies (per mail and with PHP) and convert them to flash movies, can this also be done using Flash media server? (maybe in combination with AMFPHP)
In my application I want to display the webcam video. for that I use the as3 code
[cODE]....
but When i run the project there is no webcam video. I have trace the current Frame rate of the camera by trace(cam.currentFPS) ;and the output is 0; But I can watch the webcam video by yahoo messenger window and the software provide by the webcam driver.What is the problem of my code?
When i click record_btn, flash asks me permission to access my webcam. If i alow in the screen i am able to see live video. But I want to store the video and replay it.
Before I buy the Flash Media Server, I would like to know that: - Is it possible to crop the webcam video (because I need just one part of the whole picture) before streaming from the client's Flash Player to the Media Server? (it would reduce the bandwidth a lot) - If not, can the player store some parts of video until it is fully streamed with all it's data (30 fps) to the Server? (e.g: client: low bandwidth, I need all frames that the webcam records, real-time doesn't matter if it takes 1 minutes for 20sec video, that would be ok.
I am trying to broadcast live video using a webcam. I am using the developer version of FMS3.0. Actually i have a working code of webcam broadcasting, which i used before. But now i am using a free version of FMS3.0. When i tried to connect, the following error is showing:
i'm developing a web site, and i'm trying to let the user record some video from his webcam. I'm using actionscript and flash media server. I got it work in my delevoper enviroment, but when i deployed it to the production server, the webcam can't get connected to the FMS. I'm afraid this is because of port blocking from the firewall. Does anyone knows wich ports are userd for recording from a browser by the Flash Media Server? I open the 1935 port in the Flas Media Server, but it still doesn't work.
2 x Intel(R) Xeon(R) CPU L5410 @ 2.33GHz 16Gb RAM 2 Gbit ethernet channel OS - Linux CentOS 5.5 x86_64 FMS4 Interactive
Live stream parameters:
320Ñ…240 qua_=87 bw_=200000 kf_=5 fps_=18
So, after approximately 600 connections to one stream video becomes choppy (periodically freeze, slow motions). CPU-usage at this time is 100-120% (maximum is 800%, 100% per each core), network usage is 500 Mbit/sec.But second live stream(with few connections) at this server looks fine simultaneously with 600 connections at first stream.Experiments with recommendation in "Configuring performance features" documentation chapter(enabling/disabling aggregate messages and configure the size of stream chunks) do not help.
I'm trying to record a stream from a webcam using FMS4 developer edition. The streams are recording on a linux box in .flv files. These files though have problems.
1 - The video quality is terrible. Fuzzy/blocky. Any kind of motion looks awful. Is there any way to improve this?
2 - The sound jumps/skips and goes out of time with the video.
As it is now this is useless. I am trying to make a system where a user records a short video from the camera and then I upload it to YouTube from my server. If you use Youtube's webcam page the video quality is quite acceptable and the audio is obviously in sync too, so they must know something I don't. [URL]..
I'm trying to record video from the users webcam and play it back at a later date. I call
[Code]...
However, when I look at the FMS Admin Console at the streams in app/_definst_, their types are either "NetStream" or "Live". If they were being saved wouldn't they say "Stored"? After I close the application doing the recording, the "NetStream" type stream disappears, and after a while all the "Live" typed streams are gone too. Nothing is saved.
I have no idea what is happening. I don't know if it's a problem with my AS3 code not closing the recording properly or if I'm doing something else wrong, or maybe somethgin isn't right in the FMS?
how to publish live video feed from webcam in h.264 format non VP6 format with FMS 3.5.2 without using Flash Media Live Encoder, and how to set all parametersto have a good quality and smooth video without interruption, i have a server with 50Mbit bandwidth output enough for a publisher and 10 clients meunderstand this thing's been months since I try but the quality ugly
This will create an flv video file on flash media server:
var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); ns.publish("yourCamera", "record"); ns.attachVideo(Camera.get());
How can I generate an image for the current video frame every 2 seconds?
I'm trying to implement a flex app that will be able to record a video from a webcam and then upload it to a server. I've only found tutorials and examples that require a media server running such as Red5, Flash Media Server and Wowza and an open rtmp stream to the server. However, I want to know if it's possible to record a video locally and then submit it to the server with a simple HTTP request. Is there a tutorial somewhere that shows how to do this? I'm really new in flex development
on flash 8 pro, I�m using the media display to play a FLV from the web, buti�d like to be able to create buttons to change the video played. What AS Sould I use on that button
I've build a simple video chat application. The problem is that there is a delay of seconds between video display i.e. user1 video motion change displayed bit late at the user2 window. I'm using FMS 3.5 and FLEX.. IS THIS PROBLEM RELATED TO THE BANDWIDTH. My FMS bandwidth is 256kbps.
I know that is possible to make a p2p webcam stream with Cirrus/Stratus or with Adobe liveCycle, but the first is not for commercial use and the second use an adobe's server. Is possible to set up a my own server with Flash media server 4 and then create a application to do what i want? I would to create a webcam stream 1->n using p2p. I cant find any example or any documentation about that and how work the rtmpf protocol of fms4. If i was not clear make me any question.
I'm trying to write some apps that will include some image processing for facial, object recognition. There's a ton of stuff out there (mostly from 2009) that doesn't work very well and I want to give it a try.
Anyway, I have the webcam feeding a video object I've addChild()ed to the stage and that works aces. I want to make a copy of that video stream and plop it on the stage right next to it. This works, but the framerate suffers:
Code: public function update(event):void { //onEnterFrame var bmp:BitmapData = new BitmapData(_video.width/5,_video.height/5);
[Code]....
So this puts a pixelated version of the webcam feed right next to it just like I wanted, but it seems to lug down the processor. Logic would tell me that I'm piling on infinate amounts of "goat" to my movieClip (mc). I try to dispose() the bmp, but then it stops working.
I need to increase my buffer size in FMS. My video is running from RTMP and I faces the problem to load. Video stalled between the running. So I need to increase buffer size for running video smoothly.
I've tried on TinyChat but Flash won't recognize it except as a microphone. I've tried at BlogTV, the webcam shows up in Flash Settings but there's no video output. Webcam does work in it's own LifeCam software & supposedly with Windows Messenger software (hasn't been tested on Messenger). I've installed the Adobe Flash Media Live Encoder 3.2 and that seems to be working but BlogTV still won't respond.
I almost think it's impossible but I know little. I saw once on a website a streaming webcam video in fact it was live. I right-clicked it and it was in flash. Does anyone know how do streaming video with a webcam in flash?
Im making a flash app that will capture video from the users web-cam, show whats being captured and when he clicks submit, send this to the server.Its already capturing video from the user web cam, but its not recording anywhere. Whats my next step to save it somewhere where it can be played to the user after recorded and after he clicks in a submit button send it to the server?
my task is to code a flash application that lets an user take a snap shot with webcam, attach it to an movieclip and modify the self portrait by adding hair, hats, glasses etc. that are available on menu.[URL]..
I managed to get the webcam working when i used it as a document class. When i changed my code so that the Free Transform Tool code is in document class and the webcam script is in Webcamactions.as file, i can't control the movieclips anymore...the movieclips (such as "imagecanvas" where i attach the video). My Mac's webcam light indicates that the function works, but the video doesn't appear in the movieclip.
I have an application which shows videos from users webcam. I want to know that is there any open source script or something in as3 which can save this video as mpeg or flv format.