Qt 5.2 + gstreamer support
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,
I think you should take a look on:
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.
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.
I have exactly the same problem.
What can say developers of qt?
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):
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.
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.