Thursday, November 22, 2012

OpenWRT - miniDLNA Server

Install folowing packages
# opkg install minidlna
# opkg install luci-app-minidlna
Edit /etc/config/minidlna
# vi /etc/config/minidlna
config minidlna 'config'
        option port '8200'
        option inotify '1'
        option notify_interval '900'
        option serial '12345678'
        option model_number '1'
        option root_container '.'
        option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg'
        option interface 'eth0,wlan0'
        option friendly_name 'My DLNA Server'
        list media_dir 'media_dir=A,/home/dlna/audio'
        list media_dir 'media_dir=P,/home/dlna/picture'
        list media_dir 'media_dir=V,/home/dlna/video'
        option db_dir '/home/minidlna/db/'
        option log_dir '/home/minidlna/log/'
        option enabled '1'
Make sure miniDLNA run everytime router booting
 # /etc/init.d/minidlna enable
Start miniDLNA using this command
# /etc/init.d/minidlna start
Use this command to force scan your DLNA server
# /usr/bin/minidlna -f /tmp/minidlna.conf  -d -R
To stop miniDLNA using this command
# /etc/init.d/minidlna stop
Now Open windows Media Player and browse to your DLNA server.




My miniDLNA Setting




1 comment:

Anonymous said...

I know this is old but thanks for the post especially the part to force minidlna to scan for files. Cheers from openwrt fan :)