vod_source_clip_map_uri
The `vod_source_clip_map_uri` directive specifies the URI of a JSON file that maps clips for video-on-demand processing.
Description
The vod_source_clip_map_uri directive is used in the NGINX-based VOD Packager module to define the location of a JSON file that contains the mapping information for video clips. This directive allows users to specify how segments of video should be processed and served, enabling features like adaptive bitrate streaming and advanced media handling. The JSON mapping can include details about the start and end points of each clip, which is essential for operations like clipping segments for on-the-fly media repackaging.
This directive can be configured within the http, server, or location contexts, providing flexibility in defining clip mappings based on the architecture of the web server. The parameter must be a valid URI pointing to the JSON file that defines the mappings. Proper parsing of this JSON file is crucial for the module to understand how to segment and serve the requested video.
When a request for a specific video is received, NGINX utilizes the mapping defined in the JSON file. It will dynamically serve the requested segments according to the specified starting and ending points, enabling efficient delivery of media content without needing to encode the entire video file each time a request is made. This enhances performance and optimizes bandwidth usage for streaming media applications.
Config Example
server {
listen 80;
server_name example.com;
location /vod {
vod_source_clip_map_uri /path/to/clip_map.json;
}
}Ensure the URI points to a valid JSON file with correct formatting.
Access permissions for the JSON file must be properly set to avoid 403 Forbidden errors.
The structure of the JSON file must match the expected schema for clip mappings. Check for correct key naming.