Planet Amarok

MTP Support Arrives

Alejandro Wainzinger - Juillet 25, 2008 - 00:18


Caption: 2 MTP devices connected, and songs playing from iPod

This is a bit overdue, but initial support for MTP devices has arrived. To use it, you require limbtp >= 0.3.0 installed on the system, and a device supported by libmtp of course.

Part of the reason this took so long is that I'm starting to notice a lot of potentially reusable code, and will probably soon refactor to reflect this. MTP devices are strange beasts, because their filesystem can't be directly accessed. As a result, Amarok 1 and Windows Media Player et al can only do file management of tracks on these devices, not actually play directly off of them. I'm going to be working on an idea that allows playing off of them to be possible, because let's face it, A2 is an audio player, not just a file manager.

Thanks again to everyone who donated MTP devices to the Amarok group. You're the ones who make this possible. Support is still pretty basic, so please don't file bugs on this yet, but be ready to at some point in the semi-near future.

Edit: Snapshot of 3 Mentioned Devices

Catégories: Planet Amarok

GSoC weekly report issues 7 and 8

William Viana Soares - Juillet 24, 2008 - 16:22

Two weeks have passed since the last update mostly because I haven’t anything exciting to tell you.

Last week I did start implementing a new toolbox for the context view but many things got in the middle so I decided to dedicate time to fix pending issues. Some small issues, others not so small and in the end everything gets very complicated and I find myself dedicating a lot more time than I expected.

Everything might look somehow the same but it’s in the little differences that you can perceive some improvements. One thing you may notice now is that the context view status is saved on exit and restored back on start up with all the applets you had added. Also now the applets try to resize occupying all the available space in the context view area. We also have now the current track applet added on top of the first containment.

It’s a little bit late but I have finally everything set up so I can finally say:

Im going to aKademy
Catégories: Planet Amarok

SoC status update

Teo Mrnjavac - Juillet 23, 2008 - 17:08

For those of you who don’t know me, I’m the SoK student working on implementing mass tagging in Amarok 2.

So what’s new since my last post?

This is a recent screenshot:

The string processing features now all work. These allow the user to easily clean up unwanted stuff from the tags, like trailing spaces and underscores. Title case mode capitalizes the first letter of every word except short words. The words that are already capitalized in some way (proper nouns, roman numerals) are left untouched.

Double-clicking on the token pool now adds the selected token at the end of the layout bar.

Work on the advanced mode is underway for those who still prefer writing text rather than drag&dropping.

Catégories: Planet Amarok

Goddess of the sea

Lydia Pintscher - Juillet 22, 2008 - 18:08

Amarok 2 alpha 2, codenamed Aulanerk, has been released. See the release announcement for more details.

Thanks everyone who helped with bug reports and patches. Keep them coming :)

And of course a screenshot for you to enjoy:

Aulanerk - Amarok 2 alpha2

Catégories: Planet Amarok

A Use for NVidia

Seb Ruiz - Juillet 21, 2008 - 08:14

The world has seen a significant amount of complaining about NVidia cards (the 8600 has had it’s fair share of whippings).

However, I’ve come to a great realisation:

with my exceptionally slow nvidia card I can see absolutely every draw that occurs on the screen. Great for debugging paint events, and no need to export QT_FLUSH_PAINT=1.

All you devs should go out and get one :)

Catégories: Planet Amarok

Amarok 2 on Windows - Reloaded

Mark Kretschmann - Juillet 18, 2008 - 11:02
My last blog about Amarok 2 on Windows had been a long while ago, but I'm happy to report that we have some news. Pau Garcia i Quiles committed a number of compile fixes, and it's now possible to build Amarok 2 with MSVC, and to actually run it!

Check this out (click to see full size):




Pau writes:

Yesterday I stayed up until 4:30 AM while trying to fix Amarok to work on Windows, and when I got it to build it was so late I was too tired to test it. So I fired it up this morning and this is the result. I have tested and it plays MP3, WMA, APE and whatever Magnatune streams on. Built with Visual C++ 2008.


I would like to emphasize that this is an ALPHA version. We know it still looks a bit ugly, but this will improve soon.


You can read Pau's original blog here.


Catégories: Planet Amarok

Another GSoC Mini Report

Casey Link - Juillet 17, 2008 - 21:42

I’ve been slacking on the update reports over the past two weeks, because I’m holding out for the exciting post where I say “MP3tunes AutoSync is working! Huzzah!” Sadly, this report isn’t that one.

