Minidlna is a dlna server with a small footprint, originally designed to run on consumer NAS devices. Installation is fairly simple.
For this setup we will use GlusterFS as the file store backend.
Start by installing minidla
apt-get install minidlna
Configure your system as a GlusterFS client, so you have the following in your fstab.
/etc/glusterfs/video.vol /srv/video glusterfs defaults,_netdev,rw 0 0
Configuration is in /etc/minidlna.conf. Configure a directory to export.
Start at the root diretory instead of providing the choice between All movies, Folders and Recently added
Set the network interface to export on
The default setting is to you the hostname as the name of the dlna server. This can be change the the friendly_name option.
When minidlna starts, you will get the following in your log
monitor.c:218: warn: WARNING: Inotify max_user_watches  is low or close to the number of used watches  and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
If you want to increase this value to accomodate minidlnas request, pick something above 100000, and add it to /etc/sysctl.conf.
fs.inotify.max_user_watches = "131072"