diff --git a/revid/RevidInstance.go b/revid/RevidInstance.go index 189dd387..396e0241 100644 --- a/revid/RevidInstance.go +++ b/revid/RevidInstance.go @@ -452,6 +452,8 @@ func (r *revidInst) setupOutputForFile() (err error) { // setupInputForRaspivid sets up things for input from raspivid i.e. starts // a raspivid process and pipes it's data output. func (r *revidInst) setupInputForRaspivid() error { + fps,_ := strconv.Atoi(r.config.FrameRate) + r.parser.SetDelay( uint( float64(1000) / float64(fps) ) ) r.Log(Info, "Starting raspivid!") switch r.config.InputCodec { case H264: