mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fix missing last segment
This commit is contained in:
parent
bb29b7e7f7
commit
2877083ebe
@ -135,9 +135,13 @@ func (ts *Stream) run(start int32) error {
|
|||||||
|
|
||||||
"-ss", fmt.Sprintf("%.6f", ts.file.Keyframes[start]),
|
"-ss", fmt.Sprintf("%.6f", ts.file.Keyframes[start]),
|
||||||
"-i", ts.file.Path,
|
"-i", ts.file.Path,
|
||||||
"-to", fmt.Sprintf("%.6f", ts.file.Keyframes[end]),
|
|
||||||
"-copyts",
|
"-copyts",
|
||||||
}
|
}
|
||||||
|
if end != int32(len(ts.file.Keyframes)-1) {
|
||||||
|
args = append(args,
|
||||||
|
"-to", fmt.Sprintf("%.6f", ts.file.Keyframes[end]),
|
||||||
|
)
|
||||||
|
}
|
||||||
args = append(args, ts.handle.getTranscodeArgs(segments_str)...)
|
args = append(args, ts.handle.getTranscodeArgs(segments_str)...)
|
||||||
args = append(args, []string{
|
args = append(args, []string{
|
||||||
"-f", "segment",
|
"-f", "segment",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user