try to get the width and height from video stream