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. Qt 5.2 + gstreamer support
Qt 6.11 is out! See what's new in the release blog

Qt 5.2 + gstreamer support

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 6.9k 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.
  • M Offline
    M Offline
    miskuu
    wrote on last edited by
    #1

    Hello,
    I've got a Qt application using Qt WebKit to display a webpage which has an HTML5 video tag inside. My problem is playing the video (I use GStreamer).

    I've been struggling with this for a few weeks now and I have a few general questions about it.

    1. In order for Qt WebKit to be able to play the video I need GStreamer support. I tried to use binaries from the website http://download.qt-project.org/development_releases/qt/5.2/5.2.0-rc1/ but no matter the platform (Linux, Mac, Windows) the video player did not work. It was not able to play anything.

    Therefore I tried using the latest stable git sources of Qt 5.2 and compiled it myself with GStreamer support. It worked on Linux and Mac (still struggling with Windows).

    My question: Are binaries from the "Qt downloads website" compiled with GStreamer support? Am I able to play HTML5 video after building my Qt application with those ready made binaries? It seems I have to compile Qt on my own if I want to have HTML5 video functionality available.

    2. When running "configure" command in "qt5" git folder there used to be GStreamer support information

    @"GStreamer support ............................ yes/no"@

    I cannot find it anymore. Was it removed?
    I was able to compile Qt5.2 on OSX 10.9 with GStreamer support without even knowing whether "configure" found it.This information would be very helpful.

    All the best,
    Tom

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hpollak
      wrote on last edited by
      #2

      I think you should take a look on:

      "http://qt-project.org/doc/qt-5.0/qtwebkitexamples/webkitqml-youtubeview.html":http://qt-project.org/doc/qt-5.0/qtwebkitexamples/webkitqml-youtubeview.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        miskuu
        wrote on last edited by
        #3

        Thank you for the quick reply.

        I've already studied this example before, however, I cannot compile it and check if it works, because the example is missing some files. It also does not quite answer my questions.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          miskuu
          wrote on last edited by
          #4

          Ok, I just realized that "qtwebkit-examples/examples/webkitqml" is a relative path to the qt5 git root folder. I'm going to check if this example works for me.

          1 Reply Last reply
          0
          • _ Offline
            _ Offline
            _dmp
            wrote on last edited by
            #5

            I have exactly the same problem.

            What can say developers of qt?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              miskuu
              wrote on last edited by
              #6

              I've manage to compile my application with "qt-linux-opensource-5.2.0-rc1-x86_64-offline.run" from
              http://download.qt-project.org/development_releases/qt/5.2/5.2.0-rc1/ on Linux. The youtube example works for me as well. It seems video playback is working out of the box.

              However on Windows we also have to choose between OpenGL and Angle. According to (last line):
              http://qt-project.org/wiki/Qt-5-on-Windows-ANGLE-and-OpenGL
              we should use Angle to be able to play videos.

              There is no 64bit version for VS2010, so I'm going to try "qt-windows-opensource-5.2.0-rc1-msvc2010-x86-offline.exe" today and let you know how it worked out. If this doesn't work, I'll install VS2012 and try those builds.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                miskuu
                wrote on last edited by
                #7

                Got it working witch x86 VS2010 and “qt-windows-opensource-5.2.0-rc1-msvc2010-x86-offline.exe". My mp4 videos are playing ok with simple <video> tag. The problem occured to be something else and it's quite interesting.

                I got my Windows on the virtual machine and sound card was disabled. All the videos that had sound did not play at all. All the ones that had no sound played correctly. Once I enabled the sound card in the Virtualbox settings all the videos started to play.

                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