[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent


Per-App Settings?
by Anon on Tuesday 06/Feb/2007, @08:34
Firstly, thanks as always to Troy for preparing this for the Hordes hungering for KDE4 news :)

To save everyone the trouble of rooting through the API, I have a couple of questions:

1) I heard rumblings of the existence of per-application volume settings so that (e.g.) you don't have your eardrums blown out when a buddy signs in to MSN just as you're watching the quiet part of your film ;) How will this work, exactly? Any mockups of e.g. kmix?

2) Would it be possible to, for an arbitrary piece of video supported by the currently used engine, extract frames (plus accompanying sound for that frame) one-by-one in some format (YUV+PCM, maybe), process them (maybe adding a watermark, or doing your own custom effects) and then send this altered audio and video frame into another Phonon-based encoder for encoding to, say, XVid?
  Related Links
 ·   Articles on KDE Public Relations and Marketing
 ·   Also by Anon
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: Per-App Settings?
by Bakterie on Tuesday 06/Feb/2007, @09:24
3) Will it be possible to choose the output device per application? E.g. I have two soundcards and want KMplayer to always use the first and Amarok to always use the second.
[ Reply To This | View ]
  • Re: Per-App Settings?
    by Matthias Kretz on Tuesday 06/Feb/2007, @09:42
    First of all (as you can see in the screenshot) device preference is set per category of application. The distinction between Music and Video probably needs a better name for the category, though.

    If that isn't enough for your needs the application still can override the global setting per category. So if the application provides the switch (it's almost no effort to implement) then you can have that, too.
    [ Reply To This | View ]
Re: Per-App Settings?
by Matthias Kretz on Tuesday 06/Feb/2007, @09:39
1) Every Phonon AudioOutput object can be told over dbus to change its volume. For now the only way to remote control the volume of an app is to use qdbus:
% qdbus org.kde.knotify /AudioOutputs/0 Get org.kde.Phonon.AudioOutput volume
1
% qdbus org.kde.knotify /AudioOutputs/0 Set org.kde.Phonon.AudioOutput volume 0.2
% qdbus org.kde.knotify /AudioOutputs/0 Get org.kde.Phonon.AudioOutput volume
0.200000002980232

The value is stored as float in case you wonder about the 0.2.

2) It's on the todo list. But it's not likely to be ready for 4.0 unless more people help out. The idea is to use AudioDataOutput and VideoDataOutput objects to capture the media data and then an AvWriter object to encode and write to a file.
[ Reply To This | View ]
  • Re: Per-App Settings?
    by Anon on Tuesday 06/Feb/2007, @10:08
    Great stuff, thanks Matthias :)

    The answer to 2) is a huge (and welcome!) surprise to me: it looks like you have a very rich and functional piece of software coming together. Keep it up!
    [ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "I tried to play with some toy applications and enjoyed it." -- Werner Trobin
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]