ffmpeg: move video stats code to do_video_out().