video analysis2.0拆分,ffmpeg封装go接口库
554325746@qq.com
2020-03-10 278634c0d2eeba9e3fcc3b4cd56ddfb3323277d7
gorec.go
@@ -14,10 +14,11 @@
}
// FireRecorder fire recorder
func (h *GoFFMPEG) FireRecorder(sid string, id int64) {
func (h *GoFFMPEG) FireRecorder(sid string, id int64) int {
   csid := C.CString(sid)
   defer C.free(unsafe.Pointer(csid))
   C.wrap_fn_fire_recorder(unsafe.Pointer(libcffmpeg), h.ffmpeg, csid, C.long(id))
   ret := C.wrap_fn_fire_recorder(unsafe.Pointer(libcffmpeg), h.ffmpeg, csid, C.long(id))
   return int(ret)
}
// BuildRecorder build recorder
@@ -56,9 +57,4 @@
   // fmt.Println("Go get info : ", path, " len: ", l)
   return gID, int(i), path
}
// SetRecDurationForCache cache
func (h *GoFFMPEG) SetRecDurationForCache(min, max int) {
   C.wrap_fn_rec_duration(unsafe.Pointer(libcffmpeg), h.ffmpeg, C.int(min), C.int(max))
}