Using C Libraries From Go

This is a small example of using C libraries in Go. Go is relatively young in the world of programming languages, and although it’s very popular and has many available modules, there’s occasionally a need to interface with a pre-existing C library. I came across this need when attempting some video manipulation on my GoPro videos. To be honest, this probably would have been easier to write in Python, but I am learning Go, so I attempted it in Go. I rapidly found myself down a rabbit hole where the bindings I chose for FFmpeg in Go weren’t 100% implemented (or I just didn’t know what I was doing!), so it was time for some learning.