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

#51 2011-05-01 17:19:21

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#52 2011-05-01 18:30:41

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#53 2011-05-01 20:33:51

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#54 2011-05-02 10:48:29

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#55 2011-05-02 11:31:14

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

Try
echo 16384 > /proc/sys/fs/inotify/max_user_watches

Offline

 

#56 2011-05-02 12:58:56

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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.  sad


Attachments:
Attachment Icon inotify-test, Size: 8,934 bytes, Downloads: 625

Offline

 

#57 2011-05-02 14:08:21

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#58 2011-05-02 16:45:28

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#59 2011-05-17 00:55:27

Stargrove1
Member
Registered: 2010-08-11
Posts: 16

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#60 2011-06-01 10:14:48

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#61 2011-06-01 10:20:35

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

KyleK,

Will it be possible for you to share the binaries that you have built?

Offline

 

#62 2011-06-01 11:03:23

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

@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

 

#63 2011-06-01 14:12:03

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#64 2011-06-01 18:27:51

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

Ok it's online

For ulimit, can you try with ulimit -n 4096 ? If ok i can modify the start script for add ulimit command in my package

Offline

 

#65 2011-06-01 19:07:36

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#66 2011-06-06 11:40:19

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#67 2011-06-06 12:32:46

stealth
Member
Registered: 2011-01-05
Posts: 30
Website

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

OK, thanks for the explanation

And with ulimit -n 4096 ?

Offline

 

#68 2011-07-05 19:02:25

jmcqup
Member
From: Uganda
Registered: 2008-06-17
Posts: 23

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#69 2011-07-06 09:54:06

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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:

Code:

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

 

#70 2011-07-17 08:58:10

jmcqup
Member
From: Uganda
Registered: 2008-06-17
Posts: 23

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#71 2011-11-13 01:32:29

rom69
Member
Registered: 2009-05-18
Posts: 13

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#72 2011-11-26 12:53:01

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

I have almost everything working
Does anyone know if there is a way to have the internal (in MKV for example) subtitles working ?

Offline

 

#73 2011-12-04 22:58:07

fboulange
Member
Registered: 2010-10-06
Posts: 29

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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


DNS-323 1.9 ~ miniDLNA Samsung patched ~Transmission 2.10

Offline

 

#74 2011-12-06 14:00:40

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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

 

#75 2011-12-06 22:06:55

fboulange
Member
Registered: 2010-10-06
Posts: 29

Re: [HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features

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 smile ==> "[HELP] Building miniDLNA for SAMSUNG TV with PC Share Manager features"
Fr3d


DNS-323 1.9 ~ miniDLNA Samsung patched ~Transmission 2.10

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB