dash_path

The 'dash_path' directive defines the storage path for DASH streaming files.

Syntaxdash_path path;
Defaultnone
Context
Arguments1

Description

The 'dash_path' directive in the NGINX RTMP module specifies the directory on the server where DASH (Dynamic Adaptive Streaming over HTTP) segments, playlists, and related files will be stored. This is vital for managing the output of video streams that are served using the DASH protocol. By providing a path, the RTMP module can create and write the necessary media segments for smooth adaptive streaming.

When configuring the 'dash_path' directive, it accepts one argument which is the file path as a string. This path will be used as the base location for generating DASH segments, manifest files, and other related content. Proper file permissions on the specified directory are required to ensure that NGINX can create and modify files within this path. If the directory does not exist or has incorrect permissions, NGINX may fail to generate the necessary DASH content properly.

It is important for the user to ensure that the specified path is accessible and writable by the NGINX process. Additionally, the path should ideally be on a high-speed disk to accommodate read/write operations efficiently during live streaming since performance can be critical during heavy streaming loads.

Config Example

dash_path /var/www/dash;

Ensure the specified path exists and is writable by the NGINX process, or NGINX will fail to write DASH segments.

Do not use paths that may lead to permissions issues, as this can result in silent data loss or errors during live streaming.

← Back to all directives