This removes the need to call out to a CLI program that must be present on the server.
Relevant guide in https://andrealeopardi.com/posts/using-c-from-elixir-with-nifs/
This could be a good resource: https://github.com/leandromoreira/ffmpeg-libav-tutorial#common-video-operations