Link to home
Start Free TrialLog in
Avatar of TheMaximumWeasel
TheMaximumWeasel

asked on

Incorporating FFMPEG into a c application

I am writing a c application that needs the ability to transcode flv files into mp4. I want to use ffmpeg but I cannot find any tutorials/guides on implementing it. I do not want to use system() as I need to tell the user the status of the video conversion and my platform (which is arm architecture) will only allow one process to run at the same time.

How can I implement ffmpeg into my c application and still display information on video conversion?

Max
Avatar of Infinity08
Infinity08
Flag of Belgium image

ffmpeg is a command line tool. Consider using the libraries behind it (libavformat and libavcodec) directly.

You can take a look at the ffmpeg source code to get an idea of how the conversion and progress updates work.
Avatar of TheMaximumWeasel
TheMaximumWeasel

ASKER

I was thinking to statically compiling ffmpeg so that I could use functions from it. Even then I still have no idea how to implement it all.

Max
The functions you need are already compiled into a library (the ones I mentioned). It's what ffmpeg uses for its functionality.
Can someone just point me at a guide to implement ffmpeg like functionality then?

Thanks,
Max
Is using the libavformat and libavcodec libraries not a good solution ?
ASKER CERTIFIED SOLUTION
Avatar of wombatOfLove
wombatOfLove

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial