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

DLNA how-to?

 
Learn about scoring Download Discussion's Raw Score: 149754.0
July 30, 2011 09:44 AM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Hi Kong,

Just installed the latest Kong-mod, and am pretty impressed with the SAMBA performance (copying to and from an ext3 external drive) with Windows 7.

I would like to use the DLNA features, but can't find a good instruction on how to do this.

One last thing, do DLNA servers always just present the available Videos in a "flat" listing, or can they show you folders and their contents?

Any help would be much appreciated.

Cheers, Jon

Discussion:    Add a Comment | Comments 1-5 of 5 | Latest Comment

August 1, 2011 10:07 AM

One last thing, do DLNA servers always just present the available Videos in a "flat" listing, or can they show you folders and their contents?


This is the task of your dlna client, the servers just sends info about the media files and directories to the client it's up to the client how they get represented. Some clients just sort them simple and some build up categories you can use to browse as well as directory trees.

Setting up dlna is pretty simple. Basically you add some external drive which holds the files, then setup Services->USB, choose a mountpoint e.g. /jffs then setup Services->NAS, only thing to note, if you have lots of media files then the DB Path should be set to a location on the external drive otherwise the db consumes to much space in the routers RAM.

August 1, 2011 10:19 AM updated: August 1, 2011 4:44 PM

HI Kong,

Thanks for this - one thing that I got stuck on almost immediately is what needs to go into the Video, Audio and Pictures boxes.

By trial and error I worked out that this should be the full path to the folders containing the media of interest e.g. /mnt/disk0_part1/VIDEO and that the DB path should point to something like /mnt/disk0_part1/dlna - is there anything else I need to set?

I read somewhere that some USB drives will occasionally go to sleep, only to not wake up again when they're needed! Is there something in your build that stops this behaviour? Or do you recommend a particular fix for this?

As far as I'm aware I'm not using CIFS or JFFS, will this be a problem?

I'm really happy with your dd-wrt mod, keep up with the good work!

Cheers, Jon

August 1, 2011 4:12 PM

In my build there is a command line utility that allows to set spin down timing, some use a script to start it, e.g.:

http://infodepot.wikia.com/wiki/DD-WRT_-_Kong_-_sd-idle_management_script

Since I only use a usb pen drive I have never used sd-idle myself, but it should be possible to run the script without a full optware setup, since you can also save a script under: Administration->Commands->Save Custom Script.

CIFS is only needed if you want to mount remote shares with the router, JFFS is useful if you have a ssd to reduce wear of the flash cells, but it is not needed for most things.

August 1, 2011 5:08 PM

Hi,

Thanks for the info. Does sd-idle use hdparm to modify the drive parameters?

The reason I ask is because I found this (potentially easier) fix:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=346305&sid=ec49754e5c99664d25795...

In particular, it recommends adding this line:

for f in /sys/class/scsi_disk/*; do echo 1 > $f/allow_restart; done

to a start-up script, to allow the kernel to wake the hard drive up when needed.

The trouble is, that this seems a bit too good to be true :-)

I have added this line, but I'd like to be able to test whether it's working, as what I don't want is to have the drive on permanently when it's not needed, and instead power up as required.

How would I go about logging into the router to see if the logs show the hard drive being spun up on request?

Best wishes,

Jon

August 2, 2011 5:14 AM

Hi Jon,

the kernel sysfs method works sometimes, depending on the used usb drive. Sd-idle however works with more drives. So if the kernel method is not working you can use sd-idle, hdparm is not needed.

allow_restart will not prevent the drive from spinning down, but tells the kernel, that it should send wakeup commands to the attached drive.

If it doesn't spin down it is rather a result of some process that constantly accesses the drive.

Discussion:    Add a Comment | Back to Top | Comments 1-5 of 5 | Latest Comment

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