Tue, 15 Apr 2008 13:20:10 EST
After finally understanding
AS2 well, I wanted to try my hand at Flex development using Adobe's
free Flex SDK in combination with
FlashDevelop and
Red5.
It also just so happens that my father needed some sort of security camera solution for his business. I thought, "hey Red5's ability to record streams would be a perfect solution for this"!
I was surprised how easy it is to use Flex(AS3) in comparison to AS2. Using Mtasc and Swfmill for hacking together AS2 applications has been completely replaced by Adobe's MXML. Adobe also fixed a lot of the complication surrounding event listeners and having to use external 3rd party classes like delegate for AS2. Flex is definitely not hacky like AS2 was and manipulating components with MXML seems a lot more similar to using controls in visual basic and ASP in visual studio.
Anyway, on to the details of the surveillance system. In a traditional surveillance system, the camera is always recording which wastes tape. I would also imagine that the tapes wear out fast and are expensive to archive and physically store. I built my application so that it will only record video streams once a certain level of motion is detected.
The motion threshold is easily adjustable with a horizontal slider control. Basically you connect to a red5 server and once the camera detects enough motion it makes a stream to red5 and red5 then records 10 seconds of video. In my test setup I use a laptop with the swf client and webcam which is connected wirelessly to a local router.
I also have the same machine connected wirelessly to the router. In this instance, it really wouldn't matter if someone smashed your security camera because the video stream would have already been sent remotely to wherever the Red5 video server is running. Other advantages would be that you could have a 3rd party manage and archive the video streams remotely for you and that you could implement this into your existing businesses wireless network.

While testing yesterday, I had this setup running for about six hours. It didn't capture anything interesting, but it did get a
video of my father returning from work like it is supposed to.
The current disadvantage to this system is that it needs a computer of some sort tethered to the camera you want to use for monitoring. In any case, I am currently looking for a way to avoid this in my other robotic experiments and am confident I will be able to find a standards compliant solution. The 802.11 self contained
Airborne modules from Quatech look promising at the moment.
My next step on this solution will be to include the servo pictured in my
demonstration of flash electronic control in order to allow the camera to autonomously pan as it senses motion.

Charles Palen has been involved in the technology sector for several years. His formal education focused on Enterprise Database Administration. He currently works as the principal software architect and manager at
Transcending Digital where he can be hired for your next contract project. Charles is a full stack developer who has been on the front lines of small business and enterprise for over 10 years. Charles current expertise covers the areas of .NET, Java, PHP, Node.js, Javascript, HTML, and CSS. Charles created
Technogumbo in 2008 as a way to share lessons learned while making original products.
Comments are currently disabled.