Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8331951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:34:28+00:00 2026-06-09T02:34:28+00:00

I’m trying to use FFmpeg in a C++ project in Visual Studio 2010. I

  • 0

I’m trying to use FFmpeg in a C++ project in Visual Studio 2010. I want to include the libraries as statically linked files. Simple programs like libavcodec/api-example.c compile without error and no linker error appears in the error view when starting them. However, a message box shows up after starting the application, saying that avutil-51.dll is missing. Do you have any hints on how to fix that?

I used the latest dev build from http://ffmpeg.zeranoe.com/builds/. Then I specified include as additional include directory, avcodec.lib;avfilter.lib;avformat.lib;avutil.lib as additional dependencies and lib as additional library directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:34:30+00:00Added an answer on June 9, 2026 at 2:34 am

    With FFmpeg you can either:

    1. use pre-built .lib/.dll files and your binary produced with Visual Studio will be dependent on av*.dll files
    2. compile FFmpeg from source code into static libraries using non-Microsoft compiler, and then link to your Visual Studio project (mind the LGPL/GPL license in this case)

    You built your project as per item 1 above. You have to use and redistribute the av*.dll dependent files with your binary to have it working.

    "Static" on Zeranoe means that libraries are statically linked into binaries like ffmpeg.exe. Do not confuse this with static .lib libraries that link into your binary. Zeranoe does not provide such.

    On Zeranoe you will find archives like this:

    • "Shared" ffmpeg-20120726-git-236ecc3-win32-shared.7z:
    • bin/avcodec-54.dll
    • bin/avutil-51.dll
    • etc
    • "Dev" ffmpeg-20120726-git-236ecc3-win32-dev.7z:
    • lib/avcodec.lib
    • lib/avutil.lib

    "Shared" archive has FFmpeg built with dynamic link to DLL libraries. "Dev" archive has lib files which you can use in your project to link to them as well in a way that ffmpeg.exe does in shared archive.

    So, your Visual Studio project can be as simple as this (browse full source here):

    extern "C" 
    {
            // NOTE: Additional directory ..\zeranoe.com\dev\include gets to the files
            #include "libavcodec\avcodec.h"
    }
    
    // NOTE: Additional directory ..\zeranoe.com\dev\lib gets to the files
    #pragma comment(lib, "avcodec.lib")
    
    // NOTE: Be sure to copy DLL files from ..\zeranoe.com\shared\bin to the directory of 
    //       the FFmpegApp.exe binary
    int _tmain(int argc, _TCHAR* argv[])
    {
            _tprintf(_T("Trying avcodec_register_all... "));
            avcodec_register_all();
            _tprintf(_T("Done.\n"));
            return 0;
    }
    

    You will extract "Dev" archive into dev subdirectory of Visual Studio project and you will add dev\include on the additional include path. This will be sufficient to build the binary, and it will be dependent on av*.dll:

    enter image description here

    This is when you extract the "Shared" archive, and copy DLLs from its bin to the directory of your binary. And your app will work from there:

    C:\FFmpegApp\Release>FFmpegApp.exe
    Trying avcodec_register_all... Done.
    

    20 Jan 2016 UPDATE: The project in repository is upgraded to Visual Studio 2013 (older VS 2010 code) and checked against current Zeranoe builds. The sample and instructions remain in good standing.

    Note that Win32 builds in Visual Studio assume that you use 32-bit files from Zeranoe. To build 64-bit version, download respective files and set up Visual C++ project respectively, to build x64 (or, the best, download both, set up both configurations and configure include/lib paths respectively). Failure to match bitness would result in error, mentioned in the comments below.

    20 Jul 2021 UPDATE: (pulled from comments below) Zeranoe builds are no longer available. A good and officially endorsed alternative is Windows builds by BtbN. You will need a (...)-win64-gpl-shared.zip or (...)-win64-lgpl-shared.zip file for this tutorial.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.