项目地址 https://github.com/oldfritter/ffmpeg
使用例子
package main
import (
"ffmpeg"
"fmt"
)
func MyMovie() {
movie := ffmpeg.Movie{}
var path string = "/Users/leon/Downloads/4.mp4"
err := movie.Initialize(&path)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(movie)
}
}