mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
fixup! Remove padding segment at the start
This commit is contained in:
parent
00831fdb61
commit
1c71258984
@ -225,13 +225,9 @@ func (ts *Stream) run(start int32) error {
|
|||||||
})),
|
})),
|
||||||
"-segment_list_type", "flat",
|
"-segment_list_type", "flat",
|
||||||
"-segment_list", "pipe:1",
|
"-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...)
|
cmd := exec.Command("ffmpeg", args...)
|
||||||
log.Printf("Running %s", strings.Join(cmd.Args, " "))
|
log.Printf("Running %s", strings.Join(cmd.Args, " "))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user