DLNA

DLNA - Digital Living Network Alliance - more on what it is

DLNA servers allow you to stream your media library to any DLNA enabled client - PC, phone, tablet or Hi-Fi Network Player/streamer. The Banana Pi/Pro (BP) makes an ideal server since it, atypically, has a SATA port (for hard drive) and Gigabit ethernet, all ideal for streaming HD FLAC (lossless, high quaility music) files and HD video.
Below is how I've programmed my Banana Pro to be DLNA complient (within Armbian OS).

This will install the latest ReadyMedia miniDLNA on your Banana Pro.


Log into your Banana Pro using Linux Terminal, Mac Terminal or Windows PuTTY

  • Update your version of Armbian (I'm using the desktop Ubuntu variant)..
       $ sudo apt-get update
       $ sudo apt-get upgrade
  • Remove any old miniDLNA version....
       $ sudo apt-get purge minidlna -y
       $ sudo apt-get remove minidlna
       $ sudo apt-get autoremove -y
  •    $ sudo apt-get install minidlna
  • Edit the configuration
       $ sudo nano /etc/minidlna.conf

  • 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

    ADD THESE FOLLOWING LINES and leave the old ones #ed out
    media_dir=A,/home/yourname/dlna/music
    media_dir=A,/home/yourname/dlna/classical
    media_dir=V,/home/yourname/dlna/movies
    media_dir=P,/home/yourname/dlna/pictures
    media_dir=PV,/home/yournamey/dlna/digital_camera
    # Names the DLNA server
    friendly_name=YourServerName
    # Tells the DLNA to update the library when there are changes
    inotify=yes

    Save and exit

  • Start the minidlna service....
       $ sudo service minidlna restart