Added automatic scaling to the video.