DLNA servers allow you to stream your media library on your HTPC server to any DLNA enabled client. DLNA enabled clients include Bluray players, XBOX 360, XBOX One, PS3, PS4 and some Smart TVs. ReadyMedia miniDLNA has the lowest memory footprint of the DLNA servers I have tested. I am assuming you have already mounted a USB hard drive for this guide – here is my Properly Mount USB Storage Guide in case you want to make sure it is mounted properly. You will be compiling miniDLNA for Bananian from source, it only takes a few minutes. It works on Bananian Wheezy and Jessie, also works on Igor's images and is part of the Media Server Installer. This has been tested on the LeMaker Banana Pi and Banana Pi Pro.
Pi Unit | ||||||||
---|---|---|---|---|---|---|---|---|
Raspberry Pi 3 | Quad Core | |||||||
Raspberry Pi 2 | Quad Core | |||||||
Raspberry Pi | Single Core | |||||||
Banana Pi | Dual Core | |||||||
Banana Pi Pro | Dual Core |
Install ReadyMedia miniDLNA on Banana Pi
Update your repositories
sudo apt-get update
Install the ReadyMedia miniDLNA dependencies so you can compile it
sudo apt-get install build-essential autopoint debhelper dh-autoreconf gcc libavutil-dev libavcodec-dev libavformat-dev libjpeg-dev libsqlite3-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libflac-dev -y
Download the latest miniDLNA source
wget http://sourceforge.net/projects/minidlna/files/latest/download?source=files -O minidlna.tar.gz
Unpack the miniDLNA source
tar -xvf minidlna*.tar.gz
Enter the miniDLNA directory
cd minidlna*
Configure, make and install miniDLNA, it will take 5 minutes.
./configure && sudo make && make install
Copy the default configuration file
sudo cp minidlna.conf /etc/
Copy the startup daemon script to autostart ReadyMedia miniDLNA on boot
sudo cp linux/minidlna.init.d.script /etc/init.d/minidlna
Make the startup script executable
sudo chmod +x /etc/init.d/minidlna
Update rc to use the miniDLNA defaults
sudo update-rc.d minidlna defaults
Edit the configuration
sudo nano /etc/minidlna.conf
Edit the following to point to your media shown below.
This version of miniDLNA will give you multiple folders under Video. Before movies and TV would have been under separate categories, now movies and TV will both be under the category video. It will also show the folder structure of them instead of showing just the video files. Avi files will also show up and be streamable.
inotify uses resources because it autoupdates your library, if you don't use inotify you will have to manually restart and reload the miniDLNA service
The friendly name is how your miniDLNA server will show up to its streaming clients
media_dir=V,/mnt/usbstorage/Movies
media_dir=V,/mnt/usbstorage/TV
media_dir=A,/mnt/usbstorage/Music
media_dir=P,/mnt/usbstorage/Pictures
# Names the DLNA server
friendly_name=RasPi Media Server
# Tells the DLNA to update the library when there are changes
inotify=yes
Ctrl+X, Y and Enter to save and exit
Start the miniDLNA service
sudo service minidlna start
Now make sure it starts on boot
sudo reboot
Your Banana Pi DLNA server will now be accessible to stream media to your clients: PCs, XBOX, PS3, Phones, TVs and more.