DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-01-01 23:34:52

Alind
Member
Registered: 2008-01-01
Posts: 6

DNS-313 UPnP not compatible with my Internet Radio

I have recently bought an Argon iNet Internet Radio (www.argonaudio.com) which can act as an UPnP client to play music media. It works good with the UPnP server on Windows Media Player but does not work with the embedded UPnP server on the DNS-313. The radio will find the server and is able to find a limited part of the content but it will not play any media. It seems from a Swedish forum that people has experienced similar issues with Playstation 3 as client.

Has anyone some more information on this?

Are there any alternative UPnP servers ported to DNS-313?

Offline

 

#2 2008-01-31 20:43:50

Mørkmann
New member
Registered: 2008-01-31
Posts: 4

Re: DNS-313 UPnP not compatible with my Internet Radio

Hi.
I have the same problem with my two media clients. One Sees all folders twice, and the other can't se any. So I'm listening.
Hopefully someone knows what the problem is, maybe a new firmware would help?

Offline

 

#3 2008-02-02 21:27:07

naffarin
Member
Registered: 2008-01-28
Posts: 47

Re: DNS-313 UPnP not compatible with my Internet Radio

I have been successful to use mediatomb on the dns 313 and even my freecom musicpal which wasn't able to play mp3 files is now working.
Debian has precompiled packages for mediatomb and an ARM architecture, but be prepared for a lot of additional library packages.
I preferred to compile it myself after i successfully built a crosscompile environment.

So if you are willing to invest some time i would recommend to disable the default upnp server and put in your own one.

Offline

 

#4 2008-02-03 08:33:24

jako
Member
Registered: 2008-01-27
Posts: 8

Re: DNS-313 UPnP not compatible with my Internet Radio

naffarin wrote:

I have been successful to use mediatomb on the dns 313 and even my freecom musicpal which wasn't able to play mp3 files is now working.
Debian has precompiled packages for mediatomb and an ARM architecture, but be prepared for a lot of additional library packages.
I preferred to compile it myself after i successfully built a crosscompile environment.

So if you are willing to invest some time i would recommend to disable the default upnp server and put in your own one.

Hi Naffarin, any chance of you sharing your Mediatomb deb?

Offline

 

#5 2008-02-03 20:34:29

naffarin
Member
Registered: 2008-01-28
Posts: 47

Re: DNS-313 UPnP not compatible with my Internet Radio

Sure, no problem, if you want to take the risk smile

You can download the package here.
You have to extract the package from your pc as the dns 313 tar seems to be incompatible.

You have to create the symbolic links for the libs after you extracted the package to the wanted install location:

Telnet into the dns 313, login as root.

Execute the following commands:

cd /lib

ln -s <Install Location>/lib/libexif.so.12.0.1 libexif.so.12
ln -s libexif.so.12  libexif.so
ln -s <Install Location>/lib/libid3-3.8.so.3.0.0 libid3-3.8.so.3
ln -s libid3-3.8.so.3 libid3-3.8.so
ln -s <Install Location>/lib/libmagic.so.1.0.0 libmagic.so.1
ln -s libmagic.so.1 libmagic.so
ln -s <Install Location>/lib/libstdc++.so.6.0.3  libstdc++.so.6
ln -s libstdc++.so.6 libstdc++.so
ln -sf <Install Location>/lib/libz.so.1.2.3 libz.so.1
ln -sf libz.so.1 libz.so

Be warned that i used a newer version of libz than the preinstalled one ( 1.2.3 instead of 1.2.1) on the dns-313, it might work with 1.2.1, too, if you want to try, don't execute the two last "ln -sf .." commands.

Be also warned that the version of libstdc++ was not compatible with the precompiled package of mediatomb from the debian sources, presumable because of some different architecture options i used when compiling it. You may run into incompatiblities when you run other programs depending on libstdc++.

Last edited by naffarin (2008-02-05 21:10:14)

Offline

 

#6 2008-02-04 13:34:10

trasgu
Member
Registered: 2007-11-22
Posts: 12

Re: DNS-313 UPnP not compatible with my Internet Radio

Hi Naffarin,

Yesterday I tried to install and test your Mediatomb version (Thanks a lot for it) but, I found a problem in my DNS-313. I run Mediatomb and after it checks the configuration file OK, it stops with a mysterious message of “Killed” in the screen and no additional information.
Have you any idea about what can be happening?  Did you have any similar problem with your installation?

Trasgu.

Offline

 

#7 2008-02-04 20:51:08

