calculating video width and height dynamically, then inserting video