QtAV: how to import QtAV 1.3 and add new CODEC (e.g H.265) to QtAV



  • Hi,
    I tried to test QtAV examples (downloaded the ZIP file), but I couldn’t get them build (error: avutil is required, but compiler can not find it).

    I even tried the following link https://github.com/wang-bin/QtAV/wiki/Use-QtAV-In-Your-Projects
    I couldn’t get it build, same above error.

    I have downloaded and installed ""QtAV1.4.0beta-win32-msvc2013-x86.exe":http://sourceforge.net/projects/qtav/files/depends/"

    There is qml example code (where import QtAV 1.3 is not recognized) :
    @
    import QtQuick 2.0
    import QtAV 1.3
    Item {
    VideoOutput {
    anchors.fill: parent
    source: player
    }
    AVPlayer { //or MediaPlayer
    id: player
    source: "test.mp4"
    }
    MouseArea {
    anchors.fill: parent
    onClicked: player.play()
    }
    }
    @

    • If I want to get this to work, what should I do?
    • If I were to add new video decoder format e.g H.265, where or how should I add it?

    Thank you


  • Lifetime Qt Champion

    Hi,

    You should rather contact the author of this library directly, QtAV is not part of the Qt project but uses Qt.



  • Hi, I don't know if you solved, but I had same problem. The guide you followed uses the visual studio compiler, so I guess you set INCLUDE and LIB in qtcreator. In my case I had mingw so env variables I had to set were CPATH and LIBRARY_PATH


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.