Mediatomb config for Philips 32PFL3807k/02

I could not find a good config online, so I experimented a bit.

This config transcodes as little as possible, play, pause, forward, rewind works for Media not transcoded.

Using the latest git version of Mediatomb pause is possible in transcoded streams:

git://mediatomb.git.sourceforge.net/gitroot/mediatomb/mediatomb
commit 27da70598ba9b1d9c4431f3b03bc5e460480abb2
Date: Tue Dec 24 21:07:23 2013 +0100
Add support for play/pause/chapters in transcoded streams


<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
  <server>
    <interface>alc0</interface>
    <port>50000</port>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MediaTomb</name>
    <udn>uuid:9bf4f28f-0f37-4ccc-bacb-f6cdf8eadd5a</udn>
    <home>/var/mediatomb</home>
    <webroot>/usr/local/share/mediatomb/web</webroot>
    <storage caching="yes">
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
      <mysql enabled="no">
        <host>localhost</host>
        <username>mediatomb</username>
        <database>mediatomb</database>
      </mysql>
    </storage>
    <protocolInfo extend="yes"/>
    <extended-runtime-options>
      <ffmpegthumbnailer enabled="yes">
      <thumbnail-size>128</thumbnail-size>
        <seek-percentage>5</seek-percentage>
        <filmstrip-overlay>yes</filmstrip-overlay>
        <workaround-bugs>no</workaround-bugs>
        <image-quality>8</image-quality>
      </ffmpegthumbnailer>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
        <mark>
          <content>video</content>
        </mark>
      </mark-played-items>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      <common-script>/usr/local/share/mediatomb/js/common.js</common-script>
      <playlist-script>/usr/local/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/usr/local/share/mediatomb/js/import.js</import-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="mpg" to="video/mpeg"/>
        <map from="mpeg" to="video/mpeg"/>
        <map from="vob" to="video/mpeg"/>
        <map from="vro" to="video/mpeg"/>
        <map from="m2ts" to="video/avc"/>
        <map from="mts" to="video/avc"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="flv" to="video/x-flv"/>
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
      </mimetype-contenttype>
    </mappings>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="video/divx" using="multifunctional"/>
      <transcode mimetype="video/x-msvideo" using="multifunctional"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="multifunctional" enabled="yes" type="external">
        <mimetype>video/mpeg</mimetype>
        <first-resource>yes</first-resource>
        <hide-original-resource>yes</hide-original-resource>
        <avi-fourcc-list mode="process">
          <fourcc>DX50</fourcc>
        </avi-fourcc-list>
        <agent command="/usr/local/bin/mediatomb-multifunctional.sh" arguments="%in %out"/>
        <buffer size="102400" chunk-size="51200" fill-size="20480"/>
      </profile>
    </profiles>
  </transcoding>
<custom-http-headers>
      <add header="transferMode.dlna.org: Streaming"/>
      <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=025000 00000000000000000000000000"/>
</custom-http-headers>
</config>

I use mediatomb-multifunctional.sh from https://vanalboom.org/node/16.

Leave a Reply

Your email address will not be published. Required fields are marked *