From 345eabafb2b47af59b2fc18c08bf887d93deda4b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 11 Feb 2024 00:46:53 +0100 Subject: [PATCH] fixup! Fix missing last segment --- transcoder/src/stream.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transcoder/src/stream.go b/transcoder/src/stream.go index 5626c0e1..b68d11c9 100644 --- a/transcoder/src/stream.go +++ b/transcoder/src/stream.go @@ -137,7 +137,8 @@ func (ts *Stream) run(start int32) error { "-i", ts.file.Path, "-copyts", } - if end != int32(len(ts.file.Keyframes)-1) { + // do not include -to if we want the file to go to the end + if end != int32(len(ts.file.Keyframes)) { args = append(args, "-to", fmt.Sprintf("%.6f", ts.file.Keyframes[end]), )