mirror of https://bitbucket.org/ausocean/av.git
Fix motion detect stdout issues
This commit is contained in:
parent
57cf50d9f1
commit
d3b67e26c3
|
@ -244,12 +244,10 @@ func input(input string, output string) {
|
||||||
br = bufio.NewReader(stdout)
|
br = bufio.NewReader(stdout)
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if *flags&filterMotionDetect != 0{
|
if *flags&filterMotionDetect != 0{
|
||||||
args := []string{
|
args := []string{
|
||||||
"-i", input,
|
"-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", "-",
|
"-f", "mpegts", "-",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -265,9 +263,9 @@ func input(input string, output string) {
|
||||||
inputErrChan <- err
|
inputErrChan <- err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
br = bufio.NewReader(stdout)
|
br = bufio.NewReader(stdout)
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
args := []string{
|
args := []string{
|
||||||
"-r", strconv.Itoa(*frameRate),
|
"-r", strconv.Itoa(*frameRate),
|
||||||
|
@ -317,7 +315,6 @@ func input(input string, output string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clipStore(br,input)
|
clipStore(br,input)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue