I'd like to add video conversion capabilities to a program I'm writing. FFmpeg's command line interface for doing this is simply ffmpeg -i InputFile OutputFile
, but is there a way to make use of it as a library, so I can do something like ffmpeg_convert(InputFile, OutputFile)
?
I'm hoping I won't have to use libavcodec directly, as I imagine it will be far more complex than a one-line function to convert between formats. If FFmpeg can't be easily retrofitted to do this, is there perhaps another library based on it that does? I've heard of libvlc, but that seems to only expose a video playing API, not video conversion.
ffmpeg
in a seperate process is better idea, so your application won't be stuck while the lengthy process of video encoding goes. – Nivernaisffmpeg
as separate process on Android, and it has never been a viable option on iOS. I suggest the ffmpeg-kit library that wraps the ffmpeg in a library that can be used similar to the ffmpeg CLI for Android and iOS apps. – Khamsin