mp4 module

Igor Sysoev igor at
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:

The module was tested against JW Player.

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

location /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