From 05545cb6da885cb7a72322ea0313bf1aa6eab69c Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 26 Oct 2024 11:56:44 -0700 Subject: [PATCH] Add persistent http connection optimization. Closes #3985 --- core/transcoder/transcoder.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/transcoder/transcoder.go b/core/transcoder/transcoder.go index ff1bbaa72..db4018afa 100644 --- a/core/transcoder/transcoder.go +++ b/core/transcoder/transcoder.go @@ -229,7 +229,9 @@ func (t *Transcoder) getString() string { "-hls_segment_filename", localListenerAddress + "/%v/stream-" + t.segmentIdentifier + "-%d.ts", // Send HLS segments back to us over HTTP "-max_muxing_queue_size", "400", // Workaround for Too many packets error: https://trac.ffmpeg.org/ticket/6375?cversion=0 - "-method PUT", // HLS results sent back to us will be over PUTs + "-method PUT", // HLS results sent back to us will be over PUTs + "-http_persistent", "1", // Ensures persistent HTTP connections + localListenerAddress + "/%v/stream.m3u8", // Send HLS playlists back to us over HTTP }