DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-16 01:28:01

bubbleman
New member
Registered: 2010-02-03
Posts: 3

Mediatomb + srt

Hi,
I have trying configure .srt with mediatomb, because in WMP11 not show correctly, but I must be doing something wrong. Someone could help me.

Thanks.

Offline

 

#2 2010-02-16 11:20:46

Rawnar
Member
From: Den Haag
Registered: 2009-12-20
Posts: 26

Re: Mediatomb + srt

First try to explain what your are doing to try to get it working. This way people will better understand the situation and are more likely to give you an answer.

Offline

 

#3 2010-02-16 12:05:53

bubbleman
New member
Registered: 2010-02-03
Posts: 3

Re: Mediatomb + srt

Ok,

I have one folder with the files  .Avi and .Srt. What I want it's to setup to send both files from the Mediatomb. I have read in several forums and I tried several changes in the config.xml but can not get any result.

It´s my config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w
  <server>
    <ui enabled="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <port>8000</port>
    <name>MediaTomb</name>
    <udn>uuid:2f9da37a-bf52-4d09-baa9-046970ca5308</udn>
    <home>/ffp/var/mediatomb</home>
    <webroot>/ffp/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
    </storage>
    <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
    <!--
       Uncomment the lines below to get rid of jerky avi playback on the
       DSM320 or to enable subtitles support on the DSM units
    -->

    <custom-http-headers>
      <add header="X-User-Agent: redsonic"/>
    </custom-http-headers>

    <manufacturerURL>redsonic.com</manufacturerURL>
    <modelNumber>105</modelNumber>

    <!-- Uncomment the line below if you have a Telegent TG100 -->
    <!--
       <upnp-string-limit>101</upnp-string-limit>
    -->
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      <virtual-layout type="builtin"/>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <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"/>
        <!-- Uncomment the line below for PS3 divx support -->
        <!-- <map from="avi" to="video/divx"/> -->
        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
        <!-- <map from="avi" to="video/avi"/> -->
        <map from="srt" to="video/subtitle"/>

      </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="audio/L16" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
      </mimetype-contenttype>
    </mappings>
  </import>



Thanks.

Offline

 

#4 2010-02-17 15:14:34

Rawnar
Member
From: Den Haag
Registered: 2009-12-20
Posts: 26

Re: Mediatomb + srt

It could be a character set problem. The DNS-313 does not have his locale set, so mediatomb will default to ISO-8859-1. Change the following part of config.xml

Code:

<import hidden-files="no">
    <scripting script-charset="UTF-8">

Add two lines to set the correct charset

Code:

<import hidden-files="no">
    <filesystem-charset>UTF-8</filesystem-charset>
    <metadata-charset>UTF-8</metadata-charset>
    <scripting script-charset="UTF-8">

I'm not sure if this will help.

I had a problem with directories which had special characters in their name not being imported by mediatomb. For me setting the character set to UTF-8 solved this problem.

Offline

 

#5 2010-02-18 00:16:25

bubbleman
New member
Registered: 2010-02-03
Posts: 3

Re: Mediatomb + srt

Thanks for the info, I have try, but dosen't show. I have using a Titan Coneptronic to view the films, I dont know if that can be a problem. But the Titan show .srt from local disk and a usb directlink, but not from Upnp. I can see the file in the mediantomb explorer.

Any suggestions.

Thanks.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB