# MP4 Content-Type Header

**URL:** <https://www.ruby-forum.com/t/mp4-content-type-header/220158>\
**Category:** NGINX\
**Created:** [May 30, 2012, 11:45pm UTC](https://www.ruby-forum.com/t/mp4-content-type-header/220158 "2012-05-30T23:45:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [May 30, 2012, 11:45pm UTC](https://www.ruby-forum.com/t/mp4-content-type-header/220158/1 "2012-05-30T23:45:31Z")

</div>

Hello All,

I am noticing when I run curl on a MP4 file I get the  
application/octet-stream content type:

curl -I [http://192.168.3.117/videofile.mp4](http://192.168.3.117/videofile.mp4)

HTTP/1.1 200 OK  
Content-Type: application/octet-stream

Is there a reason why it wouldn’t be “video/mp4”?

A few users have said “it is causing issues in players”. (vague I know)

Here is the vhost: [https://gist.github.com/4b4e6e8ce2506d35b168](https://gist.github.com/4b4e6e8ce2506d35b168) (very  
long to paste in here IMO, if I am breaking a rule I am sorry, I will  
paste it in the email from now on)

nginx version: nginx/1.2.0

configure arguments: --with-http\_stub\_status\_module  
–with-http\_ssl\_module --with-http\_secure\_link\_module  
–add-module=/home/justin/ngx\_cache\_purge-1.5  
–add-module=/home/justin/ngx\_mp4\_module-0.9.4  
–add-module=/home/justin/ngx\_flv\_module-0.9

Thanks in advance!

Regards,

Justin D. [http://www.twitter.com/jdorfman](http://www.twitter.com/jdorfman)

NetDNA [http://www.netdna.com](http://www.netdna.com)  
The Science of Acceleration

---

<div class="post-metadata">

**Author:** ![jmadtech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7cd45c/32.png) [@jmadtech](https://www.ruby-forum.com/u/jmadtech)\
**Post date:** [May 30, 2012, 11:48pm UTC](https://www.ruby-forum.com/t/mp4-content-type-header/220158/2 "2012-05-30T23:48:37Z")

</div>

Hey,

check your’s /etc/nginx/mime.types file. And add the following line if  
missing in the types block:  
video/mp4 mp4;

Ales

* * *

## Ales Zoulek +420 604 332 515 Jabber: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![jmadtech](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7cd45c/32.png) [@jmadtech](https://www.ruby-forum.com/u/jmadtech)\
**Post date:** [May 30, 2012, 11:56pm UTC](https://www.ruby-forum.com/t/mp4-content-type-header/220158/3 "2012-05-30T23:56:39Z")

</div>

Perfect! Thanks Ales. =)

Regards,

Justin D. [http://www.twitter.com/jdorfman](http://www.twitter.com/jdorfman)

NetDNA [http://www.netdna.com](http://www.netdna.com)  
The Science of Acceleration
