http-ts #

MPEG-TS streaming module — packages an upstream video source into on-the-fly HLS and DASH segments served directly from nginx.

Source: upstream source

Directives

ts #

syntax: ts no args;  ·  context: location

Example:: location / { ts; ts_hls path=/var/hls segment=10s; } ts_dash ------- ========== ======== Syntax: `ts_dash path=PATH [segment=MIN[:MAX]] [segments=NUMBER] [max_size=SIZE] [noclean]` Context: location ========== ======== Enables generating live MPEG-DASH in the location.

ts_dash #

syntax: ts_dash 1+ args;  ·  context: location

It is not allowed to reuse the path in other `ts_hls or ts_dash` directives.

ts_hls #

syntax: ts_hls 1+ args;  ·  context: location

To enable live streaming without size limitation, use the directive `client_max_body_size 0. ts_hls ------ ========== ======== Syntax: ts_hls path=PATH [segment=MIN[:MAX]] [segments=NUMBER] [max_size=SIZE] [noclean]` Context: location ========== ======== Enables generating live HLS in the location.

Example

location /stream/ {
    ts;
    ts_hls   path=/var/ts/hls  segment=4s  segments=10;
    ts_dash  path=/var/ts/dash segment=4s  segments=10;
}

↑ back to index