Show HN: Golang FFmpeg wrapper for simple Video I/O and Webcam Streaming
github.com
github.com
Also, you don't have to do manual stdout buffering. Have a look at ReadChapters function in here: https://github.com/MawKKe/audiobook-split-ffmpeg-go/blob/f95... (fyi it's my own repo)
Thanks for sharing the link to your project. I'll try to implement the stdout buffering with "bytes" rather than doing it manually.
The issues I’m talking about are acknowledged as design flaws / mistakes if you start browsing the GitHub issues.
It would be a huge undertaking to re-write it, let alone keep up with the pace of development.
An awful lot of the video processing on the internet makes it's way through ffmpeg in one way or another.
I'd recommend running `go vet -a` and `golangci-lint` on it to see some of the current issues:
$ go vet -a
$ docker run --rm "--volume=$(pwd):/app" --workdir=/app golangci/golangci-lint:latest golangci-lint runI'm currently fixing all the non-idiomatic problems as well as adding some getters for each struct. Thanks for the feedback!
If a function or method is fallible, it should return `(..., error)`, not panic.