video_opts and frame_n can have internal linkage.