Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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"' @ 

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?

share|improve this question
Possible duplicate of How can I create a video file from a set of jpg images? – Carl H Mar 14 at 11:26
Not quite an exact duplicate, but I asked almost the same thing but with jpg files -… – Carl H Mar 14 at 11:27
up vote 7 down vote accepted

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).

share|improve this answer
Thanks for your reply. I've a folder that only contains the files: 0000_U_field_matrix_3sol_second_order_num.png, 0001_U_field_matrix_3sol_second_order_num.png, ..., 1000_U_field_matrix_3sol_second_order_num.png. When I write your code as follows: ffmpeg -framerate 1/5 -i *%04d_U_field_matrix_3sol_second_order_num.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4, then it says: Could find no file with path '*%03d_U_field_matrix_3sol_second_order_num.png' and index in the range 0-4 *%03d_U_field_matrix_3sol_second_order_num.png: No such file or directory – Hunter Mar 14 at 10:44
What am I doing wrong? – Hunter Mar 14 at 10:45
4 digits in your file name? and are they in sequence? If not you need to supply all the files (dont use wildcards) – Rinzwind Mar 14 at 10:53
Yeah it runs from 0 to 1000, and yeah they are all in a continuous sequence (no numbers are missing). (I'm producing these files my self using c++, so in theory I can decide what to call them) – Hunter Mar 14 at 11:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.