work on frame-by-frame mode: check for ffmpeg