Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an nginx/1.2.3 server compiled with --with-http_mp4_module as a pseudostreaming server.

Streaming and seeking works fine except buffering. Tt seems like the buffer directives are being completely ignored.

Here are the location declaration for the streaming part;

location  /video_dump/ {
        alias /var/www/mp4/;
        mp4;
        mp4_buffer_size     512k;
        mp4_max_buffer_size 1m;
}

The above location is in the server block of an https server.

I know that the buffer directives are being ignored because as soon as the video starts streaming it starts getting downloaded without stopping at the declared limit.

Any takers?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

mp4_buffer_size and mp4_max_buffer_size refer to the memory used by nginx to process the MP4 file (read MOOV atom etc) to be served and not to the client-side steam buffer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.