[Interest] Using QMediaPlayer with Ogg Vorbis on Win7

Phil Hannent phil at hannent.co.uk
Mon Jul 14 11:50:36 CEST 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140714/ade76214/attachment.html>


More information about the Interest mailing list