OUR NETWORK:TiVo Community TechLore Explore3DTV DVRplayground Dijit Community See all... About UsAdvertiseContact Us

miniDLNA

 
Learn about scoring Download Discussion's Raw Score: 2273530.0
August 1, 2010 03:52 PM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

n3IVI0

Member

How do we configure this? How can we tell it's working? Is there some sort of gui for the program, apart from the DD-WRT interface? Is there any way to know progress on refreshing the database? When you add media to the specified directories, how do you initiate the database refresh, or is it automatic? Is there a specific mountpoint, like /jffs, that must be used, or can we use any mountpoint?

Thanks for integrating a media server into DD-WRT!

Discussion:    Add a Comment | Comments 1-25 of 55 | Latest Comment | 1 2 3 Next »

August 1, 2010 4:03 PM

Any idea how the webmin module might be installed and enabled?

August 2, 2010 2:16 AM

Once you installed the minidlna mod (reads dlna in the firmware name http://www.myopenrouter.com/forum/thread/21251/Update-DD-WRT-Kong-Mod-USB-FTP... you find a new section under Services->NAS
called DLNA Server, just enter the paths to your music,video directorys and you are done. You'll see status messages in /var/log/messages like these:

Jul 29 00:50:00 yyy daemon.warn minidlna[1356]: Scanning /jffs/share/pictures
Jul 29 00:50:02 yyy daemon.warn minidlna[1356]: Scanning /jffs/share/pictures finished (292 files)!

If you copy new files to your media dirs they will be automatically indexed within 60s

August 2, 2010 7:19 AM

I am not seeing these messages in the log. I can see miniDLNA starting and stopping, but it is not scanning the directories I specify. Can these be any path we want, or does it have to be somewhere in /jffs?

August 2, 2010 10:00 AM

Yes you can specify any path. /jffs is the prefered and for example samba will correct permissions for ext3 on /jffs but not on /mnt etc. then the user has to make sure he sets the acl rights, by calling chmod etc.

So I can only suspect two problems, you have specified a dir that doesn't allow minidlna to read from or, you have specified a dir that is not read when minidlna starts up. Can happen if you use an ext3 drive that was not cleanly umounted, in that case the filesystem is mounted after minidlna has been started. If that happens, just reboot or do the following.

Logon via telnet,ssh, run:

killall minidlna
minidlna -R -f /tmp/minidlna.conf

If that still does not work, you can run minidlna in debug mode:

minidlna -d -f /tmp/minidlna.conf

August 2, 2010 11:19 AM

That got it. I had to create a simpler directory structure (/mnt/minidlna) and make sure it was 0777, then ran minidlna -R -f /tmp/minidlna.conf and it was good to go. Thanks again!

August 10, 2010 8:47 AM

Here's another problem. miniDLNA seems to not be detecting new files, or changes to the media directory. In order to get it to do so, I have to run minidlna -R -f /tmp/minidlna.conf manually. Is a cronjob needed to make this happen often so the server will react to changes?

August 11, 2010 4:57 AM

No this should work. I tested it. Once you copied the file to the media dir you have to wait at least 60s until it will be discovered. 60s is the default setting for notify_interval. The latest build I announced today contains a new settings that allows to change the 60s default.

August 14, 2010 5:24 PM updated: August 14, 2010 5:36 PM

Is there anyway I can use my own, custom config?

I would like to change the name from 'DD-WRT' to something else, and save the database on my USB drive.

August 15, 2010 5:44 AM

The webmin module for gui interaction would be cool too. Second on being able to backup the database. Again, thanks for doing this. Nobody has done any kind of work resolving the busted media server issue on K26 until this.

August 15, 2010 5:29 PM

Hi Iyad, right now there is no field for that. If you have an external media attached you could write a script, that restartsith a customized script.
But in the future I can add a few more fields, minidlna does not have too many options, therefore this is an easy task:-)

August 23, 2010 4:28 AM

Hello Kong and everybody,

Above all, great job Kong

Here is a note:

I am under 7.

Installing the firmware: OK
The external drive is fat 32:
- The DLNA server works fine fat 32 (video, image, music).
- Samba is working properly (read / write)

