Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitcodr/gompeg
Fluent ffmpeg wrapper in Go
https://github.com/bitcodr/gompeg
ffmpeg ffmpeg-wrapper golang streaming video-streaming
Last synced: 2 months ago
JSON representation
Fluent ffmpeg wrapper in Go
- Host: GitHub
- URL: https://github.com/bitcodr/gompeg
- Owner: bitcodr
- Created: 2019-04-03T21:22:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T15:27:52.000Z (almost 2 years ago)
- Last Synced: 2024-11-25T14:48:19.495Z (2 months ago)
- Topics: ffmpeg, ffmpeg-wrapper, golang, streaming, video-streaming
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
##gompeg
Simple And Productive Go FFMPEG Wrapper
How to use:
```go
package main
import (
"github.com/bitcodr/gompeg"
"log"
)
func main() {
stream := new(gompeg.Media)
stream.SetInputPath("test.mp4")
stream.SetOutputPath("rtmp://localhost/live/test")
stream.SetNativeFramerateInput(true)
stream.SetVideoCodec("libx264")
stream.SetPreset("veryfast")
stream.SetVideoMaxBitrate(3000)
stream.SetBufferSize(6000)
stream.SetPixelFormat("yuv420p")
stream.SetKeyframeInterval(50)
stream.SetAudioCodec("aac")
stream.SetAudioBitRate(160)
stream.SetAudioChannels(2)
stream.SetAudioRate(44100)
stream.SetOutputFormat("flv")
if err := stream.Build(); err != nil {
log.Fatal(err.Error())
}
}
updating...