Important: Please read the Qt Code of Conduct -

Qt and ffmpeg in Linux

  • Hi!
    I put Debian 10, it already has ffmpeg.
    Please tell me how to connect ffmpeg to the Qt project.
    Here's what the terminal gives you about the library

    dpkg -L ffmpeg

  • Lifetime Qt Champion

    In what way "connect" ?

    This is just the executable and seems to have no libs to link to your app.

    You can run it with QProcess if you wish.

    Please give more details on what you try to do.

  • I want to process images and sound, and work with videos. I looked at an example. But I haven't:

    #include <libavutil/opt.h>
    #include <libavcodec/avcodec.h>

  • Lifetime Qt Champion

    @Mikeeeeee said in Qt and ffmpeg in Linux:

    But I haven't

    I guess you did not install the ffmpeg dev packages?

  • Lifetime Qt Champion

    So you want to link it toyour own app ?

    I think you need to do
    sudo apt-get install libavcodec-dev
    or similar to get the headers.

  • This post is deleted!

  • This post is deleted!

  • I install the library installed:

    sudo apt-get install libavcodec-dev
    apt-get install libavformat-dev
    apt-get install libswscale-dev

    and in .pro:

    INCLUDEPATH += /usr/include/x86_64-linux-gnu/libavcodec
    LIBS += -lavformat  -lavcodec -lavutil -lz  -lswscale -lavutil -lm -llzma -lswresample

    and now work

Log in to reply