Which ffmpeg command to use convert pngs to video?
temp%d expands to temp0, temp1 ... temp10 ... and so on.

For temp0000, you need temp%04d

and the full command should be

ffmpeg -framerate 60 -i temp%4d.png -i a.mp3 -pix_fmt yuv420p output.webm