naffarin
Member
Registered: 2008-01-28
Posts: 47

Re: DNS-313 UPnP not compatible with my Internet Radio

Ah, sorry, my fault, i accidentally packaged the wrong libid3.so. Please redownload and try again.

Offline

 

#8 2008-02-05 07:08:17

jako
Member
Registered: 2008-01-27
Posts: 8

Re: DNS-313 UPnP not compatible with my Internet Radio

naffarin wrote:

Sure, no problem, if you want to take the risk smile

.....

Many thanks Naffarin, I'll give it a try.

Offline

 

#9 2008-02-05 10:16:12

trasgu
Member
Registered: 2007-11-22
Posts: 12

Re: DNS-313 UPnP not compatible with my Internet Radio

It works!!!  Thank you Naffarin.

Offline

 

#10 2008-02-05 10:48:29

jako
Member
Registered: 2008-01-27
Posts: 8

Re: DNS-313 UPnP not compatible with my Internet Radio

Yes it works for me too. Important to read how to start mediatomb. First I started like this:

./mediatomb -f .mediatomb -m /mnt/HD_a2/mediatomb

to create a .mediatomb directory in the mediatomb directory (doesn't have to be there, but I thought it was easist.) Don't know how necessary this was, but it worked for me :-)

Thereafter to start just

./mediatomb -m /mnt/HD_a2/mediatomb

Didn't get a complete configuration file so I had to mess with it. Here's mine. Don't know if all those mappings are necessary, but since file magic doesn't seem to work, inspite of me installing file magic files, thought it would be a good idea:
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://mediatomb.cc/0.10.0/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/0.10.0/config http://mediatomb.cc/0.10.0/config.xsd">
  <server>
<protocolInfo extend="yes"/>
    <ui enabled="yes">
      <accounts enabled="no" session-timeout="30"/>
    </ui>
    <name>MediaTomb</name>
    <udn>uuid:ac65981b-4919-40b9-af7b-c4b3e34a7935</udn>
    <home>/mnt/HD_a2/mediatomb/.mediatomb</home>
    <webroot>/mnt/HD_a2/mediatomb/share/mediatomb/web</webroot>
    <storage driver="sqlite3">
      <database-file>mediatomb.db</database-file>
    </storage>
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      <common-script>/mnt/HD_a2/mediatomb/share/mediatomb/js/common.js</common-script>
      <playlist-script>/mnt/HD_a2/mediatomb/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/mnt/HD_a2/mediatomb//share/mediatomb/js/import.js</import-script>
<magic-file>/mnt/HD_a2/mediatomb/share/file</magic-file>
</virtual-layout>
    </scripting>
     <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
    <map from="avi" to="video/x-divx"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
      </mimetype-contenttype>
    </mappings>
  </import>
</config>
-------------------------
Works great for music and video on my Nokia N800. Thanks again naffarin!

Offline

 

#11 2008-03-14 14:10:48

PavelR
New member
Registered: 2008-03-14
Posts: 3

Re: DNS-313 UPnP not compatible with my Internet Radio

Guys,

first - I'm not linux guru...

but I was able to "install" mediatomb as you are describing here.

