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