Help recording a webcam

Hi,
I am planning on creating an application that will need
webcam activity recorded and then uploaded to a database, I know
that flash media server will be needed, but how do I go about
recording a webcam in flash and linking it with flash media server?
Any help would be much appreciated
thanks
Gavin

Thanks!,
have found this code in the documentation, but having a
slight problem
The following example shows how to publish and record a
video, and then play it back.
/* This script publishes and records video.
The recorded file will be named "allAboutMe.flv". */
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://localhost/allAboutMe/mySpeech");
var publish_ns:NetStream = new NetStream(my_nc);
publish_ns.publish("allAboutMe", "record");
publish_ns.attachVideo(Camera.get());
/* This script plays the recorded file.
Note that no publishing stream is required to play a recorded
file. */
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://localhost/allAboutMe/mySpeech");
var subscribe_ns:NetStream = new NetStream(my_nc);
subscribe_ns.play("allAboutMe");
my_video.attachVideo(subscribe_ns);// my_video is a Video
object on the Stage.
For this line
my_nc.connect("rtmp://localhost/allAboutMe/mySpeech");
I am having trouble with the location, what do I need to put
in here?, When I entered admin details for fms2 I didn't enter a
server address?, what needs to go in there? and is that meaning
this code won't work at the moment?
thanks
Gavin

