What is the difference bewteen nginx against mp4 modules

oah433 nginx-forum at forum.nginx.org
Thu Sep 5 02:48:59 UTC 2019


Hi
What is the difference between the mp4 module  and the slice module for
streaming mp4 videos in nginx? Both seem to work on streaming mp4 files but
I can't really see the difference.

On another aspect, the slice module seems to work nicely with the caching.
Where slices from cache module are stored and served to the users. Can the
same be done to the mp4 module i.e., to have responses from the mp4 module
cached ?

Attached is a code snipped for caching the output from the slice module. 

location / {
slice             1m;
proxy_cache       cache;
proxy_cache_key   $uri$is_args$args$slice_range;
proxy_set_header  Range $slice_range;
proxy_cache_valid 200 206 1h;
proxy_pass        http://localhost:8000;

}

thx

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285562,285562#msg-285562



More information about the nginx mailing list