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)
|
||||
}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,9 +263,9 @@ func input(input string, output string) {
|
|||
inputErrChan <- err
|
||||
return
|
||||
}
|
||||
|
||||
br = bufio.NewReader(stdout)
|
||||
|
||||
|
||||
}else{
|
||||
args := []string{
|
||||
"-r", strconv.Itoa(*frameRate),
|
||||
|
@ -317,7 +315,6 @@ func input(input string, output string) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
clipStore(br,input)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue