/go-mediainfo

go-mediainfo:an mediainfo command-line parameter builder

Primary LanguageGo

mediainfo

Golang binding for mediainfo

Duration, Bitrate, Codec, Streams and a lot of other meta-information about media files can be extracted through it.

Your advices and suggestions are welcome!

Example

package main

import (
	"encoding/json"
	"fmt"
	"github.com/dreamCodeMan/go_mediainfo"
)

func main() {
	mediainfo, _ := mediainfo.GetMediaInfo("/Users/Fang/Movies/11.flv")
	info, _ := json.Marshal(mediainfo)
	fmt.Println(string(info), err)
}