Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I am sharing my build of MediaTomb 0.12.0 SVN 2017 if anyone is interested. I am using MediaTomb to stream media to my DirecTV HR20 and the current release (0.11.0) doesn't work with this device. I (and others) have worked with the MediaTomb developer and have gotten the SVN code to work. With the HR20, it only supports a minimal amount of formats (Audio: wav, lpcm, Video: Mpeg2, Photo: jpeg) so I have taken full advantage of the transcoding features of MediaTomb.
Here is the link to for the base MediaTomb files. The base MediaTomb install should run independent of ffp.
Current static build:
mediatomb-0.12.0-SVN2017-static-dns323.tar.gz Download: http://www.box.net/shared/89k4mpeqmb
Previous build:
mediatomb-0.12.0-SVN1903-static-dns323.tar.gz Download: http://www.box.net/shared/6r2cyz1i2s
This version has been compiled it into a static build. This means all libraries are compiled into the mediatomb binary and no dependent libraries need to be installed into /ffp/lib. If you installed SVN1899, you can delete the previously installed taglib, js, and curl libraries by going to /ffp/pkg/additional and performing a funpkg -r on each of the three library packages. If you wish to leave them installed, no harm done. It just takes up room on the hard drive.
The libraries included in this static build are:
sqlite
libmagic
taglib (patched version with wma support)
js (javascript to run custom import scripts)
curl
libexif
expat
zlib
libmp4v2 (this reads tags of m4a files )
Place the mediatomb tarball in /mnt/HD_a2. To install mediatomb, tar xzf mediatomb-0.12.0-SVN1903-static-dns323.tar.gz This will create a mediatomb12 directory and I would recommend running MediaTomb from here to prevent it from interfering with fonz's MediaTomb package. To start MediaTomb, run ./mediatomb.sh from /mnt/HD_a2/mediatomb12. This will start it in daemon mode. It will automatically create a config.xml and mediatomb.db in /mnt/HD_a2/mediatomb12/config. I have included a sample config file (config.xml.hr2x) that I use with my HR20. At this point, you can access the web UI and start importing files. I have also included my import file scripts. If you wish to try them out, change <virtual-layout type="builtin"> to <virtual-layout type="js"> in config.xml. You must restart MediaTomb for the changes in config.xml to take effect.
If you are interested in the transcoding features, here are some additional files. These require ffp 0.5 be installed on your DNS-323. They all use fixed point math and work well on the DNS-323:
If you wish to transcode flac or ogg audio to wav (or pcm), download all *.tgz packages (you do not need mt-daapd) from here:
http://files.hesse-n.com/ch3snas/ (thanks to Delekhan)
and place them in /ffp/pkg/additional. Use funpkg -i to install them. Then, look at config.xml.hr2x as a reference to create the transcoding profiles in config.xml.
To transcode mp3 to wav, wmv to wav, mms streams to wav, mp4 audio to wav, transcode jpg by stripping exif metadata, or MPEG PS to TS, download these packages:
mp3 to wav:
madplay-0.15.2b-ffp0.5.tgz Download: http://www.box.net/shared/14sseqesfu
libmad-0.15.1b-ffp0.5.tgz Download: http://www.box.net/shared/qjgk66vhe7
libid3tag-0.15.1b-2.tgz Download: http://www.box.net/shared/o1jpocr13i
mp4 audio to wav:
faad2-2.6-ffp0.5.tgz Download: http://www.box.net/shared/05hc9ftgvr
Other transcodes:
mediatomb-transcode-bin-1.1-ffp0.5.tgz Download: http://www.box.net/shared/tx1lmgsjtu
libmms-0.4-ffp0.5.tgz Download: http://www.box.net/shared/ousm1tctih
glib-2.18.1-ffp0.5.tgz Download: http://www.box.net/shared/opepcm96im
Here is an alternate shared folder with these files if the box.net server doesn't work:
Alternate Shared Folder: http://www.mediafire.com/?sharekey=a730 … fb8bf74f12
Once again, place all of these in /ffp/pkg/additional and use funpkg -i to install them. Use config.xml.hr2x as a reference to create the transcoding profiles in config.xml.
Enjoy
--John
UPDATE: File download location should work now.
UPDATE (20 Oct 08): Fixed madplay and faad.
UPDATE (23 Oct 08): Updated MediaTomb to Static Build of SVN1903
UPDATE (26 Oct 08): Added alternate download location
UPDATE (23 Jan 09): SVN 2017 build
Last edited by boilerjt (2009-01-24 04:47:20)
Offline
Thanks for this - will give it a try at the weekend.
RAP
Offline
rap wrote:
Thanks for this - will give it a try at the weekend.
RAP
Let me know how it goes. Mostly, I need to know if I provided all of the necessary dependencies.
Offline
Hi boilerjt,
Would it be possible to put those files to somewhere else as well?
That fileqube is down for like 2 days now...
Thanks.
-sc
edited: done - down ...
Last edited by scarcow (2008-10-19 14:33:52)
Offline
The file download links should work now... Fileqube had been highly recommended, but since their "upgrade" has now shut the site down for 4 days, I'll try box.net.
Please let me know how it works.
Offline
Thanks, i could try it now. It works fine now, of course i had to tweak the config.xml a little. I could try the flac transcoding (this was the main reason i wanted to try your build), and it also works fine.
One little issue i found, is that wma and mp4 tags are not read. Is it possible to make taglib read those? I found one patch to taglib that makes it possible to read wma tags, but i am totally noob in compiling programs, so i can't even start to try to compile it.
Do you have time to look into this?
Anyway, thanks once more for this, it really makes me happy that i can play my flac now on the media player
-sc
Last edited by scarcow (2008-10-19 18:51:07)
Offline
I'm happy to see it works for you. I'll look into the wma patch for taglib. As for mp4 audio tags, MediaTomb uses libmp4v2 to read the tags (this is a new feature of 0.12.0), but I cannot get it to work on the DNS-323. It compiles fine on my DNS-323, but will not read the tags. It works fine on my Ubuntu MediaTomb. I've told Jin (MediaTomb developer) about this.
Thanks for the feedback
scarcow wrote:
Thanks, i could try it now. It works fine now, of course i had to tweak the config.xml a little. I could try the flac transcoding (this was the main reason i wanted to try your build), and it also works fine.
One little issue i found, is that wma and mp4 tags are not read. Is it possible to make taglib read those? I found one patch to taglib that makes it possible to read wma tags, but i am totally noob in compiling programs, so i can't even start to try to compile it.
Do you have time to look into this?
Anyway, thanks once more for this, it really makes me happy that i can play my flac now on the media player
-sc
Offline
I've followed instructions in the first message. My problem is that transcoding only works with local .ogg files. Streaming .ogg, local and streaming .aac, .flac don't work.
For example when I try to play local .aac file the stream doesn't start on the radio, just says "Connecting..."
When I type 'faad' in a DNS-323 telnet session it answers:
faad: can't load library 'libfaad.so.0'
I didn't find neither any libfaad installed in my NAS, nor any downloadable one.
My Freecom MusicPal can't play ogg, aac and flac, but I'd like to listen to ogg and aac streams from Internet. I can play now local ogg files, but it's the least important thing to me.
Is there any way to transcode .aac and .ogg streams on DNS-323 with Mediatomb and listen to it on MusicPal?
Update: I can play .ogg streams. I've put the streaming ogg file (found in the .m3u playlist file) in the database in a URL content. Keepin' tryin'...
Last edited by Rival (2008-10-19 23:29:52)
Offline
Rival wrote:
I've followed instructions in the first message. My problem is that transcoding only works with local .ogg files. Streaming .ogg, local and streaming .aac, .flac don't work.
For example when I try to play local .aac file the stream doesn't start on the radio, just says "Connecting..."
When I type 'faad' in a DNS-323 telnet session it answers:
faad: can't load library 'libfaad.so.0'
I didn't find neither any libfaad installed in my NAS, nor any downloadable one.
My Freecom MusicPal can't play ogg, aac and flac, but I'd like to listen to ogg and aac streams from Internet. I can play now local ogg files, but it's the least important thing to me.
Is there any way to transcode .aac and .ogg streams on DNS-323 with Mediatomb and listen to it on MusicPal?
Update: I can play .ogg streams. I've put the streaming ogg file (found in the .m3u playlist file) in the database in a URL content. Keepin' tryin'...
I was able to replicate the "faad: can't load library 'libfaad.so.0'" issue. The same thing can happen with madplay as well. The problem is that I got faad and madplay from optware and it looks like the library path is hard coded to /opt/lib. I moved the files from /opt/lib to /ffp/lib and I still get the can't load library error. It looks like I will have to compile faad and madplay myself. In the meantime, you can install madplay and faad from optware and it should work for you.
As far as streaming mp4 audio, it will not work because faad doesn't accept URLs, only files. I haven't tested with streaming ogg, but its probably the same with oggdec. I've only tested with mp3 and wmv (mms).
Thanks,
John
Offline
boilerjt wrote:
As far as streaming mp4 audio, it will not work because faad doesn't accept URLs, only files. I haven't tested with streaming ogg, but its probably the same with oggdec. I've only tested with mp3 and wmv (mms).
I repeat: ogg stream transcoding is working now. In Mediatomb database (web access) you need to put a new external link (URL) item with the exact URL of the streaming ogg media. As I see it works only this way, does not work with the .m3u playlist file.
For exaple (a Transylvanian regional radio):
Title: Régió Rádió
URL: http://89.37.193.62:8000/highband.ogg
Protocol: http-get
Class: object.item
Description: Régió Rádió
Mimetype: application/ogg
If you could have a compiled libfaad I could try to play .aac stream and see if it works or not.
Offline
Rival wrote:
boilerjt wrote:
As far as streaming mp4 audio, it will not work because faad doesn't accept URLs, only files. I haven't tested with streaming ogg, but its probably the same with oggdec. I've only tested with mp3 and wmv (mms).
I repeat: ogg stream transcoding is working now. In Mediatomb database (web access) you need to put a new external link (URL) item with the exact URL of the streaming ogg media. As I see it works only this way, does not work with the .m3u playlist file.
For exaple (a Transylvanian regional radio):
Title: Régió Rádió
URL: http://89.37.193.62:8000/highband.ogg
Protocol: http-get
Class: object.item
Description: Régió Rádió
Mimetype: application/ogg
If you could have a compiled libfaad I could try to play .aac stream and see if it works or not.
I've been messing with faad2 trying to compile it in fixed point mode and nothing is working for me. It only seems to compile in floating point which will not work (--without-fp --nfp does not work). The easiest thing to do is to download the optware build of faad (with libs) and it will work for you. Follow the instructions here:
http://dns323.kood.org/howto:optware
When you get it set up, get faad by: /opt/bin/ipkg install faad2
This will install the libs you need in /opt/lib and faad will work for you. I have a very busy work week and will probably not be able to resume this until next weekend.
Last edited by boilerjt (2008-10-20 07:28:40)
Offline
Faad and Madplay have been recompiled using the ffp 0.5 toolchain and everything is now completely independent of optware. The download links have been updated in Post #1.
Offline
boilerjt wrote:
Faad and Madplay have been recompiled using the ffp 0.5 toolchain and everything is now completely independent of optware. The download links have been updated in Post #1.
That's great. Please add your packages to the wiki http://dns323.kood.org/howto:ffp#contri … iscussions so people will find them. Also, add a note about your extended packages in the mediatomb section http://dns323.kood.org/howto:ffp#mediat … dia_server
Offline
fonz wrote:
boilerjt wrote:
Faad and Madplay have been recompiled using the ffp 0.5 toolchain and everything is now completely independent of optware. The download links have been updated in Post #1.
That's great. Please add your packages to the wiki http://dns323.kood.org/howto:ffp#contri … iscussions so people will find them. Also, add a note about your extended packages in the mediatomb section http://dns323.kood.org/howto:ffp#mediat … dia_server
Thanks for the reply. Before I add to the wiki, I'd like a couple more people to test this out. It works great for me, but I need to know if it works for people who don't have a development environment loaded on their DNS-323. In my experience, this is where the bugs are usually found.
I am still working on this and I'm in the process of adding a few more options. I'm also working on getting it built statically to eliminate the need to install a lot of libs. I do have one question for you... Is there any special trick to get inotify working?
Offline
fonz wrote:
boilerjt wrote:
Is there any special trick to get inotify working?
Yes, you need a kernel >= 2.6.16.
Looks like it would be waste of time working on inotify support in MediaTomb with the DNS-323...
Offline
According to wikipedia inotify can be compiled to 2.6.12
wikipedia wrote:
inotify is a Linux kernel subsystem that provides file system event notification. It was written by John McCutchan with help from Robert Love and later Amy Griffis to replace dnotify. It was included in the mainline kernel from release 2.6.13 (2005-06-18), and could be compiled into 2.6.12 and possibly earlier releases by use of a patch. Its function is essentially an extension to filesystems to notice changes to the filesystem, and report those changes to applications.
http://en.wikipedia.org/wiki/Inotify
OK, i admit i know nothing about linux, so this might be totally irrelevant. I just wanted to search what is this inotify you guys are talking about, and found this.
-sc
Offline
scarcow wrote:
According to wikipedia inotify can be compiled to 2.6.12
wikipedia wrote:
inotify is a Linux kernel subsystem that provides file system event notification. It was written by John McCutchan with help from Robert Love and later Amy Griffis to replace dnotify. It was included in the mainline kernel from release 2.6.13 (2005-06-18), and could be compiled into 2.6.12 and possibly earlier releases by use of a patch. Its function is essentially an extension to filesystems to notice changes to the filesystem, and report those changes to applications.
http://en.wikipedia.org/wiki/Inotify
OK, i admit i know nothing about linux, so this might be totally irrelevant. I just wanted to search what is this inotify you guys are talking about, and found this.
-sc
Inotify support in MediaTomb would be nice because it would trigger automatic database imports when new files are added to the DNS-323. However, I don't want to mess with the kernel to get it working.
Offline
I there any way to download a version that not contains hard coded paths? When I try to run your mediatomb version under fun_plug v0.3 it says sh:(...): not found. I realized, that your build has /ffp/... paths inside...
I've tried mediatomb-static-0.11.0-r1-linux-uclibc-armv4.tar.gz downloaded from http://mediatomb.cc/pages/download#optware but I had problems. I could reach web configuration, but UPnP didn't response. When I pressed CTRL-C, mediatomb said "killing" and wait... CTRL-C again, and said "can't stop sending killing signal again", etc... so it has freezed...
Last edited by Rival (2008-10-23 15:32:06)
Offline
Rival wrote:
I there any way to download a version that not contains hard coded paths? When I try to run your mediatomb version under fun_plug v0.3 it says sh:(...): not found. I realized, that your build has /ffp/... paths inside...
I've tried mediatomb-static-0.11.0-r1-linux-uclibc-armv4.tar.gz downloaded from http://mediatomb.cc/pages/download#optware but I had problems. I could reach web configuration, but UPnP didn't response. When I pressed CTRL-C, mediatomb said "killing" and wait... CTRL-C again, and said "can't stop sending killing signal again", etc... so it has freezed...
Actually, there are no hard coded ffp paths in the mediatomb configuration. It gets the libraries and transcoding binaries from the default paths set up in ffp 0.5 (/ffp/bin and ffp/lib). The only hard coded paths are to actual mediatomb files within the mediatomb directory and these can be changed in mediatomb.sh and config.xml. I do not have ffp 0.3 installed so I cannot test it. The optware 0.11.0 will not work because it is for an armv4 and has issues with Marvell Orion based hardware. The MediaTomb developer is well aware of this and looking into it.
I have been messing around with creating a static build for the pre-0.12.0 code and hope to have something soon. This will eliminate installing the dependent MediaTomb libraries in /ffp/lib, but the transcoding files will still have to be installed.
The sh not found is probably a PATH issue finding sh, which runs the script. Perhaps fonz can help you there...
Last edited by boilerjt (2008-10-23 19:00:03)
Offline
I have updated MediaTomb to SVN 1903 and compiled it into a static build. Please see Post #1 for the details. Changes include using libmp4v2 to read and import m4a files and libexif to read photo exif metadata.
Offline
Hi,
I've just tried the new static version and it seems to be working fine - good work.
Think I'll give it a shakedown for a couple of days and then look to replace Fonz's version so that I can get it to start automaticllay and get the stop/start/status functionality from his script (or are you planning to move on to this?)
Cheers
RAP
Offline
Thank you for the static version!
Meanwhile I've figured out a way how to use your fun_plug v0.5 copiled versions under fun_plug v0.3:
Install mediatomb described by boilerjt in post #1.
Back up your current fun_plug (v0.3) script:
cd /mnt/HD_a2
mv fun_plug fun_plug.03
Install the new fun_plug v0.5 described on it's homepage.
Install transcoding environment (funpkg -i ...).
Rename back the v0.3 script:
mv fun_plug fun_plug.05
mv fun_plug.03 fun_plug
Add the following lines to the end of v0.3 script:
echo "* Creating /ffp link..." >>${LOGFILE}
ln -snf /mnt/HD_a2/ffp /ffp
And restart...
I can finally use ogg stream transcoding feature of mediatomb under fun_plug v0.3. I love DNS-323... There is happiness... I do some research now about transcoding aac streams...
Offline
rap wrote:
Hi,
I've just tried the new static version and it seems to be working fine - good work.
Think I'll give it a shakedown for a couple of days and then look to replace Fonz's version so that I can get it to start automaticllay and get the stop/start/status functionality from his script (or are you planning to move on to this?)
Cheers
RAP
I haven't tried to start it automatically in the ffp script, but this is good information to have. Please let us know what you find.
Offline
Rival wrote:
Thank you for the static version!
Meanwhile I've figured out a way how to use your fun_plug v0.5 copiled versions under fun_plug v0.3:
Install mediatomb described by boilerjt in post #1.
Back up your current fun_plug (v0.3) script:
cd /mnt/HD_a2
mv fun_plug fun_plug.03
Install the new fun_plug v0.5 described on it's homepage.
Install transcoding environment (funpkg -i ...).
Rename back the v0.3 script:
mv fun_plug fun_plug.05
mv fun_plug.03 fun_plug
Add the following lines to the end of v0.3 script:
echo "* Creating /ffp link..." >>${LOGFILE}
ln -snf /mnt/HD_a2/ffp /ffp
And restart...
I can finally use ogg stream transcoding feature of mediatomb under fun_plug v0.3. I love DNS-323... There is happiness... I do some research now about transcoding aac streams...
Great work figuring this out As far as aac streams, I have had no luck using faad as it seems to expect a local file to play. If you find anything, please let me know.
Offline