pckg_capture_granularity
The `pckg_capture_granularity` directive configures the granularity of capturing media data in the Kaltura media framework.
Description
The pckg_capture_granularity directive is utilized within the Kaltura Media Framework Common NGINX Module to set the capture granularity for media events processed by the framework. This directive accepts a single argument that defines how fine-grained the capture process should be when handling streaming data. The granularity can significantly affect the performance of the media processing system, as a finer granularity may lead to more frequent captures of media packets, resulting in improved responsiveness but potentially increased overhead. Conversely, coarser granularity may reduce resource usage but could cause delays in capturing critical media events.
In practical usage, the parameter for pckg_capture_granularity must be carefully chosen based on the specific needs of the deployment. Fine-tuning the granularity allows media administrators to strike a balance between performance and resource utilization. This directive can be applied in various contexts: http, server, or location, providing flexibility in how and where it can be configured within the NGINX configuration file. Its strategic placement can optimize resource consumption and enhance the overall efficiency of media stream handling.
Config Example
http {
pckg_capture_granularity 10;
}Setting the granularity too fine may lead to high server load.
Inadequate granularity settings can miss critical media events.
Ensure the context of the directive is appropriate for your use case.