Ask Your Question

Revision history [back]

decode avi with png codec [MPNG] problem

I've encoded an image sequence with ffmpeg with following command:

ffmpeg -framerate 10 -i image-%5d.png -c:v png -vf "fps=10" mpng.avi

it worked ok, I have following info about this file:

encoder : Lavf56.16.102
Duration: 00:00:12.30, start: 0.000000, bitrate: 5422 kb/s

Stream #0:0: Video: png (MPNG / 0x474E504D), rgb24, 1280x800, 5461 kb/s, 10 fps, 10 tbr, 10 tbn, 10 tbc

The problem is, with openCV it doesn't want to read the frames, it returns me 'NoneType' just as if there is nothing in file. The file opens correctly in both VLC player and Windows Mediaplayer. For example with targa codec everything works with openCV, so there probably a minor bug in bindings or? Can someone please look into this problem? I am on Windows 7 64 bit, cv version 2.4.10