Trying one last thing

This commit is contained in:
Unknown 2018-03-13 21:20:36 +10:30
parent d762352a97
commit 2dccba6969
1 changed files with 2 additions and 0 deletions

View File

@ -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: