Language Selection

English French German Italian Portuguese Spanish

Why Phonon is a broken wheel

Filed under
KDE

In the discussion the approach taken by the Phonon abstraction layer which the Phonon project is advocating for inclusion in KDE4 also came up. I have held back blogging about Phonon for some time to avoid flamewars, but I don't want to have efforts like OSDL delayed due to setups like Phonon being promoted or thought of as a workable solution for the issues faced. Let me start of with a brief introduction to the area of multimedia frameworks.

First of all multimedia frameworks are very complex systems, handling very hard technical problems in order to cater for issues ranging from problems from dealing with the analog past (for some technical information in this field I recommend fourcc.org), a forest of media formats with different traits, a host of features/deficiencies in hardware and a wide range of other software solutions to interact with like sound servers and legacy systems. On top of this you add performance and latency requirements, network protocols and multiplatform issues. In the end you have a problem space where even those who have worked on the issues for many years need to keep their head clear when designing the framework.

Multimedia frameworks are also by their nature abstraction layers themselves, trying to abstract away all the demuxers, muxers, decoders, encoders, cameras, soundcards, sound systems, network protocols and various types of filters into a coherent and userfriendly API.

Now to get back to why I think Phonon is conceptually broken. First of all it is destined to fall into one of two traps. Either its API become so high level and limited that application developers will shun it due to a lack of features, meaning that you have an API useful for doing 'ding' sounds in standard applications, but anyone wanting more powerful operations will feel its a bigger hindrance than a help. On the other hand if they actually try to implement a feature set that is big enough to at least satisfy a subset, of for instance music player writers, then they will be forced into accessing things so deep in the frameworks that the operations become so framework specific that generalizing them away into a common API will at best be a kludge and at worst produce various broken behaviour changing depending on framework chosen.

Phonon also falls short in many other areas.

Full Story.

More in Tux Machines

Amazon Linux 2

  • Amazon Linux 2
    Amazon Linux 2 is the next generation Amazon Linux operating system. It provides a high performance, stable, and secure execution environment for cloud and enterprise applications. Amazon Linux 2 will offer extended availability of software updates for the core operating system through 5 years of long-term support and provides access to the latest software packages through the Amazon Linux Extras repository.
  • Amazon Linux 2 Rolls Out For EC2, On-Site Virtual Machine Images
    Amazon AWS has announced their "next generation" version of their Amazon Linux operating system intended for running on their EC2 compute cloud as well as on-site via VMware/VirtualBox/Hyper-V images that are free to all.
  • Amazon Linux 2 Benchmarks, 6-Way Linux OS EC2 Compute Cloud Comparison
    With Amazon AWS this week having released Amazon Linux 2 LTS I was excited to put this updated cloud-focused operating system through some performance tests to see how it stacks up with the more well known Linux distributions.
  • AWS Releases Prelim Amazon Linux 2 Server
    Amazon Web Services Inc. (AWS) this week announced the release of its next Linux server OS, Amazon Linux 2. Dubbed build 2017.12, the preliminary version of Amazon Linux 2 is now generally available to all public AWS regions. Described as a "candidate" release in the AWS announcement, the final build is yet to come.

Slax 9.3.0 beta ready for download

I am almost ready to release the next Slax version. But before I do so, I would like to get some feedback on the current progress. Read more

Wine 3.0 RC2

Games Leftovers