From 1c71258984c181721f89cd1bf7ed35fcba975fd6 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sat, 24 Feb 2024 15:13:35 +0000 Subject: [PATCH] fixup! Remove padding segment at the start --- transcoder/src/stream.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/transcoder/src/stream.go b/transcoder/src/stream.go index 2561a033..550236e8 100644 --- a/transcoder/src/stream.go +++ b/transcoder/src/stream.go @@ -225,13 +225,9 @@ func (ts *Stream) run(start int32) error { })), "-segment_list_type", "flat", "-segment_list", "pipe:1", + "-segment_start_number", fmt.Sprint(start), + outpath, ) - if start != 0 { - args = append(args, - "-segment_start_number", fmt.Sprint(start-1), - ) - } - args = append(args, outpath) cmd := exec.Command("ffmpeg", args...) log.Printf("Running %s", strings.Join(cmd.Args, " "))