I want to verify if a url is video raw file link or not, for example:

<http://hidden_path/video_name.mp4>

Below is my current code:

```
def is_video(url):
    r = None
    try:
        r = urllib.request.urlopen(urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'}))
    except:
        return False
    content_type = r.getheader("Content-Type")
    if re.match("video*", content_type):
        return True
    return False

```

This code will have issue if the video url is a big video, and it may cause timeout error on server.

Are there any better approaches?