calculating the width by video-size