Mediatomb configuration for Samsung D5000PW

Mediatomb is a UPnP media server. It allows you to play video\music files on your TV from other devices at the same network. This post will show some configuration changes you may want to try if you have a Samsung TV. This configuration has been tested on Samsung D5000PW.
If you want to see more detailed explanation of configuration options feel free to check the documentation of this software.

Good thing to change first is a web interface login\password and port:

    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="yes" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
. . .

This way web interface will be reachable at http://localhost:49186.

Custom headers will help you to get rid of error "unsupported file format" and allow to pause\ backward\forward video. Only left\right arrow buttons will be functioning as a backward\forward.

    <add header=" Streaming" />
    <add header=" DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" />
<protocolInfo extend="yes"/>

Video thumbnails:
<ffmpegthumbnailer enabled="yes">

mkv and avi work without transcoding but you should make some changes:
<extension-mimetype ignore-unknown="no">
  <map from="avi" to="video/mpeg"/>
  <map from="mkv" to="video/mpeg"/>
. . .
. . .


        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
         . . .
        <treat mimetype="application/x-iso9660" as="dvd"/>
        <treat mimetype="application/x-iso9660-image" as="dvd"/>
        <treat mimetype="video/x-matroska" as="mkv"/>
        <treat mimetype="audio/x-matroska" as="mka"/>

You may also try: 
<map from="avi" to="video/x-msvideo"/>

If you have a mysql server running I recommend you to use it instead of default database. 
If you want to use a real-time transcoding for other formats you need to have a really powerful PC. Also if you didn't build the latest version of Mediatomb but installed it from repository, most likely you won't have a YouTube support.