#!/bin/sh -x

# Encode picture frames in a movie
# $1: JPG files to encode
# $2: Frames Per Second (1.0 - 4.0)
# $3: Output .AVI file (if desired)

mencoder "mf://$1" -mf fps=$2:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o $3
