go get github.com/mattcanty/go-ffmpeg-transcode
See the basic example:
package main
import (
"log"
"github.com/mattcanty/go-ffmpeg-transcode/pkg/ffmpeg"
)
func main() {
err := ffmpeg.Transcode("input.webm", "output.mp3")
if err != nil {
log.Fatal(err)
}
}