Video support in Windows7 (Qt5)



  • Hi all,

    I'm trying to write a simple QML application in Qt5, which will just play a video file in a VideoOutput item.
    I import QtMultimedia 5.0 in the qml file. When the application is run I get

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

    I went to look in the plugins/mediaservice folder, and there is only the qtmedia_audioengine5.dll there (well that and its debug version).
    How do I enable video and camera capture support in Qt5 under Windows7? I've compiled my version of Qt from source but I couldn't find anything useful in the config parameters.

    What am I missing?
    Thanks in advance,
    Slava

    P.S. This is the QML file. I have QT += quick multimedia in the .pro file:
    @import QtQuick 2.0
    import QtMultimedia 5.0

    Rectangle {
    width: 360
    height: 360
    MediaPlayer {
    id: mp
    source: "1.avi"
    }
    VideoOutput { id:videooutput; source: mp; anchors.fill: parent; visible: true}
    }
    @



  • There is no longer a problem. I've done 2 things simultaneously, so I don't which one or is it both that contributed to the solution:

    1. I noticed that even though I installed Windows SDK 7.1, MSVC still pulled at 7.0a. The path, include and lib env. variables were configured incorrectly (this can be seen in the output of configure), so I fixed that.

    2. I noticed that the wmfengine5.dll was actually built in the source tree, just wasn't copied to the installation folder for some obscure reason. Upon copying it manually the problem was finally solved!



  • I got
    defaultServiceProvider::requestService(): no service found for – “org.qt-project.qt.mediaplayer”
    too.

    But I found that I do have a wmfengine5.dll in my plugins/mediaservice folder (Qt version 5.0.2), so what is my problem be?



  • Hi yarospo,
    [quote author="yarospo" date="1349854751"]

    1. I noticed that even though I installed Windows SDK 7.1, MSVC still pulled at 7.0a. The path, include and lib env. variables were configured incorrectly (this can be seen in the output of configure), so I fixed that.[/quote]

    I found the configure output of mine is 7.0a too.(C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin) How did you fix that? I don't found it exist in my PATH.

    Thank you !


Log in to reply
 

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