Similar Messages

  • Record from webcam to f4v on FMS

    I'm trying to build / modify an application to record from webcam and microphone, in a web browser and save it to an FMS 5.4.2 server to stream via web and iOS
    recording as a flv file works fine and it plays back just fine in firefox / any browser
    I can steam f4v files over http as filename.f4v.m3u8 and that works fine with the samples that come with FMS from my record folder (/opt/adobe/fms/applications/record/streams/)
    My flash web application can record to the FMS server, the file it records has the .f4v file extension, has content (i see the file size), and has time in quicktime (4 or 5 seconds - just a test) but it doesn't play - the screen is black and never starts.
    I know i'm right on the edge of figuring this out, I just don't know what I'm missing or whats wrong (i'm a php programmer, not action script)
    any ideas ?
    here is the code i'm working with:
    package com
        import fl.controls.ProgressBar;
        import fl.controls.ProgressBarMode;
        import flash.display.MovieClip;
        import flash.events.Event;
        import com.NetConnector
        import flash.events.MouseEvent;
        import flash.events.TimerEvent;
        import flash.media.Camera;
        import flash.media.Microphone;
        import flash.media.Video;
        import flash.net.navigateToURL;
        import flash.net.NetConnection;
        import flash.net.NetStream;
        import flash.net.URLLoader;
        import flash.net.URLLoaderDataFormat;
        import flash.net.URLRequest;
        import flash.net.URLRequestMethod;
        import flash.net.URLVariables;
        import flash.text.TextField;
        import flash.utils.setTimeout;
        import flash.utils.Timer;
        import flash.media.H264Level;
        import flash.media.H264Profile;
        import flash.media.H264VideoStreamSettings;
        import flash.media.VideoCodec;
         * @author Alexander (flash2you) < >
        public class Recorder extends MovieClip
            private var dataHolder:DataHolder = DataHolder.getInstance()
            public var layer:MovieClip
            public var activityLevel_pb:ProgressBar
            public var aguja:MovieClip
            public var aguja2:MovieClip
            public var publishButton:MovieClip
            public var timer_txt:TextField
            public var recordStatus:MovieClip
            public var recordBtn:MovieClip
            private var netStream:NetStream
            private var microphone:Microphone = Microphone.getMicrophone()
            private var camera:Camera = Camera.getCamera()
            public var  video:Video
            private var timer:Timer = new Timer(100)
            private var clockTimer:Timer = new Timer(1000)
            public var published:Boolean = false
            private var isRecording:Boolean = false
            private var minutero = 0;
            private var crono = 0;
            private var records = 0;
            public var settings_mc:MovieClip
            public static var recorder:Recorder
            public var settings_icon:MovieClip
            private var limitTimer:Timer
            public function Recorder()
                Recorder.recorder = this;
                timer.addEventListener(TimerEvent.TIMER, on$timer)
                clockTimer.addEventListener(TimerEvent.TIMER, on$clockTimer)
                //visible = false
                recordBtn.buttonMode = true
                recordBtn.addEventListener(MouseEvent.CLICK , recordBtn$click)
                recordBtn.addEventListener(MouseEvent.MOUSE_OVER, recordBtn$over)
                recordBtn.addEventListener(MouseEvent.MOUSE_OUT, recordBtn$out)
                addEventListener(Event.ADDED_TO_STAGE, onAddedToStage)
                limitTimer = new Timer(dataHolder.timelimit * 1000);
                limitTimer.addEventListener(TimerEvent.TIMER, onLimitTimerHandler)
            private function onLimitTimerHandler(e:TimerEvent):void
                 stopPublish()
             *  when we comes to second frame
            private function onAddedToStage(e:Event):void
                removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
                init()
             *   function for set up camera from settings module
            public function setCamera(_camera:Camera) {
                camera = _camera
                addCameraSettings()
                video.width = 1280;
                video.height = 720;
                video.attachCamera(camera)
                if (netStream){
                    netStream.attachCamera(camera)
            public function setMicrophone(mic:Microphone) {
                microphone = mic;
                if (netStream){
                    netStream.attachAudio(microphone)
                addMicSettings()
            private function addMicSettings() {
                microphone.setUseEchoSuppression(true);
                microphone.setSilenceLevel(1)
            private function addCameraSettings():void
                camera.setMode(1280, 720, 25);
                   camera.setLoopback(true);
                   camera.setQuality(0, 100);
            public function init() {
                startConnect()
             *  main function for connection
            private function startConnect() {
                visible = true
                timer_txt.htmlText = "<b>00:00</b>";
                initCamera()
                initMicropone()
                var nc:NetConnection = new NetConnection()
                nc.connect(null)
                netStream = new NetStream(nc)
                netStream.attachAudio(microphone)
                video.attachCamera(camera)
                layer.visible = false
                publishButton.gotoAndStop(1);
                activityLevel_pb.mode = ProgressBarMode.MANUAL;
                recordStatus.gotoAndStop("noRecord")
                timer.start()
                connection.addEventListener(NetConnector.CONNECTED, connectionComplete)
                connection.startConnection()
            public function get connection():NetConnector {
                return dataHolder.connection
            private function on$timer(e:TimerEvent) {
                activityLevel_pb.setProgress(microphone.activityLevel, 100)
             *  when connection to your stream server done
            private function connectionComplete(e:Event = null) {
                netStream = new NetStream(connection)
                netStream.attachAudio(microphone)
                netStream.attachCamera(camera)
             *   add 0 if less then 10secs
            private function addLeading(nbr) {
                if (nbr<10) {
                    return ("0"+Math.floor(nbr));
                } else {
                    return (Math.floor(nbr).toString());
             *   update visible clock, rotate arrows
            private function updateTimer() {
                timer_txt.htmlText = "<b>"+addLeading(crono/60)+":"+addLeading(crono%60)+"</b>";
                aguja.rotation = aguja.rotation+6;
                if (addLeading(crono/60)>minutero) {
                    aguja2.rotation = aguja2.rotation+6;
                    ++minutero;
                // end if
                ++crono;
            private function on$clockTimer(e:TimerEvent):void
                updateTimer()
            private function startClockTimer() {
                clockTimer.start()
             *  update graphics and start recording
            private function recordBtn$click(e:MouseEvent):void
                if (!isRecording) {
                    startRecording()
                    recordStatus.gotoAndStop("record")
                    recordBtn.visible = false
            private function recordBtn$over(e:MouseEvent):void
                if (!isRecording) {
                    this.gotoAndPlay(65);
            private function recordBtn$out(e:MouseEvent):void
                if (!isRecording) {
                    this.gotoAndPlay(61);
            private function startRecording() {
                if (connection.connected){
                    netStream.publish("mp4:" + dataHolder.filename + ".f4v", "record");
                isRecording = true
                startClockTimer()
                publishButton.gotoAndPlay(2)
                publishButton.buttonMode = true
                publishButton.addEventListener(MouseEvent.CLICK, publishButton$click);
                limitTimer.start()
             *  redirect to finishURL that was passed via flashvars
            private function publishButton$click(e:MouseEvent):void
                stopPublish()
                var request:URLRequest = new URLRequest(dataHolder.finishURL)
                navigateToURL(request, "_self")
            private function stopPublish():void
                netStream.close();
                connection.close();
                limitTimer.stop();
                clockTimer.stop();
                isRecording = false
                recordStatus.gotoAndStop("recordEnd")
                updateTimer();
             *  init microphone
            private function initMicropone():void
                microphone = Microphone.getMicrophone()
                addMicSettings()
             *  init camera
            private function initCamera():void
                camera = Camera.getCamera()
                addCameraSettings()

    Hi,
    Thanks for the details
    First, the quality of the feed we get to the flash player and FMS is highly limited by the capabilities of the webcam that the users have beyond which we cannot improve the quality.
    Next, flash player can encode good quality and hence you should probably find more stuff related to how best you can ingest video from a webcam on to the flash player.
    - Does recording from server side with asc script will increase the quality ?
    No, FMS does not do any type of transcoding/re-encoding stuff. All it does is to 'transmit' and in your case, to flush bits to the disk. So, unless FMS recieves 'Quality', it cannot do much.
    - what configurations files on the server can i adjust to increase the recording quality ?
    From above, it flows that, there are no configurations on the server that can make your quality grow. The configurations are more to do with delivery. It can be tweaked to improve streaming, reduce latency, quick start and more.
    - is there a way to cache locally the stream if the bandwith is not high enough, and when the user stops recording, upload it to the server (it doesn't have to be live or broadcast).
    I don't think flash player can do this.
    Thank you !

  • HELP - Record History - Created by is ANONYMOUS

    Dear All,
    My customer's EBS is 12.1.1, and there are lots of forms shows this issue.
    Help -> Record History ->Created by is ANONYMOUS.
    If create record on forms, then issue doesn't exist.
    My customer really need to figure out what happened in production environment? What can cause this issue?
    Please HELP!!

    My customer's EBS is 12.1.1, and there are lots of forms shows this issue.
    Help -> Record History ->Created by is ANONYMOUS.What is the navigation path? Does this happen to all forms or certain ones only?
    If create record on forms, then issue doesn't exist.
    My customer really need to figure out what happened in production environment? What can cause this issue?Please see these docs.
    'Record History' 'Created By' 'Updated By' 'ANONYMOUS' and -1 within Oracle Human Resources [ID 1225333.1]
    Discrepencies Under 'Help,'Record History','Updated By'. [ID 415959.1]
    APP-FND-01564 ORA-1403 in fdxwho When Viewing Record History In Master Items INVIDITM [ID 334677.1]
    Changing User Password Indicates Record Updated by Anonymous [ID 311621.1]
    Thanks,
    Hussein

  • Need help Recording G-Force VST's Like MInimonsta and M-Tron

    Hello everyone!
    Having a great time with logic pro 7 so far,
    I need some help recording my G-Force synths.
    Do I use the instrument,Rewire, or Audio tracks?
    Any basic setup tips would be golden!
    Thanks Folks
    Abe
    1.5 ghz, 1 gig ram   Mac OS X (10.3.9)  

    You should be using the AU versions... any reason not to or was the VST term used as a generic term for softsynth? They are avalable as AU.
    You would use an Audio Instrument track and then where you would set the input if it were an audio track... in audio instrument this is a pop up for your softdynths/samplers.
    Once you are ready to commit them as audio files then use "export track as audio file".
    J

  • Record a webcam session?

    What program can I use to record a webcam session? (recording someone else's webcam while we are connected)

    I would also like to see video capture in AFCS. It would be preferable to record on my server because of the expense on the adobe side and the difficulties of doing any manipulation.
    For the greatest depth of function I would like to see the recording of whole containers or screen. For example if I has a canvas with 4 cameras and whiteboard. The recorder would record all that takes place within, be it one stream or five. Other items could be contained with the canvas such as a clock and a list of users present.
    The recorder could be expanded to capture the whole screen if needed.
    There are huge possibilities for such a function. Recording sales pitches for training purposes, recording the minutes of meetings or brainstorming sessions etc.
    Thanks, Keith

  • Video stream recording (not webcam) help required

    I am making a media player / recorder type web application in flex 4.
    The application plays video streams streamed from my red5 server.
    I want to give users the ability to make / record clips of the video they are viewing.
    I know that netstream.publish is used to record/save video on the server.
    All the help i've found on google so far just give examples to save video from webcam.
    But i want to save video from a video being streamed from red5 server and being played
    on VideoPlayer control in flex.
    All help is greatly appreciated.
    Thanks.

    Thanks for the reply but i think u misunderstood my problem.
    I am not receiving any RTP Stream but RTMP stream.RTMP is a proprietary protocol of Adobe For Streaming Flash video from Flash Media Server (FMS).
    I again state the problem.
    I am getting an RTMP Stream now i want to convert it into an RTP Stream so that i can process or transmit it further.I want to convert this RTMP Stream to RTP format.
    Anyone plz help me out.I am stuck into this for past 2 days and it is very critical for my project. :-(

  • Recording modified webcam videos

    Hi there,
    Is there a possibility - instead of attaching a camera [via
    ns.attachcamera()] to a netstream - to "attach" e.g. BitmapData to
    netstream. The reason is, that I use BitmapData's .draw method to
    get the webcam video in order to change it, such as with the
    .treshold method. And I want to record and save these altered
    bitmaps (as a video) on the FMS instead the original webcam video.
    This URL gives a good example what I mean!! ...
    http://www.adobe.com/devnet/flash/articles/webcam_motion.html
    Two videos are shown, the left one is the original from the
    webcam, the right one the "modified" video. Only the modified video
    shall be recorded via the netstream .publish method.
    Thanks for any help.

    Hope someone answers you.... I have the exact same question.
    JJ

  • Need help recording three shows at the same time

    I have the FiOS DVR, and have a problem this TV season.  There are 3 shows that we watch that are on at the same time.  if we are home that night, we can record two on the DVR and watch the other in another room.  Not ideal, but we can handle it.  But if we are out, we are hosed.  I have an old series 1 Tivo that I would think I could factor in here....which I could timer record on a different TV.  Any way to do it on my regular TV?  Not sure how I could hook up the Tivo with the DVR and the rest of it.
    Thanks!
    Alan

    DocAlan02 wrote:
    I have the FiOS DVR, and have a problem this TV season.  There are 3 shows that we watch that are on at the same time.  if we are home that night, we can record two on the DVR and watch the other in another room.  Not ideal, but we can handle it.  But if we are out, we are hosed.  I have an old series 1 Tivo that I would think I could factor in here....which I could timer record on a different TV.  Any way to do it on my regular TV?  Not sure how I could hook up the Tivo with the DVR and the rest of it.
    Thanks!
    Alan
    I have a similar setup with a Replay.
    You will need to get a Verizon Digital Adapter for $3.99 per Month and an IR Blaster for your Tivo.
    Connect the Digital Adapter (DCT-700) to the FIOS Coax (May need to use a Splitter).  Connect the Composite Out cables from the DCT-700 to the Tivo.  Connect the IR Blaster from the Tivo to the front of the DCT-700.  Configure the Tivo and tell it you have FIOS Cable and Digital Adapter.  You may need to find the right codes to use to control the FIOS box from the Tivo.
    Once you get it configured you will be able to tell the Tivo to record the 3rd program and it will switch the box to the channel and record it.  If the box is near your other Verizon STBs you will need to hide it or cover the IR Sensor so that the remote for the main STB does not control the Digital Adapter.
    As an added bonus you can connect the Coax Out from the DCT-700 to your Main TV if it has PIP and now you have a 2nd input source to make PIP work.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it.
    If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Need Help Recording From a PC to Final Cut Pro

    Ok First forgive me for my inexperience I'm a Audio Engineer trying to help out my company, because our Video Director left. I work for a Video Game Development company and we always have to record in game video for commercials and this is really becoming a pain to me. The game plays on the PC and I have to record it in small HD segments using a program called fraps because none of the 2 Gig or larger AVI files I record can be opened on the Macs, so I have to go through this crazy conversion process to actually get them to the company that makes our TV commercials. I was Wondering if any of you knew if there was a Box that would let me play the game on the PC and then connect that output to the Mac and Record it in HD directly in Final Cut Pro, and then send that Final Cut Pro Project to the Commercial company. Like using the DVI output of the PC's Video card to a box then output to firewire on the Mac or something like this? Again sorry for my lack of experience and the long post just need some help
    Thanks

    Short answer yes. Longer one is you'll have to look around to find a solution that works for you. There are converters/scalers that will go DVI to video (HDMI) but then you need a capture card for the FCP system. One possible way is two Intensity cards from Blackmagic Design. Put one in each computer and connect them.
    TonyTony

  • I need help recording on my iPad using iRig

    I know that the iRig will work for Garage Band but I need to know it it can play back. Like if I were to play the recorded audio back would it come through an amp if I wanted it too. Also, on microphones that plug directly into the headphone jack there is a third ring around the 1/8in jack that is used for sending audio into the device...what is that called?! Do they make a 1/4in to 1/8in cable that has that third ring?
    I would really appreciate some help. Thanks.

    Nothing. They'll still play if you have flash installed on a PC. But most website developers should be migrating them to the friendlier HTML 5 video container that plays on many more devices across the board including iPhones and iPads and other mobile phones and tablets.
    As far as Adobe, they just stopped development of their mobile version of Flash. (i.e  for Phones and tablets).
    They themselves as a company are not going away, so their other products such as the PDF reader and Media creation suites and yes the desktop version of Flash are still going to be made.

  • Recording from webcam in Flex

    Hi!
    I was wondering if I am able to record the images of a webcam in Flex. Is it possible, and if so, how can I make it?
    I'm using MJPEG images (ByteArray stream), so can it be a possible way to paste/add images to a Movie (or sg like that) object, and then save it?
    Jus a thought, but any solution interests.
    Thanks a lot
    Milo

    Do they allow me to track the mouse easily across the whole
    screen or is it just for pieces?
    I probably should have explained better earlier but I am
    looking to somehow record all their movements across the
    application to get a better idea of how the user is interacting and
    thinking about the experience. I am not really sure what I am
    looking for here but it is my guess that these listeners just check
    for moving x amount of pixels one way or another. Do these allow a
    more robust method of capture?
    Sorry I cannot go any more detailed than that since I am not
    really sure what I am looking for yet - I'm just trying to see what
    is out there and what others might be doing.
    Thanks for your suggestions,
    -Dan

  • Recording from webcam HD

    Hello:
    I need to show on the stage the video from my HD webcam in a local PC and save the video into a file.
    Do you know a way to record the video and save it to mpg or mov, flv, mp4 video file?
    any Xtras, ActiveX or other ways?
    Thank you very much

    I know you can control webcams in Director - via the flash asset
    have a play with valentins old script demos here:-
    http://valentin.dasdeck.com/lingo/flash_camera/

  • I need help recording guitar

    I want to use Garageband to record my guitar music. Money is not an issue. I'll buy some gear if I need to. I just don't know where to begin or what to buy. I just want to record from my acoustic electric guitar and maybe lay some rhythm tracks over the top. Mostly just guitar so I can create a archive of my compositions. Put a halfway decent sounding CD together. Any ideas? Where does one begin.

    poflynn wrote:
    I use a Rode NT2000 condenser Mic and a Beyerdynamic dynamic mic. I also plug the guitar in and record 3 tracks at a time.
    Out of curiosity, where do you place each mic and which Beyerdynamic do you use? (oh, and what kind of guitar do you have)?
    The Beyerdynamic is a TGX 58 http://asia-pacific.beyerdynamic.com/en/music-performance/products/microphones/v ocals-speech.html?txsbproductdatabase_pi1%5BshowUid%5D%5BshowUID%5D=3&tx_sbproductdatabasepi1%5BshowUid%5D%5BbackPID%5D=49&cHash=e15356a2b4
    It was the first mic I got and its probably not the best choice. I have it as a multi purpose mic.
    In terms of mic placement I am constantly tweaking. Right now the NT2000 is in front of the sound hole about 1ft-300mm away. The TGX 58 is positioned about half way between the sound hole and the head, slightly closer than the NT. I must admit though its the result of 'monkey see, monkey do.' I got the info from this site http://www.recordacousticguitar.com/ I am currently not happy though with my results. My studio room has to take a large portion of the blame. Its layout and acoustic treatment was not very well thought out, but I am not sure where to begin to correct it. Also, getting to know the mics has been hard. The NT has some adjustments available but I am afraid my 'ear' is still on the steep side of the learning curve. One thing I have noticed is the mics ability to pick up sympathetic string resonance. Its hardly noticeable when listening to the guitar live, but upon playback its maddening. My current project involves recording some of my beginner students compositions. They are single note 1st and 2nd string melodies. I have resorted to shoving a folded piece of card board under strings 3-6 simply to damped the strings. When I just plug the guitar in and record via the bridge pickup, the sympathetic humming is less than what comes from the NT. Once done I then just muck around with all three tracks with fx etc (thats another story).
    I use 2 acoustic guitars with bridge pickups. My nylon string guitar is a Greg Bennett C2CE http://www.gregbennettguitars.com/c2ce.html
    My steel string is a Yamaha CJ-838S II similar to this one http://www.guitar-museum.com/guitar-231-VINTAGE-YAMAHA-CJ-838S-II-ACOUSTIC-GUITA R . I have had this instrument since new in 1984. I had a pick installed when I had some fret work done and the action reworked in 1993. Its a nice guitar.
    Trying to record halfway decent acoustic guitar has not been easy. I am hardly ever pleased. I don't know if I am picky or simply don't know what I am doing. Probably a combo of both. It dosn't help that I have crap monitors as well.
    Cheers. G.

  • Possible to add cue points to a FLV recorded by webcam?

    Hello,
    I am wondering if it is possible to add/inject a cue point to an FLV server-side that has been recorded/published from a users webcam using FMS3.5.
    Thank you

    Sure, you can do that on the server side. Assume you have a stream named foo that is recording, you can do something like:
    var s = Stream.get("foo");
    s.send("myCuepointFunction", var1, var2, var3);
    When played back, the client side function "myCuepointFunction" will be invoked on the stream's client property (or, in AS2, you'd need a function on the netstream object named myCuepointFunction).

  • Help with a webcam driver

    I was giving a webcam today by a friend of mine that he said he didn't use. It's relatively old, and I figured I would give it a try.
    It's model no. Pd1100, Creative Labs cam.
    I'm using Windows XP Professional
    I've already done resarch and couldn't find anything at all to get this thing to work, if anyone could help me out I would be eternally grateful.

    There are two versions of the driver available on the Internet and on the Creative site. The newer one I believe however is just an upgrade version, not the full installation but I could be mistaken. I have a copy of the original instrallation CD that came with the PD1110 (not PD1100) so if you want to PM me I can set up an image somewhere for you to grab. Be advised however that this is the software I have been unable to uninstall so you may experience problems.
    -noz

Maybe you are looking for

  • Upgrading to Mountain Lion from Snow Leopard

    I have a mid 2010 MacBook Pro (OS X 10.6.8) 2.53 GHz Intel Core i5 with 4 GB of memory. This is the first Mac I have ever owned and I am wanting to upgrade to Mountain Lion but I am getting lost in all the information that is out there in regards to

  • Internal order's profit center overrides FI document profit center

    Dear all, I have a problem in posting FI document. here is the situation. 1.the company create statistical IO as jobs to see performance by jobs. 2.when receive money from customer. accountant post FI doc. ref to stat IO and manually judge how much t

  • What's the best way to do it?

    hi! i'm new to swing and i have a few general questions to ask. i have to display a picture and i need to have buttons and text areas, maybe sliders too on the same thing. what's the best way to do it? do i make a panel with the buttons, another pane

  • Is iMac Drive dead?

    I think my 2007 24" iMac HD is dead, want to confirm. Cannot open in recovery HD, get folder with question mark on start up.  Startup from ext HD, it appears in disk utility with name of "media".  I cannot use repair or verify disk since the are grey

  • Open link with middle click to a new tab goes back to original page when selected

    Scenario: I am on a page (eg. a google search) and middle click a link to open it in a new TAB. The page opens in an adjacent TAB. I may or may not open other links in the same way. Problem: As soon as I select anyone of these new TABS it automatical