Asus Eee PC netbook tip / howto: Using the webcam

(Nederlandse versie)
back to Eee PC netbook notes and tips index

Note: this tip applies to an Eee running Eeedora (or Fedora), if you're still running the original Linux distribution supplied by Asus, your mileage may vary.

The webcam is available at /dev/video0. It is enabled at startup with this line in /etc/rc.local:
echo 1 > /proc/acpi/asus/camera
To make sure that also a regular user can use it, add this line:
chmod o+rw /dev/video0

capturing single shots

A nice tool to capture shots from the camera is fswebcam (run yum install fswebcam as root), for example:

fswebcam -r 640x480 --jpeg 85 -D 1 shot.jpg

At higher resolutions you have to skip a few frames before the exposure "settles" (also this example saves to PNG at maximum compression instead of to JPEG):

fswebcam -r 1280x1024 --png 9 -D 1 -S 3 --save shot.png

capturing single shots while watching

For this you can use mplayer (to install, run yum install mplayer as root, more elaborate installation instructions are here):
mplayer tv:// -fps 30 -vf-add screenshot

The screenshot filter is there so you can save camera shots to PNG files: press 's' while mplayer is running.

ucview

This is a nice GUI driven tool that allows you to do, among other things, time-lapse recordings (yum install ucview to install).


back to notes and tips index