capture time lapsed images and create its video by ffmpeg