I converted my external drive to NTFS (using the convert command of Microsoft (http://support.microsoft.com/kb/307881) (because it is a possibility of firwmware), and now the DLNA server doesn't work, that is to say impossible to see the contents of directories ... ..

Does someone had the same problem ????

Lamalicefr

August 23, 2010 4:36 PM

Is samba still working with the converted drive?

August 24, 2010 1:52 AM updated: August 24, 2010 1:55 AM

Hello Kong,

Yes Samba works correctly.

If I format the drive directly to NTFS, the result is the same....

Lamalicefr

August 24, 2010 2:26 AM

OK, once I have time for it I'll test minidlna with an ntfs formatted drive, might be an issue with minidlna.

August 24, 2010 3:07 AM

OK Kong,

If i can help you for testing something....

August 25, 2010 3:03 PM

Hello Kong

Also in section miniDLNA:
After automount on external drive FAT32 or NTFS (the behavior is the same), the server miniDLNA does not work, whereas if we start with the netgear 3500L disk that is connected to FAT32 (only) the server works miniDLNA .

@+

Lamalicefr

September 19, 2010 2:17 PM updated: September 19, 2010 2:34 PM

Hi Kong,
Thanks for the good work.
I've got one issue though,
When I start the minidlna it finds all media perfect.
But after a short while it looses al the data and i have to restart minidlna manualy.

September 19, 2010 4:28 PM

Hi Pablo,

minidlna can be started in debug mode:

/usr/sbin/minidlna -d -f /tmp/minidlna.conf

You could try to login through ssh and run minidlna in debug mode to see what happens and eventually find out why it stops working.

September 30, 2010 8:57 AM updated: September 30, 2010 9:24 AM

Ok So I am new to this open source router bit, but I am starting to get the feel of it. This is the setup I am going for so anyone please tell me if I going down the wrong path

1. I have 2 WNR3500L's, One which is the Primary running upstairs in the office and one which is running as a Repeater Bridge downstairs next to the TV.

2. I decided that I will reformat my 2TB Hard drive to ext3 and connect it to the Repeater Bridge. I will enable SAMBA and miniDLNA here. My Media extender will be connected to this router so I figured I will connect my media drive here. I stream HD movies >2gb so I figured I should just do the better performing ext3 over NTFS, since I had to reformat it from exFAT anyway.

3. I have another 500 GB drive that I will use for all my data that I will reformat to ext3 and connect it to the Primary Router in the office with SAMBA enabled.

So thats my setup, so here are my questions

1. Will I get better performance using WDS instead of Repeater Bridge?

2. Can I connect an USB drive to the repeater similar to the primary router without any crazy problems or do I need to do a little extra to make that work?

3. What is the best way to partition the drive with this release? I read somewhere I should do 4 partitions for optware (ext3), swapfile (linux-swap), data (ext3), and jffs (ext3).

4. With SAMBA enabled will I be able to transfer media files directly to my miniDLNA media shares through windows networking? and Will this have any effect on the miniDLNA?

5. n3IVI0 asked a question about renaming the miniDLNA to a different name other than DD-WRT, is there a way to do this?

6. Any other recommendations would be much appreciated.

Ok thats it I hope it is not too much, I'm kind of a newb to this, I worked a little in Linux before but it has been a while. Between here, the dd-wrt forums and everywhere else I have found tons of info, but I just want to make sure I do this right.

October 5, 2010 3:33 PM

Can miniDLNA recurse directories or do all the media files have to be dumped into the root/share path? I ask because for testing purposes I initially just threw a few mp3's together and everything worked fine. More recently though, I have been having problems but I'm guessing it's because I finally got around to importing my real music library, which is in a typical iTunes directory tree:

Music Share Folder -> Artist Name Folder -> Album Name Folder -> Media Files

If I really do have to dump everything into a single root folder, is there a limit to the number of files in a single directory (Ext3 file system)?

Thx!

October 5, 2010 5:03 PM

jnmoore said: Can miniDLNA recurse directories or do all the media files have to be dumped into the root/share path? I ask because for testing purposes I initially just threw a few mp3's together and everything worked fine. More recently though, I have been having problems but I'm guessing it's because I finally got around to importing my real music library, which is in a typical iTunes directory tree: Music Share Folder -> Artist Name Folder -> Album Name Folder -> Media Files If I really do have to dump everything into a single root folder, is there a limit to the number of files in a single directory (Ext3 file system)? Thx!

Yes it will recurse directories. There is no real limit of files you can have this depends rather on the size of your partition and this can even be tuned when you create the fs. I don't think you will hit any limits here. The limit that will be first hit is the limit of ram that will be consumed by minidlnas indexing db.

October 10, 2010 9:13 PM

Hey kong I can't get minidlna to refresh new video files. I have to reboot the router for it to show new files.

Thnx

October 11, 2010 4:29 PM

In that case there are only two explanations, either the router is out of memory by the time you copy the files. Or inotify is broken. Last time I tested it worked.

Two things to test, enter a db path(e.g. /jffs/minidlnadb) in minidlnas web interface. Don't set the path to any existing path, as this could erase the content in there in case you manually start minidlna with -R flag.

And you can try again by copying some files then wait for about 5 min if they still don't show up let me know.

October 11, 2010 5:54 PM

Hey kong this worked!! thank you!! I was about to give up on this.

Now I have 2 questions.. by putting a db path (e.g. /jffs/minidlnadb) I now have a folder in my directory named "minidlnadb" is this normal and can it be deleted?

Can I delete the paths from pictures, videos and music and just leave the db path?

Also I noticed when I transfer a new file it gets refreshed right away there's no waiting the 120s which is great.

October 13, 2010 4:48 AM

johnny said: Hey kong this worked!! thank you!! I was about to give up on this. Now I have 2 questions.. by putting a db path (e.g. /jffs/minidlnadb) I now have a folder in my directory named "minidlnadb" is this normal and can it be deleted? Can I delete the paths from pictures, videos and music and just leave the db path? Also I noticed when I transfer a new file it gets refreshed right away there's no waiting the 120s which is great.

Once you set the path, minidlna stores it's index db inside /jffs/minidlnadb you can always delete it, since it will be recreated once minidlna is stopped/started or the router is rebooted. But that costs cpu time, especially if the media directorys hold lots of files.

No the video/picture .. paths are needed and tell minidlna where to look for current and where to watch for new files.

The 120s is the time interval minidlna refreshes. In easy terms, minidlna opens up a drawer every 120s. Now if someone threw in some socks 5s before minidlna opens it up again they will show up 5s after. In the worst case it will be after 120s or in case lots of files were added 120s + the time it needs to index the files.

Discussion:    Add a Comment | Back to Top | Comments 1-25 of 55 | Latest Comment | 1 2 3 Next »

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window