Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to convert 200 jpg files to an mp4 w/ ImageMagick. Receiving the same error over and over again

I'm trying to convert 200 .jpg files that were .ppm files into one .mp4 file.

In the same directory as the .jpg files, I ran this code:

convert -delay 6 -quality 95 test*ppm movie.mp4

and received this error message:

convert: no images defined `movie.mp4' @ error/convert.c/ConvertImageCommand/3210.

What caused this error?

like image 372
fmartin Avatar asked Aug 03 '15 03:08

fmartin


2 Answers

Nevermind, I just ended up using ffmpeg. This is the code that I used:

ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' -c:v libx264 out.mp4
like image 142
fmartin Avatar answered Sep 28 '22 00:09

fmartin


From what I am reading the images you are running the command on have a .jpg extension.

Try

convert -delay 6 -quality 95 *.jpg movie.mp4
like image 23
Bryan Reilly Avatar answered Sep 28 '22 00:09

Bryan Reilly