Module ngx_http_mp4_module | english русский 简体中文 עברית 日本語 türkçe news about download security advisories documentation pgp keys faq links books support donation trac wiki nginx.com | ||||||||||||||||||
The module
Pseudo-streaming works in alliance with conforming Flash players.
A player sends an HTTP request to the server with a start time
argument in the request URI’s query string (named simply
http://example.com/elephants_dream.mp4?start=238.88 This allows for a random seeking at any time, or starting playback in the middle of a timeline. To support seeking, H.264-based formats store the metadata in the so-called “moov atom.” It is a part of the file that holds the index information for the whole file.
To start playback, a player first needs to read metadata.
This is done by sending a special request with the
For a matching request with a non-zero
If a matching request does not include the
This module is not built by default, it should be enabled with the
If a third-party mp4 module was previously used, it needs to be disabled.
A similar pseudo-streaming support for FLV files is provided by the module ngx_http_flv_module. Example Configuration
location /video/ { mp4; mp4_buffer_size 1m; mp4_max_buffer_size 5m; }
Directives
Turns on module processing in a surrounding location.
Sets the initial size of a memory buffer used to process MP4 files.
During metadata processing, a larger buffer may become necessary.
Its size cannot exceed the specified "/some/movie/file.mp4" mp4 moov atom is too large: 12583268, you may want to increase mp4_max_buffer_size
|