Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
KnightFire wrote:
Well I'm stumped then... I've but 1834 files... it seems to be an issue adding them all at once... but if I don't, I don't get the nice directory structure I want. Only running mediatomb and the standard daemons. Maybe I'm just using MediaTomb incorrectly.
As I can see, memory usage is not depended from number of files, and insignificantly depended from number of directories. It is real to make mediatomb working on the very big file libraries.
KnightFire wrote:
How did you measure memory usage? htop says 2.6% used, but top reports 40% of memory used by mediatomb.
Looks like top show total memory usage, and htop show real memory usage. Some part of memory can be swapped. Read manual for htop for help.
And this FAQ: http://htop.sourceforge.net/index.php?page=faq
KnightFire wrote:
512MB of swap still max'ing out.
Sorry, did not understand it.
KnightFire wrote:
SirMax would you be so kind as to post your config.xml as well, please.
Sorry, I can not for now, because I am on vacation, and left my NAS turned off. I can post it in 2 weeks.
Last edited by sirmax (2010-09-13 18:02:59)
Offline
Hi,
Sorry for my bad english (French... )
All is working perfect with this package except one thing :
I use mediatomb linked with my itunes library and when i import track on the mediatomb db, the tracks of albums containing multiple discs (disc 1, disc 2 etc.) are mixed in the bad order.
I would like to know if Mediatomb can, in the same album, put in first all the songs of the dic one and then all the song of the disc two etc as in Itunes.
Is it a specific tag not understanding by mediatomb ?
Thanks a lot.
Offline
Try to ask at MediaTomb forum. This forum is about DNS-232.
Offline
sirmax wrote:
Try to ask at MediaTomb forum. This forum is about DNS-232.
I'm using mediatomb with my DNS 323. That's why I try one's luck here...
I will try at MediaTomb forum, Thanks.
Offline
Hello together,
I installed mediatomb-0.12.1-3 on my CH3SNAS following the instructions at the first post of this thread. Everything is working fine and as long as the sqlite database is small, I can access with mediatomb web frontend, Kinskydesktop, XBMC on Windows 7 and with the upnp client of my enigma2 sat box. The strange thing is, when the database gets bigger (my one has more than 100MB), I can just access with mediatomb web frontend and Kinskydesktop. Trying to access with XBMC or emigma2 upnp client causes a sqlite I/O error in mediatomb log and afterwards no client can access anymore. After this happens, I cannot stop/kill mediatomb anymore and have to reboot the CH3SNAS.
Any ideas what the reason for this behavior is?
Would it be possible to post a build that has mySQL support so I can try another database?
regards
rom69
Offline
Try it.
https://sites.google.com/site/sirmaxwik … 12.1-3.tgz
MediaTomb UPnP Server version 0.12.1.
Compile info:
host: armv5tejl-unknown-linux-gnu
sqlite3: disabled
mysql: yes
libjs: yes
libmagic: yes
inotify: yes
libexif: yes
id3lib: disabled
taglib: yes
ffmpeg yes
libmp4v2: yes
external transcoding: yes
curl: yes
YouTube: yes
libextractor: disabled
debug log: yes
protocol info extension:yes
ffmpegthumbnailer: yes
lastfmlib: yes
data directory: /ffp/share/mediatomb
Depends: curl, bzip2, mysql
Last edited by sirmax (2011-03-02 17:43:40)
Offline
hi sirmax,
this was really quick. I will try next weekend an post the results. Thank you!
regards
rom69
Offline
I installed mediatomb package with mysql. I have mysql running with no problems and I can use phpmyadmin or dynamic webpages.
But when I tried run mediatomb I got error can't load library 'libmysqlclient_r.so.15'. I checked in my lib folder and there are files !libmysqlclient_r.so.15 and also libmysqlclient_r.so.16. First one is with exclamation before the name
Does it mean that I've got other library than necessary?
Offline
It's because you installed newest version of MySQL. My package linked with MySQL package from FUN-PLUG 0.5 package collection (http://www.inreto.de/dns323/fun-plug/0.5/packages/), and mysql package have version 5.0.67.
You have two options.
First is more corrent, but more complicated - just install mysql from fun-plug.
Second is ugly hack, but easier, and also may work - try to make symlink to new library. Run in shell:
# ln -sf libmysqlclient_r.so.16 /ffp/lib/mysql/libmysqlclient_r.so.15
Last edited by sirmax (2011-03-04 11:04:41)
Offline
sirmax wrote:
It's because you installed newest version of MySQL. My package linked with MySQL package from FUN-PLUG 0.5 package collection (http://www.inreto.de/dns323/fun-plug/0.5/packages/), and mysql package have version 5.0.67.
You have two options.
First is more corrent, but more complicated - just install mysql from fun-plug.
Second is ugly hack, but easier, and also may work - try to make symlink to new library. Run in shell:Code:
# ln -sf libmysqlclient_r.so.16 /ffp/lib/mysql/libmysqlclient_r.so.15
I tried second option but it doesn't work.
Package with MySQL was taken from this forum (as I can't compile myself) in version 5.1.54 from Uli's additional packages. If I understand correctly in first option I would have to switch packages to older one, wouldn't I?
I am not experienced with Linux, but couldn't mediatomb be compiled with newer library. Isn't the simpler way? Hope this is not much hassle with it.
Offline
What error you have trying second option?
I think, no matter what version of MySQL you wil use on DNS-323. So just install 5.0.67, anyway you will not use new features of new version.
Offline
hi sirmax,
once again, thank you!
Now with mysql mediatomb is running stable, also when accessing with XBMC or enigma2 sat box. XBMC seems to do still some strange things when connecting the first time (first screen takes 10 times the time compared with KinskyDesktop) but once connected it works fine and meditomb does not crash anymore.
This information could be interesting for others. Indexing the collection (database > 100 MB, complex import script) takes 50% less time with mysql compared to sqlite, but after the database is built, I don't feel any speed difference when browsing the database.
regards
rom69
Offline
So much time and I still can't run mediatomb. I have to be stubborn if I'm still trying to do it.
I found out that maybe I can't run mediatomb just because inotify doesn't run.
I got result paste below when I tried to check inotify. How can I solve this issue?
root@DNS320 su nobody -c /ffp/share/inotify/inotify-test
inotify_init(): OK
inotify_add_watch(): .failed: /tmp/inotify-test/0 wd=-1 Permission denied
Offline
RobRoy wrote:
root@DNS320 su nobody -c /ffp/share/inotify/inotify-test
inotify_init(): OK
inotify_add_watch(): .failed: /tmp/inotify-test/0 wd=-1 Permission denied
Looks like you have no permissions accessing inotify device.
First of all, check executable flag for startup script /ffp/start/inotify_dev.sh.
If it have no executable flag, set it (chmod a+x /ffp/start/inotify_dev.sh) and reboot.
If this will not help, try to set a+rw permissions for inotify device (chmod a+w /dev/inotify).
Offline
taz030485 wrote:
Today I changed over from boilerjt's mediatomb-0.12.0-SVN2017 to sirmax's to make use of inotify.
However I seem to be having an issue with the auto-update.
I have the root of both drives shared and only files added to the root are added.
This seem to be the behavior described belowsirmax wrote:
After restarting MediaTomb, it rescan all directories, but did not add inotify watches. And Inotify working only in root folder. Strange behaviour, and I can see two reasons:
1. Inotify implementation in DNS323 kernel is different from inotify implementation in current kernel, and cannot catch recurse changes.
2. It is a bug (or feature) in MediaTomb.So was this ever followed up or is there a workaround to watch all directories recursively?
I am running FW 1.07, if it helps.
Hi.
Has someone tried to track this down further? My DNS-323 box is running 1.10b07, but the "no recursive inotify watch after deamon restart" still remains. Let me know if I can support you with environment information or any kind of logs!
Nevertheless, thank you for your work, sirmax!
Offline
Should this compile work with a DNS-313? I updated the package last night but when accessing the MediaTomb web interface I was given an error 'No Tags' and there were no listings in the PC Directory or File System.
Could this be because the DNS-313 has ffp on a different partition to DNS-323?
Thanks in advance for any help with this.
Offline
Installed this last weekend and really pleased/impressed with the support for a large library. However, compared to miniDLNA, we find it takes a long time for the thumbnails to appear on screen (and this is a must for my three year old!). Any suggestions for speeding up thumbnails? thanks -james
Offline
sirmax wrote:
RobRoy wrote:
root@DNS320 su nobody -c /ffp/share/inotify/inotify-test
inotify_init(): OK
inotify_add_watch(): .failed: /tmp/inotify-test/0 wd=-1 Permission deniedLooks like you have no permissions accessing inotify device.
First of all, check executable flag for startup script /ffp/start/inotify_dev.sh.
If it have no executable flag, set it (chmod a+x /ffp/start/inotify_dev.sh) and reboot.
If this will not help, try to set a+rw permissions for inotify device (chmod a+w /dev/inotify).
I am also on a DNS320, and I get the same error as RobRoy with the above command. Furthermore, I get the following as root:
root@dlink-4C13E6:/mnt/HD/HD_a2/ffp/home/root# /ffp/share/inotify/inotify-test inotify_init(): OK inotify_add_watch(): .failed: /tmp/inotify-test/0 wd=-1 Inappropriate ioctl for device
Any ideas?
Last edited by staeit (2011-09-02 05:37:51)
Offline
staeit wrote:
sirmax wrote:
RobRoy wrote:
root@DNS320 su nobody -c /ffp/share/inotify/inotify-test
inotify_init(): OK
inotify_add_watch(): .failed: /tmp/inotify-test/0 wd=-1 Permission deniedLooks like you have no permissions accessing inotify device.
First of all, check executable flag for startup script /ffp/start/inotify_dev.sh.
If it have no executable flag, set it (chmod a+x /ffp/start/inotify_dev.sh) and reboot.
If this will not help, try to set a+rw permissions for inotify device (chmod a+w /dev/inotify).I am also on a DNS320, and I get the same error as RobRoy with the above command. Furthermore, I get the following as root:
Code:
root@dlink-4C13E6:/mnt/HD/HD_a2/ffp/home/root# /ffp/share/inotify/inotify-test inotify_init(): OK inotify_add_watch(): .failed: /tmp/inotify-test/0 wd=-1 Inappropriate ioctl for deviceAny ideas?
You must have something like this:
root@NAS:/# ls -l /ffp/start/inotify_dev.sh /ffp/bin/check-inotify-dev /dev/inotify crw-rw-rw- 1 root root 10, 63 Aug 31 23:06 /dev/inotify -rwxr-xr-x 1 max root 3744 Jan 28 2010 /ffp/bin/check-inotify-dev -rwxr-xr-x 1 max root 382 Sep 7 2010 /ffp/start/inotify_dev.sh
Also check your kernel version:
root@NAS:/# uname -a Linux NAS 2.6.12.6-arm1 #47 Mon Nov 30 12:06:02 CST 2009 armv5tejl unknown
It is possoble, DNS320 have another kernel with another inotify implementation.
Last edited by sirmax (2011-09-02 10:04:44)
Offline
root@dlink:/# ls -l /ffp/start/inotify_dev.sh /ffp/bin/check-inotify-dev /dev/inotify crw-rw-rw- 1 root root 10, 63 Sep 2 02:14 /dev/inotify -rwxr-xr-x 1 506 root 3744 Jan 28 2010 /ffp/bin/check-inotify-dev -rwxr-xr-x 1 506 root 382 Sep 7 2010 /ffp/start/inotify_dev.sh root@dlink:/# uname -a Linux dlink 2.6.22.18 #22 Mon Nov 15 17:49:27 CST 2010 armv5tejl GNU/Linux
Sorry, I'd call myself a Linux novice at best. Is it possible to use inotify with this mediatomb configuration? Kernel is obviously different so any idea how to get this working? Thanks!
Last edited by staeit (2011-09-03 00:00:00)
Offline
staeit wrote:
Code:
root@dlink:/# ls -l /ffp/start/inotify_dev.sh /ffp/bin/check-inotify-dev /dev/inotify crw-rw-rw- 1 root root 10, 63 Sep 2 02:14 /dev/inotify -rwxr-xr-x 1 506 root 3744 Jan 28 2010 /ffp/bin/check-inotify-dev -rwxr-xr-x 1 506 root 382 Sep 7 2010 /ffp/start/inotify_dev.sh root@dlink:/# uname -a Linux dlink 2.6.22.18 #22 Mon Nov 15 17:49:27 CST 2010 armv5tejl GNU/LinuxSorry, I'd call myself a Linux novice at best. Is it possible to use inotify with this mediatomb configuration? Kernel is obviously different so any idea how to get this working? Thanks!
Read this: http://en.wikipedia.org/wiki/Inotify
"It has been included in the mainline Linux kernel from release 2.6.13 (June 18, 2005),[1] and could be compiled into 2.6.12 and possibly earlier releases by use of a patch."
My build was created specially for kernel 2.6.12 with inotify patch, and it will not work on other kernels, because methods how to work with inotify was changed.
Your kernel must have native inotify support, and you must search mediatomb build with native inotify support. Also you do not need to install inotify-dev package, because it is also work only on 2.6.12 kernel.
Last edited by sirmax (2011-09-03 10:27:15)
Offline
Hello together,
I bought an Sony Blueray player and found out, that it cannot connect to mediatomb. is seems that some people developed an patch for this problem:
http://www.2shared.com/file/sbJA_03p/me … ravia.html
I would be very grateful, if one could compile the same package like in post #56 including this patch.
Kind regards
rom69
Offline
rom69 wrote:
Hello together,
I bought an Sony Blueray player and found out, that it cannot connect to mediatomb. is seems that some people developed an patch for this problem:
http://www.2shared.com/file/sbJA_03p/me … ravia.html
I would be very grateful, if one could compile the same package like in post #56 including this patch.
Kind regards
rom69
Done.
MediaTomb with Sony Bravia TV patch (http://www.2shared.com/file/sbJA_03p/me … ravia.html) is available:
https://sites.google.com/site/sirmaxwik … 12.1-3.tgz
Depends: curl, bzip2, sqlite.
Last edited by sirmax (2011-11-07 11:38:34)
Offline
Hi sirmax,
it is incredible how quickly you responded, thank you very much. I'll test next weekend and post the results.
Regards
rom69
Offline
rom69 wrote:
Hi sirmax,
it is incredible how quickly you responded, thank you very much. I'll test next weekend and post the results.
Regards
rom69
Hi sirmax,
I could not wait and started testing tonight. This is compiled for sqlite, but I need mysql. Could you please upload a mysql version? I would really appreciate it.
Regards
rom69
Offline