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

Smartphone Waste and Tizen News

15 Things To Do After Installing Ubuntu 17.10 "Artful Aardvark"

​The New Ubuntu 17.10 "Artful Aardvark" launch with GNOME3 has brought a big change and got a lot of people excited to try it as soon as they can. If you don't know yet the new stuff in Ubuntu 17.10, read the article we published today. Read
more

Anarchy Linux Dispels Fear of Arch

Arch-Anywhere/Anarchy Linux is one of the nicest Arch-based distributions I have encountered. However, Anarchy Linux still requires familiarity with terminology and processes that usually are not needed to install Linux distros from a fully-functioning live session installation disk. Not having a demo mode to preview how the OS runs on your particular hardware can be a time-consuming setback. However, once you have Anarchy Linux up and running, it will give you a very pleasing computing experience. Much of what happens after installation depends on the desktop environment you selected. If you have a desktop preference or prefer one of the included window manager environments instead, you can forget about the sullied reputation that comes with Arch Linux distros. For many reasons, Anarchy Linux is a winning choice. Read more

Intel Graphics Performance: Ubuntu 17.04 vs. 17.10

Given the Ubuntu 17.10 release this week and its massive desktop changes from GNOME Wayland to Mesa/kernel upgrades, we've been busy benchmarking this new Ubuntu OS release. Complementing the Radeon Ubuntu 17.04 vs. 17.10 gaming comparison are now some OpenGL/Vulkan benchmarks when using Intel Kabylake graphics hardware on Ubuntu 17.04, 17.10 with X.Org and Wayland, and the performance if upgrading against Linux/Mesa Git. Read more