On Windows 7, Media Foundation is the default backend. DirectShow is the 
default only on Windows XP (or with MinGW-built Qt on any version of Windows).
The problem with Media Foundation is its limited codec support, see 
http://msdn.microsoft.com/en-us/library/windows/desktop/dd757927(v=vs.85).aspx 
. DirectShow doesn't have this problem and virtually supports anything (through 
third-party codecs).

Because of this, we are planning to do like Windows Media Player and implement 
a dynamic backend selection that would pick the one supporting the media the 
user wants to load. You can track this task there 
https://bugreports.qt-project.org/browse/QTBUG-32783

As for the original problem, it might be a missing codec or a bug...
If you want support for more codecs, you should force Qt to use the DirectShow 
plugin. You'll either have to use the MinGW packages or get the Qt sources 
('stable' branch) and configure Qt with '-no-wmf-backend'.

Yoann Lopes
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com

On Sep 12, 2013, at 6:57 AM, Mandeep Sandhu wrote:


The trick is this, I can put this on several different machines - all are 
Windows 7 Pro:
1.) machine 1 - development box, can play some mp4s but not others (all h264)
2.) machine 2 - personal household box, will play the sampleFile mp4 sometimes
3.) machine 3 - COMPLETELY clean windows 7 pro install, aside from the code 
above, has nothing installed on it, NEVER plays the mp4.

All 3 machines can play the sampleFile.mp4 in Windows Media Player.

As a final note, none of these will play FLV either.

Pointers anyone? What am I missing here?

QtMultimedia relies on 'backends' to work on different OS'. For Windows I think 
it uses 'DirectShow'. Is that installed and working properly on the machines 
you're trying?

Here's more detail on the state of art:
http://qt-project.org/wiki/Qt_Multimedia_Backends

Places where video is not playing, it's possible that there's no support for 
the codec/container in the backend being used (DirectShow or some other).

HTH,
-mandeep




Thanks!

-Jason





_______________________________________________
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org<mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to