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.

#1 2008-03-20 23:16:52

Delekhan
Member
Registered: 2008-03-11
Posts: 18

ffp 0.5 Firefly package (with ogg and flac)

Hi everyone,

Do not use these download links anymore! I set up a homepage to store all the new versions. You can access them here: http://files.hesse-n.com/ch3snas/




I just compiled a working Firefly version with ogg and flac support, which I want to share.

Cookbook:

Install sqlite3 from fonz
Install libid3tag (download it from http://uploaded.to/?id=rgyaf9 )
Install libogg (download it from http://uploaded.to/?id=ydp40t )
Intsall libvorbis (download it from http://uploaded.to/?id=jdhcyn )
Install vorbis-tools (download it from http://uploaded.to/?id=0q3ife )
Install flac (download it from http://uploaded.to/?id=yfsrn9 )

And finally install Firefly (download it from http://uploaded.to/?id=of7auw Updated package!!! ) and do a chmod a+x mtdaapd.sh in your start folder. Make sure the folder /mnt/HD_a2/iTunes exists and the embedded iTunes server is disabled.
That's it, start and configure via the web interface http://<ip-of-your-nas>:3689/ with user "admin" and password "mt-daapd".



Greetz,
Markus

Last edited by Delekhan (2008-06-19 11:32:07)

Offline

 

#2 2008-03-29 11:58:41

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: ffp 0.5 Firefly package (with ogg and flac)

I installed succefully every single package that you have linked.

Firefly starts correctly - the web console responds too - but with this new version of FireFly, when I start iTunes and I try to explore the smartlist I get the following errors:

Code:

2008-03-24 10:53:15 (00000400): Firefly Version svn-1696: Starting with debuglevel 2
2008-03-24 10:53:15 (00000400): Plugin loaded: ssc-script/svn-1696
2008-03-24 10:53:15 (00000400): Plugin loaded: rsp/svn-1696
2008-03-24 10:53:15 (00000400): Plugin loaded: daap/svn-1696
2008-03-24 10:53:15 (00000400): Starting rendezvous daemon
2008-03-24 10:53:15 (00000400): Starting signal handler
2008-03-24 10:53:15 (00000400): Initializing database
2008-03-24 10:53:17 (00000400): Starting web server from /mnt/HD_a2/ffp/share/mt-daapd/admin-root on port 3689
2008-03-24 10:53:17 (00000400): Registering rendezvous names
2008-03-24 10:53:17 (00000400): Serving 2759 songs.  Startup complete in 2 seconds
2008-03-24 10:54:34 (00001003): Unknown meta code: daap.songalbumartist
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.has-videodaap.songcategory
2008-03-24 10:54:34 (00001003): Unknown meta code: daap.songextradata
2008-03-24 10:54:34 (00001003): Unknown meta code: daap.songcontentdescription
2008-03-24 10:54:34 (00001003): Unknown meta code: daap.songlongcontentdescription
2008-03-24 10:54:34 (00001003): Unknown meta code: daap.songkeywords
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.is-podcast
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.mediakind
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.series-name
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.network-name
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.episode-num-str
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.episode-sort
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.season-num
2008-03-24 10:54:34 (00001003): Unknown meta code: daap.songgapless
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.gapless-enc-del
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.gapless-heur
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.gapless-enc-dr
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.gapless-dur
2008-03-24 10:54:34 (00001003): Unknown meta code: com.apple.itunes.gapless-resy
2008-03-24 10:54:39 (00001003): Unknown meta code: com.apple.itunes.is-podcast-playlist
2008-03-24 10:54:39 (00001003): Unknown meta code: com.apple.itunes.special-playlist
2008-03-24 10:54:46 (00000400): Rendezvous socket closed (daap server crashed?) Aborting.
2008-03-24 10:54:46: Aborting

Offline

 

#3 2008-03-29 12:06:01

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: ffp 0.5 Firefly package (with ogg and flac)

Never mind, I resolved it. The problem was in the smart playlists loaded from the XML iTunes file. Now it works.

Many thanks for your work!!!

Last edited by stealth82 (2008-03-29 12:12:15)

Offline

 

#4 2008-03-31 04:11:05

golby
Member
Registered: 2007-05-08
Posts: 5

Re: ffp 0.5 Firefly package (with ogg and flac)

So I got it working, but then I decided to reboot my system.  Now I am getting this.

2008-03-30 19:55:42 (00000400): Firefly Version svn-1696: Starting with debuglevel 2
2008-03-30 19:55:42 (00000400): Plugin loaded: ssc-script/svn-1696
2008-03-30 19:55:42 (00000400): Plugin loaded: rsp/svn-1696
2008-03-30 19:55:42 (00000400): Plugin loaded: daap/svn-1696
2008-03-30 19:55:42 (00000400): Starting rendezvous daemon
2008-03-30 19:55:42 (00000400): Starting signal handler
2008-03-30 19:55:42 (00000400): Initializing database
2008-03-30 19:55:46 (00000400): Query: vacuum
2008-03-30 19:55:46 (00000400): Error: disk I/O error
2008-03-30 19:55:46: Aborting
2008-03-30 19:55:46 (00000400): Rendezvous socket closed (daap server crashed?) Aborting.
2008-03-30 19:55:46: Aborting

Any ideas? Thanks

Offline

 

#5 2008-03-31 22:29:38

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

I think I figured out the problem. If you got to many songs in your DB, /tmp runs out of space (bad idea anyway to have /tmp on a flash based drive) and firefly crashes. I'm going to release a new build tomorrow.
Have you made sure that your DB is in a good condition?


Edit: Seems like I don't have to compile a new package. You should be able to set TMPDIR to a path on your disk. Simply add "export TMPDIR=/ffp/tmp" to your mtdaapd.sh in the start folder should do it. Hopefully this solves your problem.

See ya,
Markus

Last edited by Delekhan (2008-03-31 23:15:18)

Offline

 

#6 2008-04-01 03:38:09

golby
Member
Registered: 2007-05-08
Posts: 5

Re: ffp 0.5 Firefly package (with ogg and flac)

Still not working sad I put export TMPDIR='/ffp/tmp" in my mt-daapd.sh file.  I deleted the songs3.db file and rebuilt the database.  it rebuilds the database and it everything works fine.  then i reboot my box and i/o error again....thanks for the help

I have about 9000 songs.

Last edited by golby (2008-04-01 04:15:25)

Offline

 

#7 2008-04-03 22:58:58

rori
Member
Registered: 2007-09-29
Posts: 49

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi, I think that I can confirm the same error:

Up to 10.000 songs things run as they should.

But above 10.000 songs, things go crazy.

In the browser window, the song count always stops at 9999 songs (there are more...)

how can debug this in the best way?

Any ideas?

R

Last edited by rori (2008-04-03 23:29:51)


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#8 2008-04-04 14:28:42

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi everyone,

sorry for my late answear, but I was in the middle of my school finals. As I thought, firefly is running out of tmp space. Knowing that I came up with a dirty hack.

The new mtdaapd.sh start script:

Code:

#!/ffp/bin/sh

# PROVIDES: mt-daapd 
# REQUIRES: LOGIN

. /ffp/etc/ffp.subr

name="mtdaapd"
command="/ffp/sbin/$name"
mtdaapd_flags="-c /ffp/etc/mt-daapd.conf"

rm -R /ffp/tmp/*
cp -R /tmp/* /ffp/tmp/
rm -R /tmp
ln -s /ffp/tmp /tmp

run_rc_command "$1"

sleep 30

rm -R /tmp
mkdir /tmp
cp -R /ffp/tmp/* /tmp/
rm -R /ffp/tmp/*

This script moves /tmp to /ffp/tmp in orde to have enough free space. So I recommend creating /ffp/tmp before trying it out. I would appreciate it if anybody could come up with a not-so-dirty fix.

Markus

Offline

 

#9 2008-04-04 15:21:00

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

Re: ffp 0.5 Firefly package (with ogg and flac)

If there's no clean way to tell firefly to use a different temp directory, you should patch the sources. This is really ugly.

Offline

 

#10 2008-04-04 19:25:51

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

I hunted down the problem and found out that sqlite3 querys cause the crash. I'm going to fix the problem soon.

: Here it is. The updated package: http://uploaded.to/?id=of7auw
    Basically, I only added "pragma temp_store_directory" in front of the vacuum where it crashed before. This solved the problem for me. Try it out.

Markus

Last edited by Delekhan (2008-04-04 20:23:53)

Offline

 

#11 2008-04-08 22:33:24

rori
Member
Registered: 2007-09-29
Posts: 49

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

I have tried the updated version (mt-daapd-svn-1696-2.tgz). Things still stop at approx. 10.000 files.

I would really like to help debugging, ogg and flac support is what I am looking for for a long time. Please give me some advice on how to support.

Last edited by rori (2008-04-08 22:49:15)


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#12 2008-04-09 20:34:03

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

of course you can help me. You could provide me with an strace output when firefly crashes.
The command should be something like "strace mt-daapd -f -d9 -c /ffp/etc/mt-daapd.conf".
Hopefully this helps me finding out, when firefly crashes.




Markus

Offline

 

#13 2008-04-10 19:45:09

rori
Member
Registered: 2007-09-29
Posts: 49

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi, I was wrong: scan of the files and building up the database seems to work now (12749 songs served, including oggs), but during streaming/playback of ogg-files the "oggdec" is missing.

Code:

/mnt/HD_a2/ffp # mtdaapd -f
Firefly Version svn-1696: Starting with debuglevel 2
Plugin loaded: ssc-script/svn-1696
Plugin loaded: rsp/svn-1696
Plugin loaded: daap/svn-1696
Starting rendezvous daemon
Starting signal handler
Initializing database
Starting web server from /mnt/HD_a2/ffp/share/mt-daapd/admin-root on port 3689
Registering rendezvous names
Serving 12749 songs.  Startup complete in 31 seconds
Session 0: Streaming file '01 - Temptation Waits.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '02 - I Think I'm Paranoid.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '03 - When I Grow Up.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '04 - Medication.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '05 - Special.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '06 - Hammering In My Head.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '07 - Push It.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '08 - The Trick Is To Keep Breathing.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '09 - Dumb.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '10 - Sleep Together.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '11 - Wicked Ways.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.
Session 0: Streaming file '12 - You Look So Fine.ogg' to 192.168.2.3 (offset 0)
oggdec: No such file or directory
wavstreamer: Can't read wav header.

The addionally need packages have been installed according to your manual.

Do I have to adjust something in the mt-daapd.conf?
Does the file point to the right place where the transcoding-plugins are situated?

Any good advice is appreciated :-)

Last edited by rori (2008-04-10 19:47:49)


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#14 2008-04-10 19:47:35

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

good to know that it is working now :-) Mhh, lokks like I forgot the oggdec package - I never tried out ogg, only flac.
Going to solve this problem in 2-3 hours.

What did you do, that firefly is now working? Deleted the songs3.db?

Markus

Offline

 

#15 2008-04-10 19:50:35

rori
Member
Registered: 2007-09-29
Posts: 49

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi, basically I reinstalled ffp0.5 from scratch, which includes also to reinstall all firefly packages and - of course to rebuilt the songs3.db-database included in the directory.

One of those 3 things did the job :-)

If you could provide a version including ogg - that would be great!

Last edited by rori (2008-04-10 19:52:58)


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#16 2008-04-11 12:59:14

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hello,

somehow vorbis-tools were missing. You can download them here: http://uploaded.to/?id=0q3ife


Markus

Offline

 

#17 2008-04-13 12:06:37

rori
Member
Registered: 2007-09-29
Posts: 49

Re: ffp 0.5 Firefly package (with ogg and flac)

Perfect,works fine now! Great job! Thanks a lot!


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#18 2008-05-31 19:38:30

andrev
Member
Registered: 2007-11-19
Posts: 7

Re: ffp 0.5 Firefly package (with ogg and flac)

Thanks a lot! I had compiled my own firefly that had problems when the library grew past 1000 songs... This solved everything. Thanks! (works perfectly on the DNS-313, btw)

Last edited by andrev (2008-05-31 19:39:07)

Offline

 

#19 2008-06-06 13:53:13

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: ffp 0.5 Firefly package (with ogg and flac)

My Soundbridge is finally able to play ALL my mp3, ogg and flac files from my CH3SNAS! (The default CH3SNAS mediaplayer has problems with the Soundbridge and/or vice versa)
No problems with this Firefly package, it is a perfect solution!
Thanks Delekhan / Markus for your solution!

Last edited by EnricoM (2008-06-06 13:57:17)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#20 2008-06-15 11:03:29

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: ffp 0.5 Firefly package (with ogg and flac)

I just discovered that oggdec (real-time conversion from ogg to wav) takes about 60% of the CPU load on my CH3SNAS. This is much more then FLAC conversion to WAV (about 9% CPU load).  I would like to lower the CPU load for on the fly ogg conversion, but I don't know if that is possible.

Is the oggdec module in this package the 'integer only' Tremor code or not?


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#21 2008-06-15 11:51:03

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

it is possible that oggdec is eating up a lot of CPU power. Since I have a flac only database, I never noticed any problems. wink
But it seems that Tremor is way faster on integer only platforms (The DNS-323/CH3SNAS doesn't have/has a FPU, does it?) so I'm planning on releasing a replacement for oggdec. Probaply going to do that toningt.

Thanks for using the package, seems to help a few. smile


Markus

Offline

 

#22 2008-06-15 16:40:05

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: ffp 0.5 Firefly package (with ogg and flac)

That would be great!

The DNS-323 and CH3SNAS don't have a FPU and have a small amount of memory, so I think that that the low-memory branch Tremor decoder will perform more efficient.

I would be happy to test this!

UPDATE 16-06: I'm not sure if the low-memory branch is a good choice... Seems to be intended for embedded devices with VERY LITTLE memory... It seems to cause higher CPU load then the standard Tremor code.

Last edited by EnricoM (2008-06-17 16:17:05)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#23 2008-06-18 21:38:16

rori
Member
Registered: 2007-09-29
Posts: 49

Re: ffp 0.5 Firefly package (with ogg and flac)

Hello,

I have been using this pimped version for quite a while - thanks for the good work done so far.

But I am getting problems after the latest firmware-upgrade: I backed up all data from myDNS323 and upgraded to firmware 1.05b28. Then I did a reformat and copied back my files.

Then I reinstalled ffp0.5, and and fetched the upgraded to the latest versions from fonz's homepage >>>inreto<<<.

I also installed the 6 additional packages needed for this firefly-version, started up the mt-daapd server and rescanned succesfully:

Current state:

/ # mtdaapd -f
Firefly Version svn-1696: Starting with debuglevel 2
Plugin loaded: ssc-script/svn-1696
Plugin loaded: rsp/svn-1696
Plugin loaded: daap/svn-1696
Starting rendezvous daemon
Starting signal handler
Initializing database
Starting web server from /mnt/HD_a2/ffp/share/mt-daapd/admin-root on port 3689
Registering rendezvous names
Serving 10595 songs.  Startup complete in 6 seconds

The problem is that my Soundbridge does not SEE the server anymore. I think this is because the BONJOUR-server is not running. AFAIK it was running before the upgrade.

This is what I get from the web-frontend:
Service                      Status     
Bonjour                     Stopped    
Firefly Media Server     Running    
File scanner             Idle    

How can I re-enable BONJOUR or debug this in a clever way? Any good advice is greatly appreciated...

Regards

rori


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#24 2008-06-18 22:12:08

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Hi,

going to release a new version during the next few days anyway. This will be r1735 out of the Firefly svn. It seems to me that this version solved quite a few bugs...


FURTHER I got Tremor working smile

/mnt/HD_a2/ffp/build_utils/packages # time oggdec /mnt/HD_a2/Epoq-Lepidoptera.ogg
oggdec (w/Tremor hack) from vorbis-tools 1.2.0
Decoding "/mnt/HD_a2/Epoq-Lepidoptera.ogg" to "/mnt/HD_a2/Epoq-Lepidoptera.wav"
        [100.0%]
real    1m 27.61s
user    0m 30.50s
sys     0m 16.87s


Not bad for a five minute Ogg I would say.

@rori: Did you disable the build in server?

Stay tuned,
Markus

Offline

 

#25 2008-06-19 11:26:04

Delekhan
Member
Registered: 2008-03-11
Posts: 18

Re: ffp 0.5 Firefly package (with ogg and flac)

Good morning! (at least over here in Europe)

Ready to update Firefly to the latest svn? I'm sure you are. Everything is done with fonz build utilities and of course we are using tremor to decode ogg files. You can download all this stuff here: http://files.hesse-n.com/ch3snas/ Just make sure to install all the files, otherwise Firefly will crash...

Bye,
Markus

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB