code for resizing videos