For the past week I’ve been banging my head against the wall of glib, QtEventLoop, and QThreads. I have quite a headache to say the least, but yesterday thanks to my mentor and Ian, both Amarok developers, my head actually broke through that wall. Literally. GLIB, and Qt are kowtowing at my feet swearing oaths of fealty. They have promised to work together and let me get back to doing fun things, like code new features.

Catégories: Planet Amarok

Roll Video

Daniel Jones - Juillet 17, 2008 - 07:44

I always loved in grade school when the teacher was too depressed or hung-over to teach the class and just put on a VHS of Raiders of the Lost Ark, or something.

As promised, I made a little demonstration for those not daring enough for the svn or nightly (you can admit it, we won't think less of you).

(thats: http://www.youtube.com/watch?v=CFg0313x-iU, for the embeded video challenged.)

Sorry about the pixelation, it's hard to make out how ridiculously hip my music collection is.

It's still a little slow for a lot a biases. Expecially on my aging thinkpad, while trying to record video. That's something I will be working on. The algorithm is gradually growing faster and more complicated. I suppose that's how that works sometimes.

For next week, I hope to get saving and loading ironed out, as well as putting more work into the solver. After that I have the much more interesting task of writing news types of biases and making sure they don't take forever to solve. I've already got a lot of interesting suggestions which hadn't occurred to me. It's going to be fun to see what this can really do.

Catégories: Planet Amarok

GSoC Week 6: Amarok Scripting Interface

Peter Zhou - Juillet 14, 2008 - 14:13

Hey, I have a lot things to demo since we were moving very fast In the past two weeks!

I’ve added a lot of QtScript API functions, including GUI, Playlist, Collection, Music Engine and Scriptable Service.

Here are some small pieces from the whole cake:

one of the engine signals:

function TrackChanged()
{
print( “Dude! Do something! The track changed!” );
}
Engine.trackChanged.connect( TrackChanged );

Track Meta Info:
var TrackInfo = Amarok.Engine.TrackInfo;
StatusBar.shortMessage( “You are listening to album: ” + TrackInfo.Album );

Collection and Playlist Access:
var totalTrack = Amarok.Collection.totalTracks;
Amarok.Playlist.clearPlaylist;

I’ve almost finished the DBus interface by supporting MPRIS standard ( http://wiki.xmms2.xmms.se/wiki/MPRIS ). Now the script manager could handle script errors, write them to log files and correctly start/stop scripts. A simple demo script and a scriptable service QtScript called “Cool Stream” was released with Amarok Alpha 1.

Everyone loves eye candy, the API implementation and bug fixing are mostly behind the scene. So I decided to make some candy for non-latin character users :).
I grabbed the charset detector code from Mozilla, merged them into Amarok. Now, the wolf recognizes non-UTF8 tags:

The summer of code project seems always stuck on some building system stuff. The charset detector didn’t compatible with cmake 2.4.8, and the Qt bindings generator was needed to be ported from qmake to cmake. ( thanks “compiling king” Ian for helping me :D )

The SoC project will be ended in one month. And we still have some work to do. Ladies and Gentlemen, let’s wait for the finalized script API, and the brand new script manager!

Catégories: Planet Amarok

I’m in your Amarok, tagging your tunes

Teo Mrnjavac - Juillet 14, 2008 - 11:10

Greetings, I’m the SoC student working on implementing mass tagging in Amarok 2, teo_m in IRC. I omitted the G from GSoC as I’m not sponsored by Google, but I’m working on my project anyway.

So what’s the plan? I intend to build an intuitive and powerful interface, based on drag&drop, to extract tags from filenames; this will be done by arranging tokens that represent the parts of the filename that end up in the metadata of the file. This picture should explain it better:

New tagging interface screenshot

It’s the new “Filename Schemes” interface that replaces the old one where the user had to write the same thing as %track - %artist - %title instead of just dragging buttons from the list to the layout bar.

So far we have mass tagging without the mass ;-). Two months ago I didn’t know anything about Qt so I first got a good book and messed around with examples. A month or so ago I ripped out the old filename scheme selector and began working on this one. For a beginner, the first challenge was to make drag&drop work and arrange the tokens the right way, that was done less than two weeks ago, and yesterday I finally managed to extract the first tags from filenames.

So now I can say this dialog fully replaces the old one feature-wise, as I see it from here it can only get better.

I am also aware of the fact that the stylesheets of the buttons are really ugly, I’m going to work on that soon.

Everything is in svn, feel free to try it. It shouldn’t crash Amarok or kill your cat but it’s still incomplete and not very robust.

Oh, and

I'm going to Akademy

Catégories: Planet Amarok

MTP Incoming and Ipod File Deletion Support

Alejandro Wainzinger - Juillet 14, 2008 - 03:55
First off, thanks to everyone who has responded to the request for devices so far, and those to come! Sorry if the replies to the e-mails take a bit, but I'm probably working on Amarok ironically enough. Some of the devices offered have already been sent, and soon we'll see the first signs of MTP support on Amarok 2 =D . To get this question out of the way, _yes_, of course we're going with libmtp 0.3, it just makes sense to. Look forward to this MTP users, and thanks again to all donors of devices!

Summary of Ipod News:

- You can now delete files one at a time from the iPod
- You can now "edit" tags, although changes won't save yet (implementing next)



After fighting for a while with how to create a custom "remove" button, users now have access to deleting files on the ipod! ... one at a time, hah, looks like I have to do some more magic before you can do it with multiple files at once. Also, the icon for "remove" doesn't seem to make sense, and I'm fixing this soon too. Why there isn't a built-in capability to remove from a collection when there's built-in support for it in CollectionLocation? Probably nobody got around to it yet. If nobody does it after this summer, I'll implement it so that people don't have to go through this again, haha.

Turns out that because pre-made actions are in the CollectionTreeView, they can do all sorts of magic like... know which items are selected, so that they can work with multiple things at once. I'll have to look into this next.

Anyway, editing ipod tags will no longer crash your Amarok, and they'll even update in the view!... but not in the ipod's database, so a restart of Amarok will clear those changes, don't be fooled! It won't be too hard to port over tags support I'm sure. Er.. wait, I've said "it shouldn't be too hard to..." way too many times already, and I'm always surprised when it turns out to be a pita, haha.

The rest of the stuff I mentioned in previous posts has not yet been dealt with. No need to ask about the progress, it'll get here fairly soon. I've tried to concentrate on core features (tag editing, file management) for now. Yes, album covers and podcasts are wonderful, and they're soon to be here.
Catégories: Planet Amarok

Velocity

Nikolaj Hald Nielsen - Juillet 13, 2008 - 13:02
About 4 days ago, the Amarok team released the first Alpha of Amarok 2. For an alpha, it actually seems to run very well, but of course it still has crashes, bugs and lots of rough edges.

Since this release, the pace of development has been absolutely astounding. In those 4 days, we have so far had well over 150 commits, including 13 bugs closed. We have not been moving forwards this fast since the very first few days when we started porting Amarok to Qt4 and KDE4, and I am not even sure that sprint quite matched this one.

One of the main causes for this speedup is, in my opinion, the constructive feedback we have received on the alpha release. So I would like to extend a big Thank You to all the people taking the time to test our alpha release and offering feedback and bug reports.

And just to give you something to look at, here is a post alpha screenshot from today. Even though most of the fixes we have done are below the surface, there are still a few visible changes. And yeah, the new applets need to blend with the system colors, which they currently do not at all :-)



