Skip to content

Commit

Permalink
streamlink --hls-segment-queue-threshold option
Browse files Browse the repository at this point in the history
related to #486
  • Loading branch information
MrBrax committed Jan 11, 2024
1 parent 6306133 commit 6a2d986
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/ServerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ export const settingsFields: Record<string, SettingField> = {
help: 'This removes the "Commercial break in progress", but stream is probably going to be cut off anyway',
},

"capture.hls_segment_queue_threshold": {
group: "Capture",
text: "HLS segment queue threshold",
type: "number",
default: 0,
help: "If set to 0, it will be ignored.",
},

"capture.use_cache": {
group: "Capture",
text: "Use cache",
Expand Down
5 changes: 5 additions & 0 deletions server/src/Core/Providers/Base/BaseAutomator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,11 @@ export class BaseAutomator {
Config.getInstance().cfg("hls_timeout", 120).toString()
);

// streamlink 6.0.0 timeout
if (Config.getInstance().cfg("capture.hls_segment_queue_threshold", 0) != 0) {
cmd.push("--hls-segment-queue-threshold", Config.getInstance().cfg("capture.hls_segment_queue_threshold", 0).toString());
}

// The size of the thread pool used to download HLS segments.
cmd.push("--hls-segment-threads", "5");

Expand Down

0 comments on commit 6a2d986

Please sign in to comment.