Reputation: 11946
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?
Upvotes: 2
Views: 327
Reputation: 5246
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.
Upvotes: 2