GO调用ffmpeg动态库

package main

/*
#cgo CFLAGS: -I/usr/local/ffmpeg/include
#cgo LDFLAGS: -L/usr/local/ffmpeg/lib -lavformat
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/avutil.h"
#include "libavutil/opt.h"
#include "libavdevice/avdevice.h"
*/

import "C"

import (

    "fmt"

)

func main() {

 fmt.Println(C.avformat_version())

}





猜你喜欢

转载自blog.csdn.net/evsqiezi/article/details/80608103