vod_max_frame_count
Sets the maximum number of frames to be processed in video on demand (VOD) requests.
Description
The vod_max_frame_count directive in the NGINX VOD module specifies the maximum number of video frames that can be processed for video on demand requests. This setting is crucial for optimizing resource usage and ensuring smooth operation when handling requests for streaming video content. By limiting the number of frames that can be processed at any given time, it helps to prevent excessive memory usage and ensures that system resources are allocated effectively. This directive accepts a single numerical argument that denotes the frame count limit.
When the server processes a VOD request, it will only look ahead and read the specified number of frames, regardless of the total number available in the video file. This behavior is especially useful in scenarios where files are large, and full frame counts may lead to issues like lagging performance or unresponsive server behavior. Configuring this directive appropriately is important to balance load and responsiveness according to the expected user traffic and video sizes.
Config Example
vod_max_frame_count 10;
Setting this value too low may result in slower playback or buffer issues for end-users.
A high value could lead to increased memory usage, especially under heavy load, so it should be tested for performance impact.
Remember to adjust this setting based on the server capabilities and expected user load.