video analysis2.0拆分,ffmpeg封装go接口库
554325746@qq.com
2020-03-10 278634c0d2eeba9e3fcc3b4cd56ddfb3323277d7
goffmpeg.go
@@ -128,6 +128,14 @@
   C.wrap_fn_run(unsafe.Pointer(libcffmpeg), h.ffmpeg, in)
}
// Run2 ffmpeg
func (h *GoFFMPEG) Run2(input string, minDuration int) {
   in := C.CString(input)
   defer C.free(unsafe.Pointer(in))
   C.wrap_fn_run(unsafe.Pointer(libcffmpeg), h.ffmpeg, in)
}
// FPS fps
func (h *GoFFMPEG) FPS() int {
   return int(C.wrap_fn_fps(unsafe.Pointer(libcffmpeg), h.ffmpeg))