MIME Type for .MP4 files is video/mp4

I almost made a mistake and put the wrong MIME Type into IIS7 for some MP4 videos that I am serving from a web server.  A search for “MP4 mime type” returns two different results:

  • video/mp4 (correct)
  • video/mpeg (not correct)

I was not so sure if there was a difference (although most results did lean toward video/mp4, there were a good number of video/mpeg recommendations out there to make me question the correct one).

To resolve the issue I tried both in IIS7 and Chrome.

For video/mp4 Chrome will give you the HTML5 video player (a very nice user experience):

image

 

For video/mpeg Chrome will launch QuickTime... blah!

image

 

I didn’t test any other browsers... this was proof enough for me that video/mp4 is the correct MIME type of .MP4 files.

 

Technorati Tags: ,,
Published 17 February 2011 11:45 AM by Jeff Widmer
Filed under: , ,

Comments

# BKG said on 31 May, 2011 01:08 PM

Thanks, was looking for the same thing. As you have tried it already will definitely save my efforts.

# Jeff Widmer said on 29 October, 2012 03:47 PM

Hi apsolut,

You can add your own mime type by using the "Add..." button in IIS7.  Or you can add it on a site by site basis in the web.config.

-Jeff

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

Syndication