mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add start_at_zero flag to make debugging easier
This commit is contained in:
parent
d71cd625d0
commit
25901cef45
@ -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",
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user