【文件属性】:
文件名称:goffmpeg:用GO编写的FFMPEG包装器
文件大小:18KB
文件格式:ZIP
更新时间:2021-04-29 08:31:55
golang wrapper streaming ffmpeg transcoding
高夫佩格
用GO编写的FFMPEG包装器,可获取进度。
V2
具有易于使用的API和接口的新实现,以扩展转码功能。
依存关系
支持平台
Linux
OS X
视窗
入门
如何对媒体文件进行转码
go get github.com/xfrr/goffmpeg
package main
import (
"github.com/xfrr/goffmpeg/transcoder"
)
var inputPath = "/data/testmov"
var outputPath = "/data/testmp4.mp4"
func main () {
// Create new instance of transcoder
trans := new (transcoder. Transcoder )
// Initialize transcoder passing t
【文件预览】:
goffmpeg-master
----.travis.yml(121B)
----models()
--------media_test.go(562B)
--------models.go(3KB)
--------media.go(23KB)
----transcoder()
--------transcored_test.go(876B)
--------transcoder.go(10KB)
----ffmpeg()
--------ffmpeg.go(935B)
----.github()
--------stale.yml(683B)
--------CODEOWNERS(13B)
----tests()
--------transcoding_test.go(4KB)
----LICENSE(1KB)
----.gitignore(357B)
----.circleci()
--------config.yml(457B)
----go.sum(968B)
----README.md(6KB)
----utils()
--------utils.go(1KB)
----go.mod(85B)