As a reminder for those wanting to try out the very latest version, or who are tracking the status of a particular bug, there is always the excellent Project Neon
Catégories: Planet Amarok

amarok.kde.org/blog users: update your feed catcher

Ian Monroe - Juillet 11, 2008 - 14:16
We're currently transitioning our blog from s9y to Drupal. For the time being people who blog on s9y itself are blogging there still, but the aggregation is already happening on Drupal so its a good time to change.

Add this feed if you want to follow the blogs of Amarok developers:
http://amarok.kde.org/planet.xml
Catégories: Planet Amarok

Real persistent playlists in Amarok with Nepomuk

Daniel Winter - Juillet 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

Catégories: Planet Amarok

GSoC weekly report - issue 6

William Viana Soares - Juillet 10, 2008 - 11:40

I come a little bit late since the last post because real life got in the middle.

This week we’ve got brand new zooming animations. Took me quite some time to figure out how to deal with Plasma animators but once you learn how to deal with it it’s quite simple. It was a little bit difficult to center the scene to the current containment while zooming in/out. The animation is set to 30 frames per second, it would look more smooth with higher fps but I wonder how it would behave on slow machines, so we still need some testing. I can’t show you this improvement since I still need to learn how to do screencasts.

And now, the long awaited new current track applet mandatory screenshots.

current track applet

current track applet new look

Now it’s possible to rate songs in the current track. As you can see it’s pretty much like the mockups we had except for the rating stars that I had some problems trying to set a custom one. But hey, the default looks good too. By the way, I’m using Nepomuk’s KRatingPainter and an adapted version to my needs of KRatingWidget. It’s a shame that I wasn’t on time to include the rating widget for the alpha release. Haven’t I told you? We’ve got an alpha release, please digg it.

This is it for now, I hope you like it.

Catégories: Planet Amarok

Malina, Malina, Malina!

