how to use custom video shortcodes

How do I insert video into a post with a custom shortcode. I need to resize the video.