Fix keyframe alignment
parent
e20888f244
commit
e40f53c18b
|
@ -268,6 +268,11 @@ func (s *Stream) restartAtChunk(w http.ResponseWriter, id int) {
|
|||
}
|
||||
|
||||
func (s *Stream) transcode(startId int) {
|
||||
if startId > 0 {
|
||||
// Start one frame before
|
||||
// This ensures that the keyframes are aligned
|
||||
startId--
|
||||
}
|
||||
startAt := float64(startId * s.c.chunkSize)
|
||||
|
||||
args := []string{
|
||||
|
|
Loading…
Reference in New Issue