capture video with ffmpeg