Compile FFMpeg as .net executable
Has anyone tried to compile FFMpeg as CIL executable? I mean: I found wrappers for FFMpeg in order to integrate FFMpeg in a .开发者_运维知识库net program, but it should be possible to compile it as managed code, no?
What is certainly possible is to write your own managed app that links with libavformat, libavcodec, etc., as long as the latter has been pre-built as a DLL or a static library. Here you can find Windows-specific FFmpeg (and libav*.*) builds. These libraries (not the exe) can safely be part of a managed app if you use P/Invoke (for the DLLs) or static linking (for the LIBs).
Building FFMpeg itself as a managed app might be possible (here at least are FFMpeg build instructions for Visual Studio), although I have never tried.
精彩评论