use ffmpeg to convert pics to videos