minidlna on Raspberry Pi

21 Sep 2013

Prerequisites

Goal

There are some animes on my NAS for my kids. They mainly watch them on TV thanks to the freebox that acts as a DLNA client talking to the Media Server intalled on the NAS. But my NAS is a but overloaded, so I decided to replace its Media Server with a light DLNA server on a raspberry pi.

Install

$ sudo apt-get install minidlna

Configure

$ sudo emacs /etc/minidlna.conf

Set those lines:

  media_dir=V,/mnt/video/dessins_animes
  friendly_name=Dessins animes
  root_container=B
  inotify=yes

Reload database

It seems that inotify does not work with NFS shares, so when I add new animes I have to run:

$ sudo minidlna -R

Restart daemon

$ sudo /etc/init.d/minidlna restart
$ sudo /etc/init.d/minidlna force-reload

Note that minidlna reindex all files at each restart, so you have to wait a bit before trying to access the videos from the freebox.

External References