Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351916 - media-sound/amarok-2.4.0 upnp support
Summary: media-sound/amarok-2.4.0 upnp support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Jorge Manuel B. S. Vicetto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 15:03 UTC by Peter Leugner
Modified: 2011-04-26 22:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Leugner 2011-01-17 15:03:55 UTC
One of Amarok 2.4.0 new features is the ability to play music from a UPNP device like a DLNA media server. Unfortunately there's no USE flag to enable this feature, it allways get's built without the flag WITH_UPNP. It would be great if this could be supported, I waited for this feature for quite some time.

Reproducible: Always

Steps to Reproduce:
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2011-01-23 20:29:00 UTC
I think the upnp collection plugin get installed:

$equery f amarok | grep upnp
/usr/lib/kde4/amarok_collection-upnpcollection.so
/usr/share/kde4/services/amarok_collection-upnpcollection.desktop

Comment 2 Peter Leugner 2011-01-23 20:35:52 UTC
After some research I found out that it needs the mediaserver ioslave from http://gitorious.org/kio-upnp-ms to work. Unfortunately there isn't an ebuild for this one in portage, would be great if someone could add this.
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2011-01-23 21:22:41 UTC
(In reply to comment #2)
> After some research I found out that it needs the mediaserver ioslave from
> http://gitorious.org/kio-upnp-ms to work. Unfortunately there isn't an ebuild
> for this one in portage, would be great if someone could add this.
Thanks for the hint. I will create an ebuild as soon as I have time (keep looking for it in cj-overlay).

kio-upnp-ms-0.8 work with kde4 eclass, but we will need an ebuild for hupnp lib as well

Comment 4 Christoph Junghans (RETIRED) gentoo-dev 2011-01-25 20:45:27 UTC
I added an ebuild for herqq-0.8.0, which includes libhpnp, to cj-overlay.
However, kio-upnp-ms needs herqq-0.0.0 (svn r55).
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2011-01-30 12:02:43 UTC
(In reply to comment #2)
> After some research I found out that it needs the mediaserver ioslave from
> http://gitorious.org/kio-upnp-ms to work. Unfortunately there isn't an ebuild
> for this one in portage, would be great if someone could add this.
You are a lucky guy, kio-upnp-ms has moved to 
https://projects.kde.org/projects/playground/base/kio-upnp-ms
and the live version builds with media-libs/herqq-0.8.0.

I added both ebuilds to cj-overlay, so happy testing.

Then you are left with finding the UUID of your upnp server you can use
net-dns/cagibi for that like suggest here:
http://kodeclutz.blogspot.com/2010/10/upnp-mediaserver-kio-slave-is-out.html

However, in my case cagibi could not detect the UUID :-(
Comment 6 Peter Leugner 2011-01-30 14:56:03 UTC
Thanks a lot, I just tried it and kind of works. It finds my mediaserver and shows an entry in the local collection with the line "counting" underneath it. After a while it crashes with a segfault. It looks like it tries to count all the songs on the server, which could take ages (ca. 6000 songs) and then gives up. Probably a not a Gentoo bug.
Comment 7 Christoph Junghans (RETIRED) gentoo-dev 2011-01-30 17:02:05 UTC
(In reply to comment #6)
> Thanks a lot, I just tried it and kind of works. It finds my mediaserver and
> shows an entry in the local collection with the line "counting" underneath it.
> After a while it crashes with a segfault. It looks like it tries to count all
> the songs on the server, which could take ages (ca. 6000 songs) and then gives
> up. Probably a not a Gentoo bug.
> 
Did you had to do something in Amarok else? My local collection shows 0 tracks :-(

Comment 8 Peter Leugner 2011-01-31 08:05:25 UTC
I've got 2 media servers at home, one is on my buffalo linkstation and is a twonky server I believe. The second one is on my samsung bluray player and is probably proprietary. Both are seen by amarok (or kio-upnp-ms), but the first one (twonky) stays on status "counting" and the second one says 0 songs (there are songs on it though and can be seen by other dlna devices, like my ipod touch). 

If I start amarok with -debug, I can see that it send like hundreds of requests to the first media server. it looks like as if it tries to get all information about every album and artist to build the collection. Fisrt of all, this could take ages and second of all, it crashes in the end. The upnp-collection should be build lazily, click on artists and then get the artists etc. not all at the same time. I doubt this has anything to do with gentoo, this is probably up to the amarok devs to improve/fix.

I also have cagibi installed, which I believe is used by kio-upnp-ms to look up the ids of the media servers.
Comment 9 Christoph Junghans (RETIRED) gentoo-dev 2011-02-22 23:15:28 UTC
In the end I got it working for me as well ;-)

I have added kio-upnp-ms to tree.

@jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok.
Comment 10 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-02-25 19:01:24 UTC
(In reply to comment #9)
> In the end I got it working for me as well ;-)
> 
> I have added kio-upnp-ms to tree.

Thanks for taking care of the deps.

> @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok.

I'll try to add it this weekend.
Comment 11 Christoph Junghans (RETIRED) gentoo-dev 2011-02-25 19:47:50 UTC
(In reply to comment #10)
> > @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok.
> I'll try to add it this weekend.
If you do so, we should think about making upnp a global use flag.
rhythmbox, totem and vlc have it as well. For media-video/ushare it is called dlna, which is actually related. 
Comment 12 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-04-20 03:42:27 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > > @jmbsvicetto: I leave it to you, if want to add upnp as a useflag to amarok.
> > I'll try to add it this weekend.
> If you do so, we should think about making upnp a global use flag.
> rhythmbox, totem and vlc have it as well. For media-video/ushare it is called
> dlna, which is actually related. 

I've added a testing amarok-2.4.0.90 ebuild to the tree with an upnp use flag to test the HUpnp support. I'll update the patch to ensure it can find the include dir in a few minutes.
Comment 13 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-04-26 22:04:54 UTC
I've added the ~amd64 ~x86 keywords to the ebuild.
Please test and open a new bug if you find any issues.