Lydia Pintscher - Juillet 9, 2008 - 21:32

The first alpha of Amarok 2 has been released.
My first time as release gal. Turned out to be a little more complicated than I expected due to broken scripts and lacking documentation. But well. Worked out very well in the end.

Enjoy and please digg: http://digg.com/software/First_alpha_release_of_Amarok_2_0_Malina

Amarok Alpha 1 Malina

Catégories: Planet Amarok

Ipod File Transfer Support Arrives

Alejandro Wainzinger - Juillet 9, 2008 - 11:08
After an all-nighter porting over file-related code and some hours trying to make it work with CollectionLocation, we have the first signs of file transfer to ipod support available.

Details:
- AA format not yet supported due to some Audible strangeness
- Copying might seem slow right now (as in, takes 3-5 seconds to copy about 12 tracks), but I will fix this pretty soon as I know the cause

How to copy to iPod?
1.) Have iPod plugged in and mounted
2.) In Amarok, an iPod collection should show
3.) Either right-click an artist/album/track from another collection (e.g. local collection), or drag into the middle area to bring up the PUD. Hover over Copy to Collection, and select your Ipod.
4.) The tracks should then be being added. Expand your ipod collection to confirm that the tracks have been added and are able to be added to the playlist and played.
5.) Confirm that the songs can be played from the iPod itself

Forthcoming but not yet here:
- Album Cover support
- Podcast support
- Tag editing support
- Playlist support
- Pretty interface for file transfers &c.

Also, there's a "hang on exit" bug right now, but don't be afraid to "killall -9 amarok," as it won't affect your iPod. Sorry for the inconvenience, I'm tracking that one down fairly soon too.
Catégories: Planet Amarok

But it is looking shiny!

Lydia Pintscher - Juillet 8, 2008 - 10:29

Daniel, my GSoC student, has been working on the GUI part of the biased playlists and did some work behind the scenes this week. It is really getting into shape even though it is still trying to fool you a little. Read more about it in his weekly report and don’t forget to check out the screenshot ;-)

Oh and of course:

Akademy 2008

Catégories: Planet Amarok

GSoC Mini Report

Casey Link - Juillet 8, 2008 - 08:17

Some non-Summer-of-Code related business popped up over the weekend, to take care of which required a slight road-trip. As such, I haven’t had much time to work on my project, however I’m heading back home today and I plan to get the code I have chilling in my local branch pushed to the main subversion repository.

Surprisingly, bulleted lists seem to be the most concise means to list progress [/sarcasm]

  • Still working on Harmony integration.
  • Harmony authentication is working (Thanks Lateralus from MP3tunes!).
  • The daemon is receiving notification updates.
  • Notification processing is what I’m working on now.

While looking at my last couple reports about harmony, I realized that the information is somewhat dry. I think this is because harmony is a highly technical, behind the scenes feature, and, also, often it is difficult to inject excitement into mundane programming updates. The humdrum is slightly symbolic of harmony. You will enable it once and forget about it as it silently keeps your music collection synced.

Related posts: GSoC Report Week 5: Harmonizing Amarok, One small step for Amarok…

Catégories: Planet Amarok

Weekly Update: Unhidden Biases

Daniel Jones - Juillet 8, 2008 - 00:59
Now that dynamic playlists are working, what's missing is a way to actually use them. That's what most of this weeks work went towards.

In Amarok 1, dynamic playlists are one of those great hidden features. They are terrifically powerful and usefull, but a lot casual users don't know about them, or just don't understand how to use them. I had been using Amarok for a while before I discovered them.

One of the problems I've been working on is how to present Amarok 2.0 dynamic playlists in a way in which it's more or less obvious what they do. I want it to be an exhibitionist feature, with the functionality all exposed and out in the open, no dialog boxes or menu hierarchies.

This week I spent some quality time working on the bias editor (and reminding myself why I don't like gui programming). Since every blog post needs a picture, here's the latest version of the bias editor from just a few minutes ago (not even in svn yet). It's a bit rough arround the edges, but comming along nicely. 


That screenshot is slightly faked, but in the next few days the bias editor will start to become functional. I'm pretty excited to see my work actually usable. 

I also did some important work behind the scenes. This sort of playlist generation can't really be done efficiently in general (it's an NP-hard problem). If you give it a really tough set of biases, it won't break down or freeze up, but it may give you playlist that isn't perfect. Making the solver work well is a matter of heuristics, trial and error, and tweaking. I did a little of that this week, but the real testing and tweaking will happen when the bias editor is up and running.

I'll be back here in a week, hopefully demonstrating how to use the new dynamic playlists.
Catégories: Planet Amarok
Syndiquer le contenu