From b9a597299f38c9b1c1a40bd61122ae928c3a7eb7 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 10 Mar 2022 14:13:15 -0800 Subject: [PATCH] Simplify segment filenames. Closes #1778 Remove the seconds as an identifier to allow for segments to be written more than one per second. --- core/transcoder/transcoder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/transcoder/transcoder.go b/core/transcoder/transcoder.go index b673b54ae..fe162353b 100644 --- a/core/transcoder/transcoder.go +++ b/core/transcoder/transcoder.go @@ -220,9 +220,8 @@ func (t *Transcoder) getString() string { // Filenames "-master_pl_name", "stream.m3u8", - "-strftime 1", // Support the use of strftime in filenames - "-hls_segment_filename", localListenerAddress + "/%v/stream-" + t.segmentIdentifier + "%s.ts", // Send HLS segments back to us over HTTP + "-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