7

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?

11

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

  • 2
    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 '16 at 10:53
  • can I use the same exact command to convert to avi format or do I have to add additional parameters? – Mona Jalal 3 hours ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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