This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How can I use Amarok to connect to a DLNA server?

Tags: None
(comma "," separated)
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
Hello, I have a WD TV hub that can expose files via DLNA protocol.

What should I setup to be able to access the music in there from Amarok?

I have avahi working, but I can only see the remote folder with it, and I see nothing at all from Amarok. There are some posts here and there stating Amarok has this feature since 2.4.1. How can I make it work?

I'm running OpenSUSE 11.4 Tumbleweed, KDE 4.7.1 and Amarok 2.4.3.

Thanks for any help


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
User avatar
Sentynel
KDE Developer
Posts
285
Karma
1
OS
You need the upnp-ms KIO slave. I think this is available somewhere in the KDE factory repositories for OpenSUSE, and is hosted here: https://gitorious.org/kio-upnp-ms


User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
The Hupnp lib is there, but the kio seems to be merged in some other package. I guess I'll have to wait until it is released. I tried to build from source, but it needs a Hupnp cmake module that is not there, probably in the new release of kdelibs.
The Hupnp package, on the other hand, does not include a devel one.
Dependency hell. :P

I'll come back to it when kde 4.8 is here. It would be great if there were a way to test it first, though.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
User avatar
feng
Registered Member
Posts
14
Karma
0
OS
Hi,

kio-upnp-ms require Herqq SVN Revision 55. Prior or later version requires patch (so **** hard to find) and does not support all features, so just forget it :D

I made a herqq (HUpnp library) package for Archlinux. Here are the commands :

Download : http://github.com/nikhilm/kio-upnp-ms/tarball/v0.8.0
And extract the tarball.

Code: Select all
   svn co -r 55  https://hupnp.svn.sourceforge.net/svnroot/hupnp hupnp
   cd "$srcdir/hupnp/trunk/herqq"

   qmake -recursive
   make || return 1
   
   cd "$srcdir/hupnp/trunk/herqq"
   make install
   
   mkdir -p "$pkgdir/usr/lib"

   install -m 644 "$srcdir/hupnp/trunk/herqq/hupnp/bin/libHUpnp.so.1.0.0" "$pkgdir/usr/lib/libHUpnp.so"
   ln -s "$pkgdir/usr/lib/libHUpnp.so" "$pkgdir/usr/lib/libHUpnp.so.1"
   
   install -m 644 "$srcdir/hupnp/trunk/herqq/hupnp/bin/libQtSolutions_SOAP-2.7.so.1.0.0" "$pkgdir/usr/lib/libQtSolutions_SOAP-2.7.so"
   ln -s "$pkgdir/usr/lib/libQtSolutions_SOAP-2.7.so" "$pkgdir/usr/lib/libQtSolutions_SOAP-2.7.so.1"

   mkdir -p "$pkgdir/usr/include"
   cp -r "$srcdir/hupnp/trunk/herqq/hupnp/deploy/include/HUpnpCore" "$pkgdir/usr/include"
   rm -r "$srcdir/hupnp/trunk/herqq/hupnp/include/HUpnpCore/public"
   rm -r "$srcdir/hupnp/trunk/herqq/hupnp/include/HUpnpCore/private"
   cp $srcdir/hupnp/trunk/herqq/hupnp/include/HUpnpCore/* "$pkgdir/usr/include/HUpnpCore"
   chmod -R 644 "$pkgdir/usr/include/HUpnpCore"
   chmod 755 "$pkgdir/usr/include/HUpnpCore"
   chmod 755 "$pkgdir/usr/include/HUpnpCore/public"
   chmod 755 "$pkgdir/usr/include/HUpnpCore/private"


Define $pkgdir & $srcdir and you're done.

For kio-upnpn-ms :

Code: Select all
_dirname='nikhilm-kio-upnp-ms-2e86418';
   
   cd "$srcdir/$_dirname"
   mkdir -p "$srcdir/$_dirname/cmake/modules"
   cp "$srcdir/FindHUpnp.cmake" "$srcdir/$_dirname/cmake/modules"
   patch -p1 < "$srcdir/CMakeLists-build-fix.patch"
   mkdir build && cd build
   cmake ../ -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` || return 1
   make || return 1
   make DESTDIR="$pkgdir/" install || return 1


Save this : http://pastebin.com/rn3tqqFq AS FindHUpnp.cmake
Save this : http://pastebin.com/tjsMaLV3 AS CMakeLists-build-fix.patch




Hope you'll like this :D


EDIT : I see you're an ArchLinux user, I have just sent today kio-upnp-ms package on AUR ;)

EDIT2 : I've add kio-upnp-ms tarball url.

Last edited by feng on Fri Oct 21, 2011 4:29 pm, edited 2 times in total.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
Thanks! I'll try to build in my OpenSuse laptop, which is the one I am using.

I'll install that package on my Arch desktop too.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
User avatar
jirik
Registered Member
Posts
60
Karma
0
OS
I have tried to install the git package from AUR, however still no luck in getting Amarok to discover my dlna server. Do I need to do some additional configuration?

Thanks.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
Have you checked your firewall config to make sure those ports are open?


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
User avatar
jirik
Registered Member
Posts
60
Karma
0
OS
Yep, no blocking firewall.

I tried to use kio upnp-ms in dolphin. In the status bar, it said no hostname specified despite me trying to put it there and in .xsession-errors I found:
kioslave: ####### CRASH ###### protocol = upnp-ms pid = 2223 signal = 11

Note that I am running Arch latest. I have not tried using uuid instead of hostname.
User avatar
feng
Registered Member
Posts
14
Karma
0
OS
AFAIK upnp-ms support only UUID for now...
User avatar
jirik
Registered Member
Posts
60
Karma
0
OS
feng wrote:AFAIK upnp-ms support only UUID for now...

Ok, that would explain Dolphin's behavior. Still, shouldn't it work automatically in Amarok? In Plugins section, I have UPnP Collection turned on. And just for a completeness sake, I am running TwonkyMedia as the dlna server.
User avatar
feng
Registered Member
Posts
14
Karma
0
OS
Does

Code: Select all
ps -e |grep cagibid


Give something ? (it should)
User avatar
jirik
Registered Member
Posts
60
Karma
0
OS
feng wrote:Does

Code: Select all
ps -e |grep cagibid


Give something ? (it should)

Ok, it did not ;) My fault. I've installed cagibi, ran it. While it was running, I started Amarok (and restarted it a couple of times, just to make sure), however nothing new appeared in the Local Music section.

Also, I tried to use the proper uuid in dolphin, with no luck, it still keeps crashing.
User avatar
jirik
Registered Member
Posts
60
Karma
0
OS
Also note that Cagibi has discovered my dlna server (afaik).
barghest
Registered Member
Posts
48
Karma
0
OS
Any news on this? I'd really love to use amarok for listening to my music collection on my nas using upnp.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, sethaaaa, Sogou [Bot], Yahoo [Bot]