Language Selection

English French German Italian Portuguese Spanish

Why Phonon is a broken wheel

Filed under

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, 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

Android Leftovers

Linux Mint 19 "Tara" Will Ship in June, Pre-Installed on the Mintbox Mini 2 PCs

If you're a Mintbox Mini user, you should know that Mintbox Mini 2 is currently in the works and it's coming this summer. It will be based on the Compulab Fitlet2 tiny computer, which suggests that Compulab is once again behind the production of the Mintbox Mini PCs, and will have better specifications and more features. Compared to the first generation Mintbox Mini, Mintbox Mini 2 features dual-band antennas, two USB 3.0 ports, a microSD slot, audio and micro jacks, and a Kensington lock that's now available on the right side. Two programmable LEDs are present as well in the front, and the unit is as silent as you'd want it to be. Read more

Raspberry Pi 3 Model B+ WiFi Performance

Yesterday in our Raspberry Pi 3 Model B+ benchmarks we looked at the faster Cortex-A53 CPU cores of this new $35 USD ARM SBC as well as its much faster Ethernet and better thermal management over earlier Raspberry Pi boards. The other area improved with the Raspberry Pi 3 B+ is the WiFi/WLAN wireless networking, which is what we have benchmarks of today. Read more

Windows 10 Pro vs. Five Linux Distributions In Various Benchmarks

Here are our latest Windows 10 versus Linux benchmarks for the week. This benchmarking dance is looking at the Windows performance compared to Ubuntu, Clear Linux, Fedora, Antergos, and Solus Linux in various workloads. Among the tests this time around were looking at the performance with Go, Java, Perl, Python, FFmpeg, and more. Read more