From 2f5f0c75f3257b4ea9c37df6d02e5598b975740f Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期三, 11 十二月 2019 17:10:27 +0800 Subject: [PATCH] copy from VAProcess --- main.go | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index a0d3545..15bed52 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,6 @@ "golang.org/x/sys/unix" "basic.com/valib/gogpu.git" - "basic.com/valib/gosdk.git" // "net/http" // _ "net/http/pprof" ) @@ -28,6 +27,7 @@ gpu int shm bool ruleIPC string + soFile string ) const ( @@ -43,6 +43,8 @@ flag.StringVar(&id, "id", util.FakeSdkID, "sdk id as ipc label") flag.IntVar(&gpu, "gpu", -1, "gpu index") flag.BoolVar(&shm, "shm", false, "use shm for performance") + + flag.StringVar(&soFile, "so-file", "./", "libcffmpeg.so path") // 浜鸿劯璇嗗埆鍙傛暟 flag.IntVar(&util.SFI.DetectThrd, util.FaceDetectThread, util.SFI.DetectThrd, "face detect max thread count") @@ -104,6 +106,7 @@ util.FillParams(util.RuleIPC, util.ToRuleIPC) + util.SetParams("-so-file=" + soFile) util.SetParams("-gpu=" + strconv.Itoa(gpu)) if logit { util.SetParams("-logit") @@ -158,6 +161,5 @@ cancel() - gosdk.Free() logo.Close() } -- Gitblit v1.8.0