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 2007-11-28 02:10:15

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

GMediaServer

I got my Freecom MusicPal today, et voila, it didn't work with the integrated UPNP server. So I compiled libupnp and gmediaserver ( http://www.gnu.org/software/gmediaserver/ ) and it seems to work well. I've compiled the packages for the 0.4-test, but they should still work on 0.3. Install with funpkg.sh as usual.
http://www.inreto.de/dns323/fun-plug/0.4-test/addons/ (You need libupnp and gmediaserver)

Offline

 

#2 2007-11-28 03:51:28

lindend
New member
Registered: 2007-11-28
Posts: 1

Re: GMediaServer

Fonz,

Just curious, did you consider compiling mediatomb (http://mediatomb.cc/) before deciding on gmediaserver?

The reason I ask is mediatomb is supposedly more robust, supports more media types (especially FLAC) and appears to be more actively maintained.

If not, do you think the ARM binary of mediatomb will run as-is with chroot debian without requiring recompilation?  The reason I ask is I don't have my DNS-323 yet and want to get the tools I need compiled beforehand if necessary.

http://mediatomb.cc/pages/download#debian_ubuntu

Thanks.

Offline

 

#3 2007-11-28 11:09:03

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: GMediaServer

lindend wrote:

Just curious, did you consider compiling mediatomb (http://mediatomb.cc/) before deciding on gmediaserver?

Yes, and also ushare from geexbox, but they require either id3lib or taglib. I didn't get these compile due to C++ issues. gmediaserver/libupnp are C only, and compiled nicely.

Offline

 

#4 2007-11-28 12:26:00

kallehak
Member
Registered: 2007-11-22
Posts: 15

Re: GMediaServer

@lindend, Yes Mediatomb does work out of the box using a chroot debian.

However my Teac doesn't support flac so I need a mediaserver which uses transcoding and I don't like the chroot-thing. There is twonkyvision which works but costs money and there is Fuppes. Fuppes doesn't compile yet, but it's getting closer with svn-570.

@fonz, taglib did compile on my toolchain.

Offline

 

#5 2007-11-28 12:34:12

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: GMediaServer

Kallehak,

Why don't you like the chroot thing? It works like a charm and gives you access to all you need without any compile issues....

Offline

 

#6 2007-11-28 12:59:16

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: GMediaServer

kallehak wrote:

@fonz, taglib did compile on my toolchain.

Mind sharing your script?

Offline

 

#7 2007-11-28 13:15:30

kallehak
Member
Registered: 2007-11-22
Posts: 15

Re: GMediaServer

frodo wrote:

Kallehak,

Why don't you like the chroot thing? It works like a charm and gives you access to all you need without any compile issues....

It feels like putting a cake on top of another cake. But perhaps if can compile fuppes in it I will change my mind wink

Offline

 

#8 2007-11-28 13:30:23

kallehak
Member
Registered: 2007-11-22
Posts: 15

Re: GMediaServer

fonz wrote:

kallehak wrote:

@fonz, taglib did compile on my toolchain.

Mind sharing your script?

I configure with:  ./configure CC=arm-linux-uclibc-gcc GCC=arm-linux-uclibc-gcc CXX=arm-linux-uclibc-g++ CFLAGS="-Os -pipe " CXXFLAGS="-Os -pipe" --target="arm-uclibc-linux-gnu" --host="i686-linux-gnu" --build="arm-uclibc-linux-gnu" --prefix=/mnt/HD_a2/fun_plug.d

and then make: make CC=arm-linux-uclibc-gcc GCC=arm-linux-uclibc-gcc CXX=arm-linux-uclibc-g++

I don't have any scripts !?

Offline

 

#9 2007-11-28 16:19:48

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: GMediaServer

kallehak wrote:

I don't have any scripts !?

I'm a little surprised. What toolchain are you using? I started investigating the issue and found problems with arm-specific uclibc c++ headers.

Offline

 

#10 2007-11-28 17:15:08

kallehak
Member
Registered: 2007-11-22
Posts: 15

Re: GMediaServer

fonz wrote:

kallehak wrote:

I don't have any scripts !?

I'm a little surprised. What toolchain are you using? I started investigating the issue and found problems with arm-specific uclibc c++ headers.

I installed following the guide here: http://dns323.kood.org/howto:crosscompile

Offline

 

#11 2007-11-28 19:45:34

bodbod
Member
Registered: 2007-11-22
Posts: 109

Re: GMediaServer

thx for that fonz, it looks like i will have to switch to ur next packeage (including the upnp server) smile

ciao

Last edited by bodbod (2007-11-28 19:45:52)

Offline

 

#12 2007-12-03 05:42:00

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: GMediaServer

does the upnp server already come pre-compiled? or must i compile it?

Offline

 

#13 2007-12-03 19:08:45

kallehak
Member
Registered: 2007-11-22
Posts: 15

Re: GMediaServer

fonz wrote:

kallehak wrote:

I don't have any scripts !?

I'm a little surprised. What toolchain are you using? I started investigating the issue and found problems with arm-specific uclibc c++ headers.

Could that be the reason for the "illegal instruction"-message I get when trying to run versions higher than 1.1.2 of flac !?
I would love to get at least flac 1.1.3 running since I want support of cover art.

Offline

 

#14 2007-12-07 04:25:40

snarfy
New member
Registered: 2007-12-05
Posts: 4

Re: GMediaServer

fonz,

Ran across an interesting article in the intel OSS site: "Windows* client CIFS behavior can slow Linux* NAS performance"

It's a fast and easy read, very informative.  http://softwarecommunity.intel.com/arti … g/1259.htm

I run fedora 8 on my desktop, and a few others.  Just setup my new 323 and installed a handful of the goodness from the great stuff you've done.  I've use the 323 for various reasons, none at the moment related to streaming a/v, but I'll get around to it.  The article got my curiosity going though.  The smbclient on my fedora setups is version:  3.0.27a-0.fc8.  Can't seem to get the 323's smbclient via telnet to give up it's version number.  Was thinking that as much as you've dug into things you might be check more easily than for me having to pull the GPL tar ball down and plunder through the goods to get the version info.  Maybe you might just know off the top of your head?

Thx...  Keep up the great work!

Offline

 

#15 2007-12-07 15:43:17

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: GMediaServer

snarfy wrote:

The smbclient on my fedora setups is version:  3.0.27a-0.fc8.  Can't seem to get the 323's smbclient via telnet to give up it's version number.

Samba version differs in firmware versions. My firmware is some early 1.04 beta:

Code:

/ # smbd -V
Version 3.0.24

Not sure if this was your question. If not, try again smile

Offline

 

#16 2007-12-07 15:51:26

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: GMediaServer

kallehak wrote:

fonz wrote:

kallehak wrote:

I don't have any scripts !?

I'm a little surprised. What toolchain are you using? I started investigating the issue and found problems with arm-specific uclibc c++ headers.

Could that be the reason for the "illegal instruction"-message I get when trying to run versions higher than 1.1.2 of flac !?
I would love to get at least flac 1.1.3 running since I want support of cover art.

Broken toolchains can cause many kinds of strange behaviour. But often enough, broken Makefiles (i.e. those not designed with cross-compilation in mind) can also break things in mysterious ways... Not 100% sure, but 'illegal instruction' sounds like the binary is made for ARM, but contains either non-ARM instructions or ARM instructions for a different processor or architecture. The DNS-323 has a 926ej-s processor (gcc -mcpu or -mtune) and is an armv5te architecture (gcc -march).

Offline

 

#17 2007-12-07 18:37:35

snarfy
New member
Registered: 2007-12-05
Posts: 4

Re: GMediaServer

Just checked on my firmware: 1.03

smbd -V Version 2.2.8a

If you happened to read the article, you'll this is pretty much a non-issue for smbd versions greater than 3.0.20

How can I snag a copy of the 1.04 beta firmware - any idea?

Thx...

Offline

 

#18 2007-12-07 21:26:11

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: GMediaServer

snarfy wrote:

If you happened to read the article, you'll this is pretty much a non-issue for smbd versions greater than 3.0.20

I think you will still have to set

     strict allocate = yes

in the smb.conf file, if the D-Link default smb.conf does not include this parameter

Windows client CIFS behavior can slow Linux NAS performance wrote:

We have tried to force the linux server to allocate data-full files with the Samba “strict allocate” flag but observed
no change in ext3 performance. (UPDATE 9/12/07: newer versions of Samba 3.0.20 or greater zero-fill files when
“strict allocate” is set. This has the desired effect of producing NTFS-like behavior that works well with windows clients
and improves media serving performance to be on par with XFS.)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#19 2007-12-07 21:48:27

snarfy
New member
Registered: 2007-12-05
Posts: 4

Re: GMediaServer

Assuming the setting/feature works on the 323 as implemented?   

fonz pointed out firmware 1.04 has the version of smbd version needed as stated in the paper.

Trying to put some thought into howto run some benchmarks along the same lines as in the paper - or as close as I can get without hardware monitoring ability.  Curious to see how well the 323 performs.

Offline

 

#20 2007-12-09 15:28:36

ollo
Member
Registered: 2007-06-30
Posts: 17

Re: GMediaServer

Hi fonz,

any idea about a UPnP Software client I could use with GMediaStreamer - e.g. VLC?

Thanks,  ollo

Offline

 

#21 2007-12-09 15:57:09

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: GMediaServer

ollo wrote:

any idea about a UPnP Software client I could use with GMediaStreamer - e.g. VLC?

No (I'm using a Freecom MusicPal as client, no idea what's running inside). And I think there's a problem with my gmediaserver - I terminates after about 24 hours.

Offline

 

#22 2007-12-09 16:07:59

ollo
Member
Registered: 2007-06-30
Posts: 17

Re: GMediaServer

Hi fonz,

I just realized MPG files are currently not supported by GMediaStreamer. Any chance you include that patch into your next build?

http://lists.gnu.org/archive/html/gmedi … 00000.html

Thanks, ollo

PS: hope you find the issue...

Offline

 

#23 2007-12-27 05:47:07

j001
New member
Registered: 2007-12-27
Posts: 1

Re: GMediaServer

I would second the request for a mediaserver that serve video files (without serving video files its kinda useless...)
Fonz what is your email I can send some donations your way. I tried before, but its all in German...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB