# Ngx\_http\_mp4\_module. Help me!

**URL:** <https://www.ruby-forum.com/t/ngx-http-mp4-module-help-me/244625>\
**Category:** NGINX\
**Created:** [May 16, 2016, 6:51am UTC](https://www.ruby-forum.com/t/ngx-http-mp4-module-help-me/244625 "2016-05-16T06:51:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [May 16, 2016, 6:51am UTC](https://www.ruby-forum.com/t/ngx-http-mp4-module-help-me/244625/1 "2016-05-16T06:51:27Z")

</div>

I compiling nginx for streaming videos on my web site by these options :  
nginx version: nginx/1.9.15  
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)  
built with OpenSSL 1.0.1e-fips 11 Feb 2013  
TLS SNI support enabled  
configure arguments: --user=root --group=root --prefix=/usr/local/nginx  
–sbin-path=/usr/local/nginx/nginx  
–conf-path=/usr/local/nginx/nginx.conf  
–error-log-path=/usr/local/nginx/logs/error.log  
–http-log-path=/usr/local/nginx/logs/access.log  
–http-client-body-temp-path=/usr/local/nginx/tmp/client\_body  
–http-proxy-temp-path=/usr/local/nginx/tmp/proxy  
–http-fastcgi-temp-path=/usr/local/nginx/tmp/fastcgi  
–pid-path=/usr/local/nginx/nginx.pid --lock-path=/var/lock/subsys/nginx  
–with-http\_ssl\_module --with-http\_realip\_module  
–with-http\_addition\_module  
–with-http\_sub\_module --with-http\_dav\_module --with-http\_flv\_module  
–with-http\_mp4\_module --with-http\_gzip\_static\_module  
–with-http\_stub\_status\_module --with-http\_perl\_module --with-mail  
–with-mail\_ssl\_module --with-pcre --with-pcre=/root/pcre-8.38  
–with-zlib=/root/zlib-1.2.8  
–add-module=/root/Nginx-limit-traffic-rate-module-master/  
–add-module=/home/ngx\_http\_hls\_module-master

and this is my configuration on Nginx for pseudo streaming on nginx.conf  
:  
location /video/ {  
autoindex on;  
autoindex\_exact\_size off;  
limit\_conn addr 5;  
limit\_rate\_after 1m;  
limit\_rate 20k;  
mp4;  
mp4\_buffer\_size 100k;  
mp4\_max\_buffer\_size 5M;  
}  
in file nginx.conf I add some lines:  
http {  
include mime.types;  
include /usr/local/nginx/site-enable/\*.conf;  
limit\_conn\_zone $binary\_remote\_addr zone=addr:32m;

I want to limit the download speed video and limit buffer but when I run  
the  
video, the command will not work  
[http://www.example.com/video/1111.mp4?start=100](http://www.example.com/video/1111.mp4?start=100)  
only command mp4 work. Please help me fix this, I took a whole week to  
research it

Posted at Nginx Forum:

> **[ngx\_http\_mp4\_module. Help me !!!!!!!!!!](https://forum.nginx.org/read.php?2,266914,266914#msg-266914)**
>
> I compiling nginx for streaming videos on my web site by these options : nginx version: nginx/1.9.15 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled configure arguments:...