but,but ... It looks that libs you are linking are disappeared after DNS rebot !? How to keep them forever (I'm not able to edit rc.sh), also I don't know how to make mediatomb as service 'cause mediatomb -d  is read xml-cfg then program is ended. Also & is not working to put mediatomb to background.

As I said I'm not linux educated, please could you provide some how-to run mediatomb as deamon.

Thnx in advance,

Pavel
@Prague

Offline

 

#12 2008-03-14 14:27:36

naffarin
Member
Registered: 2008-01-28
Posts: 47

Re: DNS-313 UPnP not compatible with my Internet Radio

Hmm, i can't follow you on not being able to fork mediatomb to a background process...that works fine here. Do you get an error message or something like that ?
You are right about the links in /lib vanishing after each reboot which is a "feature" of the dns313 to overwrite the root filesystem. Luckily you can get around that quite easily.

You can use the fun_plug mechanism, just create a file named fun_plug in the directory /mnt/HD_a2

My fun_plug for example looks like this:

Code:

# cat fun_plug
#!/bin/sh
#
# Simple fun_plug
#
#dmesg > /mnt/HD_a2/dmesg.out
# relink mediatomb libs 
/mnt/HD_a2/usr/bin/prepare_mt.sh
# start mediatomb
/mnt/HD_a2/usr/bin/mediatomb -c /mnt/HD_a2/usr/etc/config.xml -l /mnt/HD_a2/usr/share/mediatomb.log &

ln -s /bin/busybox /bin/cut

You actually only need these four lines :
# relink mediatomb libs
/mnt/HD_a2/usr/bin/prepare_mt.sh
# start mediatomb
/mnt/HD_a2/usr/bin/mediatomb -c /mnt/HD_a2/usr/etc/config.xml -l /mnt/HD_a2/usr/share/mediatomb.log &

The script that does the linking is named prepare_mt.sh and resides in the above example in /mnt/HD_a2/usr/bin/:

Code:

ln -sf /mnt/HD_a2/usr/lib/libexif.so.12.0.1 /lib/libexif.so.12
ln -sf /lib/libexif.so.12  /lib/libexif.so
ln -sf /mnt/HD_a2/usr/lib/libid3-3.8.so.3.0.0 /lib/libid3-3.8.so.3
ln -sf /lib/libid3-3.8.so.3 /lib/libid3-3.8.so
ln -sf /mnt/HD_a2/usr/lib/libmagic.so.1.0.0 /lib/libmagic.so.1
ln -sf /lib/libmagic.so.1 /lib/libmagic.so
#ln -sf /mnt/HD_a2/usr/lib/libsqlite3.so.0.8.6 /lib/libsqlite3.so.0
#ln -sf /lib/libsqlite3.so.0 /lib/libsqlite3.so
ln -sf /mnt/HD_a2/usr/lib/libstdc++.so.6.0.3  /lib/libstdc++.so.6
ln -sf /lib/libstdc++.so.6 /lib/libstdc++.so
#ln -sf /mnt/HD_a2/usr/lib/libz.so.1.2.3 /lib/libz.so.1
#ln -sf /lib/libz.so.1 /lib/libz.so

Of course you have to change the paths according to your system .

There is another option using an environment variable named LDD_LIBRARY_PATH but the above version works fine, too.

Offline

 

#13 2008-03-14 21:21:18

PavelR
New member
Registered: 2008-03-14
Posts: 3

Re: DNS-313 UPnP not compatible with my Internet Radio

zoooper,
I had no clue about fun_plug. So I think I will have lot of fun with this box .. ;-)
It is working fine now.
About problem with "&"; I think there was problem with space after command.

T H A N K  Y O U !!!!

U save few nights to me....

Regards,

Pavel

Offline

 

#14 2008-03-17 13:24:17

PavelR
New member
Registered: 2008-03-14
Posts: 3

Re: DNS-313 UPnP not compatible with my Internet Radio

oops,
mediatomb looks fine after installation, but...
when I placed 30 000 of MP3s into it, then DNS-313 is die away.
When tested with few MP3s, then PS3 is reporting DLNA or other timout errors after 5 to 10 mins of playing.
With 30k of MP3s Blue HDD led is changed to green (reporting that my 1TB is almost full) and NAS services (SAMBA) are death too.

I thing that this NAS isn't suitable for large mm library.

Offline

 

#15 2008-03-23 17:01:49

Roman
New member
Registered: 2008-03-23
Posts: 4

Re: DNS-313 UPnP not compatible with my Internet Radio

I got MediaTumb working for audio and video, thanks a lot for the valuable advices and the mediatumb-package in this thread.

I had problems with video, that  were solved by adding the following mappings to the config file (earlier in this thread):
        <map from="mpg" to="video/mpeg"/>
        <map from="mpeg" to="video/mpeg"/>

Firstly I got some intermediate mess up of mappings of mpeg/mpg files in the database, but they were solved when I removed the DB and mediatumb created a new one.

Now I can play files > 2 GB that DLINK's UPnP truncates to 2GB (~ 1 hour in normal resolutions)! Great!

Last edited by Roman (2008-03-24 12:03:45)

Offline

 

#16 2008-03-26 22:27:10

freddygital
Member
Registered: 2008-02-27
Posts: 41

Re: DNS-313 UPnP not compatible with my Internet Radio

i have web radio  TERRATEC noxon

its work fine with my 313

Offline

 

#17 2008-05-26 09:31:36

scapitan
Member
From: Murcia (Spain)
Registered: 2008-05-22
Posts: 49
Website

Re: DNS-313 UPnP not compatible with my Internet Radio

I have mediatomb working fine, but I can´t watch te avi video.
any sugestion?

thanks


DNS-313 / native running etch4.0r3 Thanks to CharminBaer
ZEN SOLUCIONES
http://www.zensoluciones.com  (Spanish)
http://www.zsred.com (Spanish)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB