Converting png files to a movie?

I've been trying to make a movie using a bunch of png files, however without any success. The following command

convert -delay 100 -loop 0 *.png animation.mpeg

yields

convert.im6: delegate failed `"ffmpeg" -v -1 -mbd rd -trellis 2 
-cmp 2 -subcmp 2 -g 300 -i "%M%%d.jpg" "%u.%m" 2> "%Z"' @ 
error/delegate.c/InvokeDelegate/1065.

The odd thing is that I am successfully be able to make a gif using the following command

convert -delay 100 -loop 0 *.png animation.gif

Does anybody know how to solve this problem?


Solution 1:

See create slideshow from images. Their suggestion is to use "libx264" for better quality. The images need a sequence number (could that be your problem?)

ffmpeg -framerate 1/5 -i *%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4

(here %03 means a 3 digit numbering).