From d3b67e26c3231f0601e4961a03368651c57e7ebc Mon Sep 17 00:00:00 2001 From: richardsonjack Date: Thu, 7 Dec 2017 13:48:30 +1030 Subject: [PATCH] Fix motion detect stdout issues --- revid/revid.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index b7923b9f..3cd715d9 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -244,12 +244,10 @@ func input(input string, output string) { br = bufio.NewReader(stdout) }else{ - - if *flags&filterMotionDetect != 0{ args := []string{ "-i", input, - "-vf", "\"select=gt(scene\\,0.0001),setpts=N/(25*TB),fps=fps=25\"", + "-vf", "select=gt(scene\\,0.0025),setpts=N/(FRAME_RATE*TB)", "-f", "mpegts", "-", } @@ -265,8 +263,8 @@ func input(input string, output string) { inputErrChan <- err return } - br = bufio.NewReader(stdout) + }else{ args := []string{ @@ -317,7 +315,6 @@ func input(input string, output string) { } } - clipStore(br,input) }