https://github.com/phanletrunghieu/go-ffmpegbin
Video/Audio Encoder for Golang based on official FFmpeg distribution
https://github.com/phanletrunghieu/go-ffmpegbin
audio-encoder ffmpeg ffmpeg-wrapper video-encoder
Last synced: 2 months ago
JSON representation
Video/Audio Encoder for Golang based on official FFmpeg distribution
- Host: GitHub
- URL: https://github.com/phanletrunghieu/go-ffmpegbin
- Owner: phanletrunghieu
- Created: 2020-01-20T15:28:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-30T06:54:45.000Z (over 4 years ago)
- Last Synced: 2025-01-21T01:41:28.663Z (4 months ago)
- Topics: audio-encoder, ffmpeg, ffmpeg-wrapper, video-encoder
- Language: Go
- Homepage:
- Size: 4.31 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FFmpeg go wrapper
## Example 1
```golang
NewFFmpeg().
InputFile("testdata/input.mp4").
OutputFile("testdata/output.mp4").
AudioBitrate(126000).
VideoBitrate(440000).
Preset("fast").
Seek(3).
Duration(5).
Run()
```## Example 2
```golang
fout, _ := os.Create("testdata/output.mp4")
defer fout.Close()fin, _ := os.Open("testdata/input.mp4")
NewFFmpeg().
Input(fin).
Output(fout).
AudioBitrate(126000).
VideoBitrate(440000).
Preset("fast").
Seek(3).
Duration(5).
Format("mp4").
Movflags("+faststart").
Run()
```