[FFmpeg-user] unable to convert png to movie, error: Invalid PNG signature ,

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Dec 2 13:21:10 EET 2016

2016-12-02 11:22 GMT+01:00 Puneet Singh <singh.punit1990 at gmail.com>:

> I am trying to convert a set of images to a video file. I have tried
> various ffmpeg command options but they all have failed.

> ffmpeg -r 1 -i image%02d.png

Since your files are actually jpeg, not png, you have to force the
right decoder:
$ ffmpeg -r 1 -vcodec mjpeg -i image%2d.png

> --extra-cflags=-fPIC

Why do you think that this makes sense?

Please remember that on this mailing list, only current
FFmpeg git head is supported.

Carl Eugen

More information about the ffmpeg-user mailing list