video analysis2.0拆分,ffmpeg封装go接口库
zhangmeng
2019-07-26 28253fd3dc1615fee92832baf56b4b2c4e883194
apipassive.go
@@ -43,6 +43,19 @@
   return int(i), path
}
func (h *GoFFMPEG) GetRecID(p string) string {
   pt := C.CString(p)
   defer C.free(unsafe.Pointer(pt))
   var i C.int
   cid := C.wrap_fn_rec_id(h.ffmpeg, pt, &i)
   id := C.GoString(cid)
   C.free(unsafe.Pointer(cid))
   return id
}
// BuildDecoder build decoder
func (h *GoFFMPEG) BuildDecoder() {
   C.wrap_fn_decoder(h.ffmpeg)