#
# grabs 25 images from /dev/video0 and saves as ppm
#
> grabv4l 0 -ppm -n 25

#
# makes a video file from individual ppm images
#
> ls -1 `pwd`/*.ppm > images.list
> ppm2avi images.list 384 288 -o video.avi -fps 12
> ls video.avi

#
# makes a video file from ANY (supported) individual mages
#
> tar -zxvf images.tar.gz
> ls -1 `pwd`/images/*.jpg > images.list
> x2avi images.list 384 288 -o video.avi -fps 12
> ls video.avi

#
# make an empty video
#

> makeemptyavi 160 128 -colorname blue -nframes 100 -o blue.avi
> mplayer blue.avi
> makeemptyavi 160 128 -colorname red -nframes 100 -o red.avi
> mplayer red.avi

#
# reads the header of a video
#
> aviduration red.avi -verbose

width = 160
height = 128
nframes = 100
fps = 25
bitrate = 0
duration = 4
codec = [DIVX]

#
# Extracts images from a video and saves as ppm
#
> mkdir red
> avi2avippm red.avi -ffmpeg -ppm
> mv *.ppm red/
> mkdir blue
> avi2avippm blue.avi -ffmpeg -ppm
> mv *.ppm blue/

#
# Makes a video from TWO list of images
#
> ls -1 `pwd`/red/*.ppm > red.list
> ls -1 `pwd`/blue/*.ppm > blue.list
> duoppm2avi red.list blue.list 160 128
> mplayer output.avi