Search code examples
c++qtcodecoggphonon

Qt, Phonon and multimedia codecs: how to bundle them?


I am developing a multiplatform (Windows, Linux and Mac) Qt based Phonon C++ application and am aware that Phonon itself is only API, which relies on a backend to interact with installed codecs.

Logically, I should assume that the end user has no extra codecs installed, only those provided by OS.

So my question would be, is it possible to bundle an OGG (preferably) or AAC decoder with my application so that the backend would recognize it and be able to play audio files? What steps in general should I take and where to look for more information on this?

The application itself is not installable, it runs directly form physical media.


Solution

  • Generally, you could supply the VLC Phonon backend for Windows. The default DirectX backend is unfortunately quite limited.

    On Linux, you can assume that a suitable Phonon backend comes with the OS's Phonon installation. The two backends currently popular are GStreamer and VLC.