Project Fileserver: DLNA via Mediatomb

Mon, Jul 19, 2010 One-minute read

To watch my videos via DLNA on my Samsung TV, I needed an alternative program, because the Samsung software does not support Linux operating systems.

I chose to install Mediatomb. To make it work with Samsung TVs, there were a few additional config tweaks necessary.

The config.xml files in /etc/mediatomb/ and in /root/.mediatomb/ have to be identically, else it Mediatomb won’t start.

First of all you have to uncomment the <custom-http-headers> section.

The next step is to add the following lines to this section:

<add header="transferMode.dlna.org: Streaming"/>
<add header="contentFeatures.dlna.org:  DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000   00000000000000000000000000"/>

At last  you have to change

<protocolInfo extend="no"/> to <protocolInfo extend="yes"/>

Now you can (re)start Mediatomb and it should be identified by the TV.

To add the video folders you normally have to go to the web ui http://serverip:49152/.

In my case, Mediatomb could not scan the Truecrypt devices. To solve this problem I used the following command:

mediatomb --add /media/truecrypt3/

That’s it.

By the way, Mediatomb is much better than the Samsung PC Share Manager.