diff --git a/revid/config.go b/revid/config.go index ea00f392..0b73194d 100644 --- a/revid/config.go +++ b/revid/config.go @@ -99,7 +99,7 @@ const ( defaultFramesPerClip = 1 defaultVerticalFlip = No defaultHorizontalFlip = No - httpFramesPerClip = 7 + httpFramesPerClip = 25 defaultInputCodec = H264 defaultVerbosity = No ) diff --git a/revid/revid.go b/revid/revid.go index 6cc26c7f..8fc24dc9 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -472,11 +472,10 @@ func (r *Revid) startRaspivid() error { return err } r.inputReader = stdout - go func() { - r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data") - 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+"reading camera data") + r.lexTo(r.encoder, r.inputReader, delay) + r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore") return nil }