vod_segments_base_url

Sets the base URL for segments in NGINX-based video on demand (VOD) packaging.

Syntaxvod_segments_base_url URL;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The vod_segments_base_url directive in the NGINX-based VOD Packager module specifies the base URL that will be prefixed to the generated segment URLs for video streams. This is particularly useful when you have a predefined path for segment files that are to be served, enabling seamless access to media segments generated during the repackaging process.

When this directive is set, all segment URLs produced by the VOD module will use the specified base URL, ensuring that clients can access the segments correctly. It is important to note that this directive can be defined in various contexts, including http, server, and location, allowing for flexible configuration depending on the deployment needs. The argument to this directive should be a valid URL pointing to the location from which the segments can be fetched.

Properly configuring vod_segments_base_url plays a crucial role in achieving desired access paths for your media segments, particularly when dealing with distributed systems or CDN setups. Ensure that the specified URL is accessible and adheres to the proper format to avoid any resource retrieval errors during playback.

Config Example

http {
    vod_segments_base_url http://media.example.com/segments;
    server {
        location /vod/ {
            vod on;
            # other configurations
        }
    }
}

Ensure the URL is accessible and returns the appropriate segment files.

Be mindful of trailing slashes in the URL, as they may affect path resolution for segments.

Setting this directive incorrectly can lead to 404 errors when clients attempt to access segments.

← Back to all directives