Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Yes exactly, you don't have inotify in your system, i know you can add but i never tried
If you want to try without, put this in minidlna.conf
# note: the default is yes
inotify=no
Offline
Thanks for the reply stealth. I would really like to have the inotify feature working since a db rebuilt on my box takes at least 1/2 hr to complete and I have to have to do this when I add/remove a few files. Can you point me in the right direction please? I have read the couple of threads on this topic but am still alittle lost.
I have a DNS-323 on fw1.08 and I do have the file /dev/inotify in my system. I also noted that there are files called inotify_itune, inotify_upnp and inotifybt in /usr/bin so I'm going to take a wild guess that I do have inotify on my box and it is working for the stock dlink apps. So is the issue with the minidlna binaries? Do I have to rebuild it using a modified inotify.h file as described in this post (http://dns323.kood.org/forum/viewtopic. … 775#p34775)?
Offline
Please try with minidlan-01-05-2011-cvs20110501-2.tgz
Or try ushare is much faster than minidlan - speed is a Big problem on large HDD -
Last edited by stealth (2011-05-02 10:50:15)
Offline
stealth wrote:
Please try with minidlan-01-05-2011-cvs20110501-2.tgz
thanks for the quick turnaround but it still isnt' working for me. I'm getting the following errors:
[2011/05/02 17:44:07] inotify.c:652: error: inotify_init() failed!
[2011/05/02 17:44:09] inotify.c:189: warn: WARNING: Could not read inotify max_user_watches! Hopefully it is enough to cover 937 current directories plus any new ones added.
[2011/05/02 17:44:09] inotify.c:89: error: inotify_add_watch(/mnt/HD_a2/Music) [Function not implemented]
Offline
stealth wrote:
Try
echo 16384 > /proc/sys/fs/inotify/max_user_watches
my system doesn't have /inotify in /proc/sys/fs/. I'm trying to pin down if this is a problem with inotify in the kernel or is this a problem with the minidlna build. I downloaded the inotify-dev-0.1-1.tgz app from http://sites.google.com/site/sirmaxwiki/ and within in, in the folder /ffp/share, there is a inotify test app which ran fine on my box. (I've attached the app here if you want to try running on your box) Hence I'm going to have to assume that the problem lies with the minidlna build.
Offline
I'm not a c expert
But in line
648 pollfds[0].fd = inotify_init();
649 pollfds[0].events = POLLIN;
650
651 if ( pollfds[0].fd < 0 )
652 DPRINTF(E_ERROR, L_INOTIFY, "inotify_init() failed!\n");
minidlna simply initialize inotify
My opinion is that minidlan want a standard inotify implementation (with /proc/sys/fs/inotify/max_user_watches and maybe others files) maybe you should contact sirmax for this ?
Offline
apparently the thread starter (i.e. fboulange) has built a version that has a working inotify (see http://dns323.kood.org/forum/viewtopic. … 562#p38562). Unfortunately, it is an older version and although it runs on my box, it doesn't seem to be doing anything and I am alittle embarrased to say that I can't find the log file! (I had to remove log_dir from conf for it to run and I can't the log in /var/log or /ffp/var/log or /tmp or /ffp/tmp!) I think I will drop him a PM to find out more.
Offline
Hi,
today (or better said tonight) I installed MiniDLNA after mediatomb did not work with Samsung in my case.
Everything worked and I was able to see a testvid, but every time I start Minidlna the db seems to be rebuild and I am not able to find it on my DNS-323. The log says no database found, create new. What could be the problem?
SG1
Offline
I build minidlna myself (from the CVS trunk) and inotify is working for me.
I use a modified sys/inotify.h as well as a modified start script.
You might run into problems if you have very large music collections with lots and lots of (sub-)folders. Then max_user_watches might not be enough on the NAS.
Offline
KyleK,
Will it be possible for you to share the binaries that you have built?
Offline
@bfg100k Sorry i forgot this thread
I resolved my problem with inotify, i 'il publish the fun_plug tonight (you must install inotify-dev-0.1-1.tgz from http://sites.google.com/site/sirmaxwiki/)
@KyleK You know the limitation ? The /proc/sys/fs/inotify/max_user_watches is not accessible but maybe the limit is high. Anyway no problem for me with 500 GB of various data
Offline
I just did a test. After scanning my music collection, minidlna wants to add 1931 watches, but fails after about 1012 with error message "Too many open files".
The cause of this might be that either /proc/sys/fs/file-max or the 'ulimit -n' values are too low. (i suspect the latter, which is set to 1024).
Unfortunately, I can't change the value to something else ('Operation not permitted').
Offline
I tried with a lot of files (without ulimit -n command)
finished (3953 files)!
No error but just a warning
warn: WARNING: Could not read inotify max_user_watches! Hopefully it is enough to cover 218 current directories plus any new ones added
Last edited by stealth (2011-06-01 19:08:47)
Offline
It's not the number of files that is relevant, but the number of folders in your media library. (Internally, Linux doesn't differentiate between files and folders, everything is just a 'node').
minidlna adds a 'watch' to every subfolder of your library, so if you have a very hierarchical folder system (e.g. Music/artist name/album title), then it will reach the (artificial) limit of 1024 very fast.
In your case, it apparently isn't necessary to raise the limit, since you only have 218 folders in your library.
Offline
Kylek, Could you post the changes you did for inotify functionality... the links above don't seem to work. (Or is it this: http://dns323.kood.org/forum/viewtopic.php?id=6628 post? cheers -j
Offline
All I did was first replace the file /ffp/include/sys/inotify.h with the one I linked to above. Then minidlna detects that inotify is available on the system and activates it.
The next step was to add the following line to /mnt/HD_a2/.bootstrap/setup.sh:
ulimit -n 65535
(If you don't use that file, you can put it at the end of the initial fun_plug script as well).
Now minidlna has no trouble with my 1112 or so folders.
Offline
KyleK wrote:
All I did was first replace the file /ffp/include/sys/inotify.h with the one I linked to above.
The link above is dead, any chance you could post it again? cheers -j
Offline
Hello together,
I installed minidlna following all the recommendations in this thread. When I want to start it I get the error messages, that the following files are missing:
libavutil.so.50
libavcodec.so.52
When I do a symbolic link to the installed versions of this files, minidlna starts but does not import files.
Any idea, where I can find the mentioned files? Or can one proof, that the symbolic link thing works? Or any other hint how to proceed?
regards
rom69
Offline
I have almost everything working
Does anyone know if there is a way to have the internal (in MKV for example) subtitles working ?
Offline
jeffjoker wrote:
I have almost everything working
Does anyone know if there is a way to have the internal (in MKV for example) subtitles working ?
Nope this won't work with MKV's internal subtitles.
So far grab a SRT subtitles file from the web and put it in the same folder as your video with the exact same name (except the extension of course !).
Fr3d
Offline
fboulange wrote:
jeffjoker wrote:
I have almost everything working
Does anyone know if there is a way to have the internal (in MKV for example) subtitles working ?Nope this won't work with MKV's internal subtitles.
So far grab a SRT subtitles file from the web and put it in the same folder as your video with the exact same name (except the extension of course !).
Fr3d
That must be a Samsung issue though, because my Philips Bluray player recognized internal subtitles just fine (in fact, it only works with internal subs).
Offline
KyleK wrote:
That must be a Samsung issue though, because my Philips Bluray player recognized internal subtitles just fine (in fact, it only works with internal subs).
Indeed it's a Samsung specification... such as this forum's discussion ==> "[HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features"
Fr3d
Offline