开发者

How to use ffmpeg so that there would be no need in including its dlls in your app folder?

So my point is to find normal ffmpeg in form of .lib for c/C++ windows developers so to be capable of including all needed functions inside my app - so to say one exe no extra dlls.

So I am looking thr开发者_开发技巧ue its windows /autobuilds/ in search for such array of .lib files. as for now closest to what I wanted was that ffmpeg-swscale-mingw32-shared-dev\lib folder with .lib and .dll.a files. problem is I am quite new to C/C++ development so I wonder if this build is what I need or I need something else?

And what are .dll.a files for in ffmpeg mingw32 shared dev build after all?


A shared build will depend on external DLLs, you need to find static built FFmpeg libraries so they will be linked to exe.

You will always need the following files:

libavcodec.a

libavformat.a

libavutil.a

There are also optional components depending on your code:

libavfilter.a

libavdevice.a

libswscale.a


You should be aware that if you intend to distribute a program linked to FFmpeg this way, you must either make your program free/opensource or at least distribute object files for your program so that end-users can re-link it with a modified version of FFmpeg. If you choose the latter option (i.e. if you don't want to make your program free software), you must be sure that your static FFmpeg library omits the optional GPL-licensed functionality, or your use will be infringing and the only way you will be able to get out of trouble is to release your entire program under a GPL-compatible license.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