From 25901cef45e062a741b99128678f21abd35c744f Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 23 Feb 2024 15:27:24 +0000 Subject: [PATCH] Add start_at_zero flag to make debugging easier --- transcoder/src/stream.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transcoder/src/stream.go b/transcoder/src/stream.go index af19ef4f..962fd6ff 100644 --- a/transcoder/src/stream.go +++ b/transcoder/src/stream.go @@ -126,7 +126,8 @@ func (ts *Stream) run(start int32) error { ts.lock.Unlock() log.Printf( - "Starting transcode for %s (from %d to %d out of %d segments)", + "Starting transcode %d for %s (from %d to %d out of %d segments)", + encoder_id, ts.file.Path, start, end, @@ -201,6 +202,9 @@ func (ts *Stream) run(start int32) error { } args = append(args, "-i", ts.file.Path, + // this makes behaviors consistent between soft and hardware decodes. + // this also means that after a -ss 50, the output video will start at 50s + "-start_at_zero", // for hls streams, -copyts is mandatory "-copyts", )