title: Qt C++ ffmpeg cannot find library
body: <p>I use Qt 5.0.2 with Mingw 4.7 on windows. </p>
  
  <p>I'm working on a c++ program and i'm trying to get the duration of video files. I found <a href="http://www.ffmpeg.org/" rel="nofollow">ffmpeg</a>. Now i tried to compile a simple program but I think it fails with the libraries. I've tried to include both the shared and dev but they both will fail. ( <a href="http://ffmpeg.zeranoe.com/builds/" rel="nofollow">Zeranoe FFmpeg builds</a>)</p>
  
  <p>This is my pro file:</p>
  
  <pre><code>TEMPLATE = app
  CONFIG += console
  CONFIG -= app_bundle
  CONFIG -= qt
  
  SOURCES += main.cpp
  
  INCLUDEPATH += C:\programming\ffmpeg-20130606-git--win32-shared\bin
  
  LIBS += -LC:\programming\ffmpeg-20130606-git--win32-shared\bin -lavcodec-55.dll -     lavformat-55.dll -lavutil-52.dll
  </code></pre>
  
  <p>i get errors like:</p>
  
  <p>":-1: error: cannot find -lavcodec-55.dll"</p>
  
  <p>":-1: error: cannot find -lavformat-55.dll"</p>
  
  <p>I've also tried:</p>
  
  <pre><code>INCLUDEPATH += C:\programming\ffmpeg-20130606-git--win32-dev\include
  INCLUDEPATH += C:\programming\ffmpeg-20130606-git--win32-dev\lib
  
  LIBS += -LC:\programming\ffmpeg-20130606-git--win32-dev\lib -lavcodec -lavformat -lavutil
  
  LIBS += -LC:\programming\ffmpeg-20130606-git--win32-dev\lib -llibavcodec.dll.a -llibavformat.dll.a -llibavutil.dll.a
  </code></pre>
  
  <p>Here it gives a error "During startup program exited with code 0x0000135'</p>
  
  <p>I even tried to include each library individually. But no results..</p>
  
  <p>This is my main file:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  extern "C" {
    #include &lt;libavcodec/avcodec.h&gt;    // required headers
    #include &lt;libavformat/avformat.h&gt;
  }
  int main(int argc, char**argv) {
     av_register_all();             // offending library call
     return 0;
  }
  </code></pre>
  
  <p>A program simple as this will have 2 outcomes:</p>
  
  <ol>
  <li>the program runs but crashes if i call 'av_register_all()'</li>
  <li>It just tells me he cannot find the libraries.</li>
  </ol>
  
  <p>Can someone tell me what it is i'm doing wrong? Or even give me a hint? I can't really find a lot of good documentation on this one.</p>
  
  <p>Thanks in advance!</p>