add example opencv

This commit is contained in:
wanglei.w
2020-11-19 14:42:40 +08:00
parent 5b1e7d8b9e
commit 5029339c82
8 changed files with 33451 additions and 1 deletions

5
run.go
View File

@@ -175,17 +175,20 @@ func (s *Stream) GetArgs() []string {
filterNodes = append(filterNodes, n)
}
}
// input args from inputNodes
for _, n := range inputNodes {
args = append(args, getInputArgs(n)...)
}
// filter args from filterNodes
filterArgs := _getFilterArg(filterNodes, outGoingMap, streamNameMap)
if filterArgs != "" {
args = append(args, "-filter_complex", filterArgs)
}
// output args from outputNodes
for _, n := range outputNodes {
args = append(args, _getOutputArgs(n, streamNameMap)...)
}
// global args with outputNodes
for _, n := range globalNodes {
args = append(args, _getGlobalArgs(n)...)
}