Using Nginx to stream h.264 video

Kaya Saman kayasaman at gmail.com
Sat Mar 17 20:01:33 UTC 2012


Thanks a lot Cliff I really appreciate the help!

However as per the documentation it claims 
{http://nginx.org/en/docs/http/ngx_http_mp4_module.html}:

"

location /video/ {
     mp4;
     mp4_buffer_size     1m;
     mp4_max_buffer_size 5m;
}


"

as the configuration for the module.

I added the above to the nginx.conf file and now nginx won't start so 
I'm guessing that it's been added to the wrong place??


Also I guess what I'm trying to find out more then anything else is if 
Nginx will be able to serve up information like YouTube? By embedding 
the video into an html page then streaming via web browser with 
sufficient plugin or straight to a player such as Mplayer or Xine?


Is there any guide or howto on how to do this as the documentation seems 
a little sparse!


Regards,


Kaya



On 03/17/2012 07:54 PM, Cliff Wells wrote:
> On Sat, 2012-03-17 at 19:16 +0000, Kaya Saman wrote:
>> On 03/17/2012 06:41 PM, Cliff Wells wrote:
>>> On Sat, 2012-03-17 at 17:53 +0000, Kaya Saman wrote:
>>>
>>>> Is this the mp4 module that I need to be able to stream or is there an
>>>> embedded solution?
>>> http://nginx.org/en/docs/http/ngx_http_mp4_module.html
>> Thanks. The links states:
>>
>> " This module is not built by default, it should be enabled with the
>> --with-http_mp4_module configuration parameter. "
>>
>> So does this mean that from the **official** repo stated below that
>> Nginx isn't built with this module???
> It is.  Here's the output from "nginx -V" on one of my CentOS systems
> with the official nginx installed:
>
> --prefix=/etc/nginx/
> --sbin-path=/usr/sbin/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log
> --pid-path=/var/run/nginx.pid
> --lock-path=/var/run/nginx.lock
> --http-client-body-temp-path=/var/cache/nginx/client_temp
> --http-proxy-temp-path=/var/cache/nginx/proxy_temp
> --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
> --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
> --http-scgi-temp-path=/var/cache/nginx/scgi_temp
> --user=nginx --group=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_random_index_module
> --with-http_secure_link_module
> --with-http_stub_status_module
> --with-mail
> --with-mail_ssl_module
> --with-file-aio
> --with-ipv6
> --with-cc-opt='-O2 -g -march=i386 -mtune=i686'
>
>> If not then where do I find the source code to get it or can I grab
>> the module from the repo, as in yum install mp4_module?
> The source code is available at http://nginx.org
>
> More information on Nginx can be found at http://wiki.nginx.org
> (including links to the source).
>
> Regards,
> Cliff
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list