video: parse the video-mode environment variable