Sunday, September 20, 2009

Remote Control Camera

I read about another powerful package of free and open source software (FOSS) today. This software application can control over 1,100 different cameras. The command is gphoto2. With this command you can instruct a camera to take a picture, retrieve pictures, list files on the camera, delete files off the camera, etc...

I like birdwatching and taking pictures of birds. I could never get close enough to take a good picture until now. With gphoto2 I can set my camera on a tri-pod in my backyard right in front of my bird feeders. I connect the camera via USB to a netbook. The netbook sits under the camera on the tri-pod. The netbook is connected to my wireless router via Wi-Fi. I have a computer in the living room that has a window view of my feeders. I remotely connect to my netbook using the ssh command. When a bird comes in to feed I execute the gphoto2 command on the netbook and now I've got an up-close-and-personal photo of the bird.

Here is the command syntax I'm using on my netbook running Ubuntu 9.04 operating system: gphoto2 --capture-image --get-file capt0000.jpg --folder /store_00010001 --hook-script test-hook.sh --force-overwrite The gphoto2 command above tells the netbook to instruct the camera to take a photo, get the file from the camera and display it. I can then decide whether or not it is a keeper. If it is a keeper I copy the file from the netbook to my computer in the living room with the following command: scp 192.168.111.2:/home/htplainf/capt0000.jpg capt0009.jpg The command scp above performs a secure copy from the netbook to the computer in the living room.

I didn't get to spend much time taking pictures due to the inclement weather but I did iron out my work flow. Below are a couple shots of up-close-and-personal cardinals. Click on the photos to enlarge.

I'm frequently amazed by the free and open source Linux operating system Ubuntu. If it can be done with software it can be done on Linux and at no cost to the user.

Saturday, September 19, 2009

Compilation Video of the 2005 Ravenel Bridge Fireworks Show

On July 14, 2005 the cities of Charleston and Mt Pleasant SC celebrated the opening of the Arthur Ravenel Jr Bridge with a magnificent fireworks show. I snapped over 400 pictures that night. I published the photos to my website PatrickArchibald.com. The next day the photos went viral. The site went down for a few hours while I negotiated extra bandwidth with my web hosting provider. Good times.

Recently while exploring video encoding on my Ubuntu 8.10 Linux computer I ran across the mencoder command. One of the many things you can do with the mencoder command is create videos from images.

My 400 fireworks photos are compiled at 15 per second in the video below. Enjoy the next 28 seconds.

Below is the command syntax I used to create this video.
mencoder "mf://*.jpg" -mf fps=15 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4

I'm frequently amazed by the free and open source Linux operating system Ubuntu. If it can be done with software it can be done on Linux and at no cost to the user.