This can be done with mencoder, which is part of mplayer.
The command you will probably need looks like
Code:
mencoder mf://*.jpg -mf w=720:h=576:fps=1:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi
just fiddle the fps for the timing of the slides.