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

Puneet Singh singh.punit1990 at gmail.com
Fri Dec 2 12:22:05 EET 2016


Hi all,
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. (command & error
logs attached: ffmpeg_errors.txt)


The following seems to work for me:
ffmpeg -f concat -safe 0 -i <(cat <<EOF
file '$(pwd)/image01.png'
duration 1
file '$(pwd)/image02.png'
duration 1
file '$(pwd)/image03.png'
duration 1
EOF
)  output.avi

Is there something on which i am missing out?
Please help.

Thanks & Regards,
Puneet
-------------- next part --------------
Errors:
ffmpeg -r 1 -i image%02d.png -vcodec libx264 -y -an video.mp4
ffmpeg version 3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  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
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[png @ 0x35afce0] Invalid PNG signature 0xFFD8FFE000104A46.
    Last message repeated 4 times
[image2 @ 0x35ae440] decoding for stream 0 failed
[image2 @ 0x35ae440] Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, image2, from 'image%02d.png':
  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, none(pc), 25 fps, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x35ae1a0] Unable to parse option value "0x0" as image size
[buffer @ 0x35ae1a0] Unable to parse option value "-1" as pixel format
[buffer @ 0x35ae1a0] Unable to parse option value "0x0" as image size
[buffer @ 0x35ae1a0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 0x35b42e0] Error applying options to the filter.
Error opening filters!

ffmpeg -r 30 -f image2 -i 'image%d.png'  out.mp4
ffmpeg version 3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  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
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[png @ 0x2210e60] Invalid PNG signature 0xFFD8FFE000104A46.
    Last message repeated 4 times
[image2 @ 0x220f420] decoding for stream 0 failed
[image2 @ 0x220f420] Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, image2, from 'image%d.png':
  Duration: 00:00:00.17, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, none(pc), 30 fps, 30 tbr, 30 tbn, 30 tbc
File 'out.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x2214da0] Unable to parse option value "0x0" as image size
[buffer @ 0x2214da0] Unable to parse option value "-1" as pixel format
[buffer @ 0x2214da0] Unable to parse option value "0x0" as image size
[buffer @ 0x2214da0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 0x2215100] Error applying options to the filter.
Error opening filters!



ffmpeg -framerate 1 -i image\%d.png -s:v 1280x720 -c:v libx264 -profile:v high  -pix_fmt yuv420p daimler_man.mp4
ffmpeg version 3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  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
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[png @ 0x2563dc0] Invalid PNG signature 0xFFD8FFE000104A46.
    Last message repeated 4 times
[image2 @ 0x2562480] decoding for stream 0 failed
[image2 @ 0x2562480] Could not find codec parameters for stream 0 (Video: png, none(pc)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, image2, from 'image%d.png':
  Duration: 00:00:05.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, none(pc), 1 fps, 1 tbr, 1 tbn, 1 tbc
File 'daimler_man.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x257cee0] Unable to parse option value "0x0" as image size
[buffer @ 0x257cee0] Unable to parse option value "-1" as pixel format
[buffer @ 0x257cee0] Unable to parse option value "0x0" as image size
[buffer @ 0x257cee0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 0x257cb20] Error applying options to the filter.
Error opening filters!



ffmpeg -f concat -safe 0 -i <(cat <<EOF
file '$(pwd)/image01.png'
duration 1
file '$(pwd)/image02.png'
duration 1
file '$(pwd)/image03.png'
duration 1
EOF
) -framerate 1 output.avi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: image01.png
Type: image/png
Size: 15111 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20161202/8d6de386/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image02.png
Type: image/png
Size: 15484 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20161202/8d6de386/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image03.png
Type: image/png
Size: 14860 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20161202/8d6de386/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image04.png
Type: image/png
Size: 17236 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20161202/8d6de386/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image05.png
Type: image/png
Size: 17354 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20161202/8d6de386/attachment-0004.png>


More information about the ffmpeg-user mailing list