If you add to command line -framerate
this will make what you want. The command will be:
ffmpeg -pattern_type glob -framerate 5/8 -i '*_0[0-5].png' -framerate 5/8 -r 25 -t 8 -c:v libx264 -pix_fmt yuv420p output.mp4
This value (5/8
) will ensure you have 5 "frames" for 8 seconds