mp4 module

Igor Sysoev igor at sysoev.ru
Fri Sep 9 11:51:07 UTC 2011


I've commit ngx_http_mp4_module in trunk branch.
The patch for 1.0 and last 0.8 is also available:
http://nginx.org/patches/patch.mp4.txt

The module was tested against JW Player.

The module is not built by default, it should be enabled with
   --with-http_mp4_module
If you use 3rd-party mp4 module, it should be removed.
Configuration:

location /mp4/ {
  mp4;
  mp4_buffer_size    1m;    # default 512k
  mp4_max_moov_size  10m;   # default 5m
}

mp4_buffer_size - initial size of buffer to read mp4 file.
This buffer is also used to keep whole meta data of mp4 file (so
called "moov" atom). Maximum size of moov atom which nginx is capable
to read is set by mp4_max_moov_size.


-- 
Igor Sysoev



More information about the nginx mailing list