3

I'm writing a flex 4.5 application that's supposed to capture a video from a webcam and audio from microphone and save it in some video format (i don't care which format).

I use VideoDisplay to display the webcam. how can I fetch and play audio in real time ?

Is there a way to save the video locally without using a flash media server?

Elnur Abdurrakhimov
  • 44,533
  • 10
  • 148
  • 133
ufk
  • 30,912
  • 70
  • 235
  • 386
  • The audio can be accessed via the `flash.media.Microphone` class. I'm also looking for a way to archive the a/v streams locally in an AIR app, so I'm hoping someone has a good answer for you on this one... :) – ETWW-Dave Jul 12 '11 at 17:29

2 Answers2

1

Flash/Flex does not have video encoding capabilities. You will need to send to a server for the encoding.

Sorry, I know this isn't good news. :\

Nate
  • 2,881
  • 1
  • 14
  • 14
  • 1
    Are you sure that's true? If you create a NetStream with the camera and microphone attached to it, it sends (IIRC) a perfectly viable h263 stream to the endpoint - if there was a way to set an event to catch the data in the buffer for the NetStream and write it to a FileWriter, I would think that it would accomplish the goal. I just haven't found a way to do that :/ – ETWW-Dave Jul 12 '11 at 18:06
  • He's right, it can't do it right now within installing a 3rd party local 'server' and streaming the data to that. – J_A_X Jul 12 '11 at 18:30
0

You can check with the red5Recorder which is a player built using flex builder and configurable to any recorder like Red5 server or Flash FMS. You can check with the open source code to understand that.

Chinjoo
  • 2,697
  • 6
  • 28
  • 45