Error when Using ffmpeg

view story

http://askubuntu.com – I'm trying to create a video file from a series of JPGs using the following command:- ffmpeg -f image2 -i img*.jpg -s 640x480 movie.mpg but it fails after generating a lot of output with the following:- <lots of output, removed> Stream #0.0 -> #89.0 Stream #0.0 -> #90.0 Stream #0.0 -> #91.0 Stream #0.0 -> #92.0 Press [q] to stop encoding [mjpeg @ 0x95dfac0]get_buffer() failed (-1 0 0 (nil)) Video encoding failed What's causing the error and how can I fix it? (HowTos)