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, " "))