CGO调用ffmpeg
阿里云国内75折 回扣 微信号:monov8 |
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6 |
CGO调用ffmpeg
package main
/*
#cgo CFLAGS: -I/usr/include/x86_64-linux-gnu
#cgo LDFLAGS: -L/usr/lib/x86_64-linux-gnu -lavformat -lavcodec -lavutil -lavdevice -lavfilter -lswresample -lswscale
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/avutil.h>
#include <libavutil/opt.h>
#include <libavdevice/avdevice.h>
static const AVStream *go_av_streams_get(const AVStream **streams,unsigned int n)
{
return streams[n];
}
*/
import "C"
import (
"fmt"
)
func main() {
fmt.Println(C.avdevice_version())
}