[Libav-user] installing for Windows

Navin nkipe at tatapowersed.com
Mon Nov 26 15:10:53 CET 2012

Sorry, I missed out an important typedef. The corrected code is:
#include <Windows.h>
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>//just as an example

typedef void (__cdecl *__av_register_all)(void);
typedef void (__cdecl *__av_dump_format)(AVFormatContext *ic, int index, 
const char *url, int is_output);

int main()
    const char * avfDLLpointer = 
can place this DLL in the same directory as your exe
    const char * avcDLLpointer = 
as an example
    HINSTANCE hinstLib_avformat = LoadLibrary(avfDLLpointer);
    HINSTANCE hinstLib_avcodec  = LoadLibrary(avcDLLpointer);//just as 
an example
    __av_register_all      av_register_all_proc        = 
(__av_register_all)       GetProcAddress(hinstLib_avformat, 
   __av_dump_format       av_dump_format_proc         = 
(__av_dump_format)        GetProcAddress(hinstLib_avformat, 

  av_register_all_proc();// Register all formats and codecs
  av_dump_format_proc(pFormatCtx, 0, filename, 0);


On 11/26/2012 7:29 PM, Hannes Wuerfel wrote:
> Am 26.11.2012 13:26, schrieb "René J.V. Bertin":
>> I'm still getting a cmd window that opens, which seems logical but 
>> somewhat untidy. Is there a way to keep this from happening? An 
>> ffmpeg that doesn't use the Console subsystem shouldn't do this, right?
> Hi René,
> I don't think that ffmpeg needs to hide itself but of course there are 
> several ways of hinding consoles and windows.
> Is this something you are searching for?
> http://www.cplusplus.com/forum/beginner/12001/
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

More information about the Libav-user mailing list