u2takey / ffmpeg-go

golang binding for ffmpeg
Apache License 2.0
1.67k stars 167 forks source link

Document the interface to FFmpeg #50

Open sybrenstuvel opened 2 years ago

sybrenstuvel commented 2 years ago

Hey there,

How exactly does this library interface with FFmpeg? Does it run a CLI binary? Does it use CGo to link to libffmpeg?

Might be something to put into the README.md, as it has a rather big impact on build- and run-time requirements of the application that uses ffmpeg-go.

Thanks for any info!

shayneoneill commented 1 year ago

Documentation of any sort would be nice, tbh. Its a bit of a mystery package.

vec715 commented 4 months ago

+1

@u2takey any help? As far as I understand, this library uses cmd.Exec, which means it interacts with FFmpeg directly through the system shell. There isn't much point in using this library since bindings should use cgo and other methods to interact with the library using ABI. Not all systems have a shell or access to it, so what's the purpose of this library? I could achieve the same result using raw cmd.Exec without having to understand the library's API.

sybrenstuvel commented 4 months ago

Well, the fact that there hasn't been an answer in 2 years is enough for me. This library seems dead in the water.

And yes, https://github.com/u2takey/ffmpeg-go/blob/master/run.go#L277 shows that it uses exec.Cmd, so you'll likely be better off just running the ffmpeg executable yourself.