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

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Dec 6 12:17:56 EET 2016


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

> While compiling from sources on linux platform ,i set CFLAG/CXXFLAG to
> -fPIC.

> For ffmpeg -fPIC is not necessary (as libraries are static).

If it is not necessary, don't use it.
(If it would not have negative effects, it would likely be the default.)

> How you were able to detect the image compression format information (jpeg)
> from the attached image files?

I used "ffmpeg -i input", but I assume "file input" would also have helped.

> Also , i tried
> ffmpeg  -r 1 -vcodec mjpeg -i image%2d.png -vcodec libx264 -pix_fmt yuv420p
> video.mp4
> and i am stuck at:
>
> ffmpeg version 3.2.1 Copyright (c) 2000-2016 the FFmpeg developers

Again: Only current FFmpeg git head is supported here.

>   built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
>   configuration: --prefix=/home/apps/FFMPEG/3.2.1/gnu --extra-cflags=-fPIC
> --extra-cxxflags=-fPIC --enable-libx264 --enable-gpl

See above.

> [libx264 @ 0x2248380] *width not divisible by 2* (481x480)

What is unclear about this message?
(Except for the asterisks.)

Please remember not to top-post here, Carl Eugen


More information about the ffmpeg-user mailing list