This version is for Arm routers: RT-AC56U, RT-AC68U, Rt-AC87U, AC-3200...
Mipsel version here
1 - Setup Debian Wheezy from here (stock minidlna should be disabled from router ui)
2 - Enter chrooted debian with:
3 - Update Debian
apt-get upgrade
4 - Install necessary packages
5 - Download and install minidlna
wget -c -O /var/tmp/minidlna_1.1.4-a875cd-R.L.Horn_armel.deb https://bit.ly/2xWdibe
dpkg -i /var/tmp/minidlna_1.1.4-a875cd-R.L.Horn_armel.deb
6 - Download startup script
chmod 755 /etc/init.d/S98minidlna-debian
7 - Download configuration file
chmod 755 /etc/minidlna.conf
8 - To create startup script we need to exit debian
9 - Add minidlna to chroted services list
echo "S98minidlna-debian" >>/opt/etc/chroot-services.list
chmod 755 /opt/etc/chroot-services.list
10 - Start minidlna from outside debian together with mounted external folder
11 - Go to 192.168.1.1:8200 (this is the default router ip, modify to your router ip if you change it previously) and see how minidlna is creating db, press refresh on your browser for progress.
If all numbers are 0 (zero) after some time, you forget to set the right path to your media folder, read again point 4 from here
This is how it looks like on my Samsung TV with thumbnails and filmstrip enabled
Enjoy...
If for some reason you don't like default penguin minidlna icon, I compiled a special version of minidlna where you can choose any icon as minidlna logo, thanks @R.L.Horn :)
1 - Enter chrooted debian with:
2 - Stop minidlna
3 - Remove old minidlna db
4 - Open minidlna.conf
Paste after the last line
# PNG image to use for an icon, optionally followed by a hex background
# color
icon=/mnt/icons/myicon.png,7f7f7f# Background color (hex rgb triplet) for PNG images converted to jpeg.
# Two colors indicate that a checkerboard background, in those colors,
# should be used.
#bgcolor=666666,999999
Save with CTRL-O, press ENTER and exit nano with CTRL-X
Some explanations, for ex. put an icon on EXT_DIR in icons folder and name it myicon.png, or any other place, ex. inside debian etc folder, now icon path should look like this "icon=/etc/myicon.png,7f7f7f"
6 - Exit debian
7 - Restart services
Now you have custom logo icon, see two different logos in my pics, one is volvo logo and another from my favorite football team: