revid: change no of frames per clip to 25 for http

This commit is contained in:
saxon 2018-09-24 19:56:05 +09:30
parent ed8613a255
commit 724042baeb
2 changed files with 5 additions and 6 deletions

View File

@ -99,7 +99,7 @@ const (
defaultFramesPerClip = 1 defaultFramesPerClip = 1
defaultVerticalFlip = No defaultVerticalFlip = No
defaultHorizontalFlip = No defaultHorizontalFlip = No
httpFramesPerClip = 7 httpFramesPerClip = 25
defaultInputCodec = H264 defaultInputCodec = H264
defaultVerbosity = No defaultVerbosity = No
) )

View File

@ -472,11 +472,10 @@ func (r *Revid) startRaspivid() error {
return err return err
} }
r.inputReader = stdout r.inputReader = stdout
go func() {
r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data") r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data")
r.lexTo(r.encoder, r.inputReader, delay) r.lexTo(r.encoder, r.inputReader, delay)
r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore") r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore")
}()
return nil return nil
} }