Only take into account the "config" parameter; the video width/height is set by the video camera and can be huge