How to record Audio and Video at the same time into flv in Adobe air 2.0 ? So that Video and 开发者_运维问答Audio will be sinchronised?
Open Source libs and Blog aricales are wellcomed!)
All I can help with are a few links, but I haven't tried this to know how feasible it actually is:
- Audio - Recording record microphone to wav devnet article or devnet cookbook article.
- Audio - Compression - MP3 Compression with Lame and AIR 2.0 or MP3 encoder in Flash with Alchemy
- Video - SimpleFlvWriter.as is a bit outdated and only writes images, not audio, but might be handy to get started. Also have a look at the FLV Specs.
At this point it looks like trouble waiting to happen: Where do you store the images/sound until you write encode them ? in RAM ? If you want to cache uncompressed files, will there be audio delays ?
It might be worth trying something different, like C++. Or at least, write some command line tools for recording/encoding for performance reasons and use AIR/native process just for the looks/interaction ?
HTH
精彩评论