[Interest] Using QMediaPlayer with Ogg Vorbis on Win7

Tom Isaacson Tom.Isaacson at navico.com
Thu Jul 17 20:51:32 CEST 2014


So the only option is to switch compiler? Why did Qt make the switch to Media Foundation if there are less codecs for it?
What about using VideoSurface?

Tom Isaacson

From: phil.hannent at gmail.com [mailto:phil.hannent at gmail.com] On Behalf Of Phil Hannent
Sent: Monday, 14 July 2014 9:51 p.m.
To: Tom Isaacson
Cc: Interest at qt-project.org
Subject: Re: [Interest] Using QMediaPlayer with Ogg Vorbis on Win7


On 13 July 2014 21:06, Tom Isaacson <Tom.Isaacson at navico.com> wrote:
I was planning to use QMediaPlayer to display Ogg Vorbis (.ogv) audio/video files on Win7, as discussed here:
http://qt-project.org/doc/qt-5/videooverview.html
but when I try this I get an "Unsupported media type" error. I've installed Xiph as described here:
http://stackoverflow.com/questions/15043620/qt-cant-play-ogg-and-flac

Then I came across this answer:
http://stackoverflow.com/questions/18884503/qmultimedia-which-video-audio-encodings-and-containers-are-supported
According to this page:
http://qt-project.org/wiki/Qt_Multimedia_Backends
Windows (via DirectShow and Media Foundation) doesn't support rendering to widgets. So is what I'm trying to do impossible with Win7? Or is there still an issue with the codec I need to fix first? What about using VideoSurface?
I switched from the VS2012 builds of Qt to the MinGW builds because the MinGW builds still use the DirectShow framework. Which Xiph has a plugin for:

"Make the WMF plugin compile with MinGW. 
The Media Foundation headers are incomplete in MinGW, making it impossible to build the plugin. The DirectShow plugin is built instead when using MinGW. We should probably generate these headers ourselves and include them in Qt."
http://qt-project.org/wiki/Qt_Multimedia
Media Foundation sounded like a nice idea but there are not the number of codecs available for it. For the time being I do not have a justification for using the Microsoft compiler over MinGW. So for my use of a QWidget playing videos in a QGraphicsScene we used the MinGW builds of Qt5.2.1.
Also you might want to use the more recent WebM video format rather than ogv. Its more recent than ogv which might offer better quality output. However its just a suggestion, not an endorsement.

http://www.webmproject.org/
Regards
Phil



 




More information about the Interest mailing list