Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Video support in Windows7 (Qt5)
Forum Updated to NodeBB v4.3 + New Features

Video support in Windows7 (Qt5)

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yarospo
    wrote on last edited by
    #1

    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}
    }
    @

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yarospo
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      • W Offline
        W Offline
        weiyuemin
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • W Offline
          W Offline
          weiyuemin
          wrote on last edited by
          #4

          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 !

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved