Daniel Winter

Syndicate content
About SoC and the rest
Updated: 12 min 19 sec ago

Real persistent playlists in Amarok with Nepomuk

July 10, 2008 - 20:34

Again too long since my last blog post. For those who are new to my blog: I (DanielW in IRC) am the GSoC student working on bringing Nepomuk into Amarok.

So what has happend the last weeks? Amarok now writes statistics back to Nepomuk (playcount, last played date and so on). With the nepomuk search client and kio slave in playground you can search files for that (list for example all files played more than 10 times).

But what I really want to talk about are “real persistent playlists”:

Thanks to the new Filewatch service (already in svn (trunk and 4.1 branch))  Nepomuk can now track movements of files and update the metadata connected to them. (it uses KDirNotify and can only track file movements done from KDE applications).

I am using this in Amarok to have playlists which still work after renaming/moving files. This means you can:

  • create and store a playlist
  • close Amarok
  • move the files around/rename them
  • start Amarok and your playlist still works

Amarok also monitors changes to the data at runtime. I first planed to make a screenshot (without it, it is not real ;-) but you can not see it on a screenshot. So I made a screencast. Here it is (download in high quality (6 MB))

(sorry for poor Youtube quality, get the real one)

Now the technical part:

It works by creating and storing a uuid for every track used in Amarok. It then uses this uuid in the URL of the playlists. That works but is no perfect solution. In the long term (after SoC) I will have to create track (and album) resources (which link to the actual files) in Nepomuk. This will solve this without the uuid and bring other possibilities but also a lot of new problems.

You can try it out now (it is in svn of Amarok) but expect bugs and missing features.

And..

see you there

Categories: Planet Amarok

Dolphin and Amarok share ratings

June 19, 2008 - 23:06

First: Sorry, I planed to blog more often about my GSoC project. I don’t feel very good when blogging in english. But as Thiago “forced” us to blog here an update:

Let’s start with something to look at:

Screenshot Amarok und Dolphin

Isn’t it nice? Ratings from Dolphin in Amarok :-)

Yeah, you will be able to rate your songs in Dolphin and see the ratings in Amarok or vice versa. They share the same data in Nepomuk. (I will publish in Amarok Wiki which ontologies are used, so that you can make use of it in your scripts or applications.)

The collection you see there in the collection view uses the data from Nepomuk. (As my code can not scan collections yet it works directly on the information Strigi indexed.) I am quite happy about the performance. It is slower than the SQL collection but fast enough in most cases. But you shouldn’t try to add your complete collection to the playlist. On my collection (about 15k songs) it takes about 5 minutes. I am not sure if i can change that.

Also not working yet: Collection filtering and any writing of data back Nepomuk.

If you want to play around with it:

It is in normal Amarok 2 SVN and it will show up in Amarok automatically if you have Nepomuk enabled in KDE (System settings->advanced->Nepomuk). As it can not scan yet, you should have some music indexed from Strigi.

I recommend to use the Sesame2 backend for Soprano/Nepomuk (needs Java at build and runtime of Soprano). But it should work with Redland too. To test it is enough to only add your music directory to the Strigi index folder (also in the Nepomuk settings).
I hope that when I blog again, I will tell you that writing back to Nepomuk works. Will work on that in the next days.

Categories: Planet Amarok

Welcome to another SoC-Blog

May 23, 2008 - 19:08

Well, this is just another blog from a GSoCer. As official start of this years Summer of Code is on Monday I finally installed this blog to tell other SoCers and everyone else who could be interested about my experiences, problems (eh mean achievements) and ideas over the next months. Yes I know, it is locking boring it is the WordPress default theme. I am not really a design guy.

I will implement Nepomuk (Semantic Desktop) features into the upcoming version 2 of Amarok the great KDE music player . So this brings together the exciting Nepomuk project, Amarok and music. :-) Sounds like fun, doesn’t it?

You probably know Amarok but didn’t hear about Nepomuk yet. For the moment I will just refer to the website of the Nepomuk Project and the website of it’s KDE implementation.

What will it look like in Amarok?

  • If you are using Strigi (with your music in index) together with Nepomuk you will be able to just  start Amarok and instantly have your music collection in it without any extra scanning
  • Your ratings, playcounts and so on will all be stored central in Nepomuk. That making it accessible for every other application (for example to change your ratings from Dolphin)
  • The new folder view plasmoid together with the Nepomuk search-kioslave will make it possible to have a folder view on your desktop with your highest scored music, your least played songs, all songs you played last week and so on. I think you get the idea.
  • Nepomuks tagging features will bring back labels to Amarok 2 (although I am not yet sure how this will get integrated into the Amarok GUI)

For those of you, who are now being afraid because you don’t want to use Strigi and Nepomuk: Thanks to the new flexible collection framework in Amarok 2 this will be fully optional. Just another collection in Amarok. So you don’t have to use it at all without any loss.

What have I done so far? To be honest, not very much:

  • get Strigi and Nepomuk running on my system (thanks to my mentor Sebastian Trüg for help). That sounds quite easy but it seems that my laptop doesn’t like Nepomuk ;-)
  • getting in touch with the great kde/amarok community
  • take some first looks into the Amarok code base and got my ssh key for svn updated (forgot my pass phrase again :-/)

That is it for know. I try to write at least once in a week a short update about it.

Categories: Planet Amarok