Saturday, March 25, 2017
A Simple How to use MiniDLNA on OpenWRT
A Simple How to use MiniDLNA on OpenWRT
SSH/Telnet into the Router
The configuration file is located at /etc/config/minidlna
The database file is located at /var/run/minidlna/files.db
An example config file as shown below:
config minidlna config
option port 8200
option interface br-lan
option db_dir /var/run/minidlna
option log_dir /var/log
option inotify 1
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 enabled 1
list media_dir /home/Share/Movies/
option notify_interval 3600
option friendly_name MiniDLNA Server
option serial 13847284
You can change the friendly_name which will be displayed in your network on Windows 7.
Also you can change the media directory.
It should be located on your external harddisk.
The example above shows it is at /home/Share/Movies/
What happens when your files does not show?
First check if the service is started or do the following
/etc/init.d/minidlna enable && /etc/init.d/minidlna start
/etc/init.d/miniupnpd enable && /etc/init.d/miniupnpd start
If it still does not show the files but you can access the collection it means the database has been populated with an empty file.
To rectify the issue delete the database file do:
rm /var/run/minidlna/files.db
Then restart MiniDLNA and it will rescan your Harddisk Drive for Media
/etc/init.d/mindlna restart
The configuration file is located at /etc/config/minidlna
The database file is located at /var/run/minidlna/files.db
An example config file as shown below:
config minidlna config
option port 8200
option interface br-lan
option db_dir /var/run/minidlna
option log_dir /var/log
option inotify 1
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 enabled 1
list media_dir /home/Share/Movies/
option notify_interval 3600
option friendly_name MiniDLNA Server
option serial 13847284
You can change the friendly_name which will be displayed in your network on Windows 7.
Also you can change the media directory.
It should be located on your external harddisk.
The example above shows it is at /home/Share/Movies/
What happens when your files does not show?
First check if the service is started or do the following
/etc/init.d/minidlna enable && /etc/init.d/minidlna start
/etc/init.d/miniupnpd enable && /etc/init.d/miniupnpd start
If it still does not show the files but you can access the collection it means the database has been populated with an empty file.
To rectify the issue delete the database file do:
rm /var/run/minidlna/files.db
Then restart MiniDLNA and it will rescan your Harddisk Drive for Media
/etc/init.d/mindlna restart
Available link for download