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

#151 2009-03-10 00:59:53

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

ahughes wrote:

boilerjt wrote:

Yes, the playlist.js script handles the playlist importing.  Just make sure that <virtual-layout type="js"> in config.xml so that it uses the *.js files and not the default builtin import code.

Is there a way to block importation of playlists? If I take out or remove reference to playlist.js I get an error.

This might work without editing the playlist.js script...

Comment out there two lines in config.xml as follows:

<!--<treat mimetype="audio/x-mpegurl" as="playlist"/>
<treat mimetype="audio/x-scpls" as="playlist"/> -->

It appears these lines tell MediaTomb to execute the playlist script for m3u and pls when they are imported.  In my brief testing, it seems the script is not executed when these two lines are commented out.

Offline

 

#152 2009-03-10 01:44:14

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

Thanks for the tip, but I tried this already and it doesn't feed it.. appears to hangup trying to transcode or interpret the format..  Here is the appropriate section from my config.xml that i edited which reflects what you suggested.

      <!-- 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="mkv" to="video/x-matroska"/>
      </extension-mimetype>


Thanks,, but any other suggestions?

Offline

 

#153 2009-03-10 02:07:13

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

This might work without editing the playlist.js script...

Comment out there two lines in config.xml as follows:

<!--<treat mimetype="audio/x-mpegurl" as="playlist"/>
<treat mimetype="audio/x-scpls" as="playlist"/> -->

It appears these lines tell MediaTomb to execute the playlist script for m3u and pls when they are imported.  In my brief testing, it seems the script is not executed when these two lines are commented out.

Great idea, I'll try that tonight! Thanks.

Offline

 

#154 2009-03-10 03:51:28

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

slyder wrote:

Thanks for the tip, but I tried this already and it doesn't feed it.. appears to hangup trying to transcode or interpret the format..  Here is the appropriate section from my config.xml that i edited which reflects what you suggested.

      <!-- 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="mkv" to="video/x-matroska"/>
      </extension-mimetype>


Thanks,, but any other suggestions?

Did you restart MediaTomb and re-import the mkv?
When looking at the WebUI, click the edit icon from the imported mkv and confirm the mimetype is video/x-matroska.

If these are true, could you post your entire config.xml and I'll look at it?

Last edited by boilerjt (2009-03-10 03:57:20)

Offline

 

#155 2009-03-11 13:41:28

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

When looking at the WebUI, click the edit icon from the imported mkv and confirm the mimetype is video/x-matroska.

If these are true, could you post your entire config.xml and I'll look at it?

As suggested, through the WebUI, the MKV is reported as video/x-matroska... Unit just chugs along but no error on 750's, just no video or audio.  Same files play fine with twonky direct feeding or from USB Stick.. Here is entire config.xml.  Thanks for the assistance...

-------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
  <server>
    <ui enabled="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MediaTomb</name>
    <udn>uuid:d904c946-5cfc-46e9-bbce-02afa51608fb</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="no"/><!-- For PS3 support change to "yes" -->
   
    <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="mkv" to="video/x-matroska"/>
      </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>
</config>

Offline

 

#156 2009-03-11 23:07:09

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

slyder wrote:

boilerjt wrote:

When looking at the WebUI, click the edit icon from the imported mkv and confirm the mimetype is video/x-matroska.

If these are true, could you post your entire config.xml and I'll look at it?

As suggested, through the WebUI, the MKV is reported as video/x-matroska... Unit just chugs along but no error on 750's, just no video or audio.  Same files play fine with twonky direct feeding or from USB Stick.. Here is entire config.xml.  Thanks for the assistance...

-------------------------------------------------------------------------------------------------------------------------
<config.xml snipped>

This does not look like the config.xml that is generated for the SVN 2017 build I have provided.  If you are using this build, please kill the MediaTomb process, delete this config.xml, and restart MediaTomb.  A fresh config.xml will be generated and all you should need to do is add the <map from="mkv" to="video/x-matroska"/> line and possible uncomment the line for the D-Link DSM.  You'll also see a transcoding section, but as long as it says <transcoding enabled="no">, no transcoding of any kind will take place.  Also, be sure not to mix files between different versions of MediaTomb.  This does tend to break things.

Offline

 

#157 2009-03-12 04:31:12

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

This does not look like the config.xml that is generated for the SVN 2017 build I have provided.  If you are using this build, please kill the MediaTomb process, delete this config.xml, and restart MediaTomb.  A fresh config.xml will be generated and all you should need to do is add the <map from="mkv" to="video/x-matroska"/> line and possible uncomment the line for the D-Link DSM.  You'll also see a transcoding section, but as long as it says <transcoding enabled="no">, no transcoding of any kind will take place.  Also, be sure not to mix files between different versions of MediaTomb.  This does tend to break things.

I was using the default mediatomb that comes with funplug.. installed your SVN2017, modified the config again , reboot the NAS, startup mediatomb 12 and called up an mkv file...

results are:
Class: object.item
Mimetype: application/octet-stream

Here is the config.xml file

Thanks so much for your time...
How would I get this autostart instead of the default Fun_plug version??.. should I over write the default mediatomb dirs?

Thanks again



******************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MediaTomb</name>
    <udn>uuid:f7c75bde-b80f-4411-a386-9defd1228660</udn>
    <home>/mnt/HD_a2/mediatomb12/config</home>
    <webroot>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
    </storage>
    <protocolInfo extend="no"/><!-- 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>
    -->
    <extended-runtime-options>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
      </mark-played-items>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <magic-file>usr/share/file/magic</magic-file>
    <scripting script-charset="UTF-8">
      <common-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/common.js</common-script>
      <playlist-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import.js</import-script>
        <dvd-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import-dvd.js</dvd-script>
      </virtual-layout>
    </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="mkv" to="video/x-matroska"/>
      </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"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="application/x-iso9660" as="dvd"/>
        <treat mimetype="application/x-iso9660-image" as="dvd"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <!-- Make sure to setup a transcoding profile for flv -->
      <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
        <favorites user="mediatomb"/>
        <standardfeed feed="most_viewed" time-range="today"/>
        <playlists user="mediatomb"/>
        <uploads user="mediatomb"/>
        <standardfeed feed="recently_featured" time-range="today"/>
      </YouTube>
      <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="no">
    <mimetype-profile-mappings>
      <transcode mimetype="video/x-flv" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="oggflac2raw"/>
      <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="oggflac2raw" enabled="no" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
      <profile name="vlcmpeg" enabled="no" type="external">
        <mimetype>video/mpeg</mimetype>
        <accept-url>yes</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>yes</accept-ogg-theora>
        <agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
    </profiles>
  </transcoding>
</config>

Offline

 

#158 2009-03-12 06:02:06

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

slyder wrote:

boilerjt wrote:

This does not look like the config.xml that is generated for the SVN 2017 build I have provided.  If you are using this build, please kill the MediaTomb process, delete this config.xml, and restart MediaTomb.  A fresh config.xml will be generated and all you should need to do is add the <map from="mkv" to="video/x-matroska"/> line and possible uncomment the line for the D-Link DSM.  You'll also see a transcoding section, but as long as it says <transcoding enabled="no">, no transcoding of any kind will take place.  Also, be sure not to mix files between different versions of MediaTomb.  This does tend to break things.

I was using the default mediatomb that comes with funplug.. installed your SVN2017, modified the config again , reboot the NAS, startup mediatomb 12 and called up an mkv file...

results are:
Class: object.item
Mimetype: application/octet-stream

Here is the config.xml file

Thanks so much for your time...
How would I get this autostart instead of the default Fun_plug version??.. should I over write the default mediatomb dirs?

Thanks again

I think your problem was that both mediatombs may have been running. To stop the default ffp mediatomb from starting automatically, issue this from the command line:

chmod a-x /ffp/start/mediatomb.sh

Then issue a killall mediatomb.  This will kill all running mediatomb processes.  Next, go to /HD_a2/mediatomb12 and issue a ./mediatomb.sh to start the latest. Then open the WebUI and reimport the mkv files (remove them if they have been previously imported.) I have never seen an issue importing mkv files, as long as the <map from="mkv" to="video/x-matroska"/> is included in config.xml.  If the WebUI says the mimetype is video/x-matroska, MediaTomb will stream the unaltered mkv file to your device and if you device cannot play it, there is probably some incompatibility between the way MediaTomb streams the file and your device expects it to be streamed.  Have you been able to stream other video files from MediaTomb to your device?

As far as autostarting this version of MediaTomb on the DNS-323, look here:

http://dns323.kood.org/forum/p22341-200 … tml#p22341

Last edited by boilerjt (2009-03-12 06:03:32)

Offline

 

#159 2009-03-12 06:08:45

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

If the WebUI says the mimetype is video/x-matroska, MediaTomb will stream the unaltered mkv file to your device and if you device cannot play it, there is probably some incompatibility between the way MediaTomb streams the file and your device expects it to be streamed.  Have you been able to stream other video files from MediaTomb to your device?

Thanks.. I had already killed the funplug mediatomb, rebooted etc... the only media server running is mediatomb12.

Under the funplug version I could serve and watch other media.. on this new one.. even the avi files show as octet....... and nothing plays.. same behavior for all files..

I will clean everything out and start over just in case I messed up.. but followed your instructions to the "T".

Sure appreciate the effort though..

i currently manually startup mediatomb12, no funplug version running, no DNS323 upnp running, no twonky running.. same results.

I'll reinstall and see what happens..

thanks again

Offline

 

#160 2009-03-13 00:34:44

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

This might work without editing the playlist.js script...

Comment out there two lines in config.xml as follows:

<!--<treat mimetype="audio/x-mpegurl" as="playlist"/>
<treat mimetype="audio/x-scpls" as="playlist"/> -->

It appears these lines tell MediaTomb to execute the playlist script for m3u and pls when they are imported.  In my brief testing, it seems the script is not executed when these two lines are commented out.

You are the man - worked perfectly. Thanks!

Offline

 

#161 2009-03-13 03:55:55

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

If the WebUI says the mimetype is video/x-matroska, MediaTomb will stream the unaltered mkv file to your device and if you device cannot play it, there is probably some incompatibility between the way MediaTomb streams the file and your device expects it to be streamed.  Have you been able to stream other video files from MediaTomb to your device?

OK... Results...
Deleted previous install of Mediatomb12.
Reinstalled.
Edited the config.xml before starting Mediatomb.
Imported my Video Library.
Examined properties of about 6 mkv files all reporting mimetype as mkv... OK so far.
Start Mediatomb.
Access from my DMS-750
Can see my video library and see the .mkv files
Test play an .avi file... worked just fine.. no issues..
Test play an .mkv file... played for 3 seconds exactly then stopped and it went back to the directory listing..
Tried about 15 more .mkv files.. each played for 3 seconds exactly  and then quit etc...

This is where its at now.. any ideas why the 3 seconds exactly playtime?.. its the same for any mkv file I try to play.. all other formats play fine.. ie: avi, wmv, etc

Offline

 

#162 2009-03-13 05:47:31

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

slyder wrote:

boilerjt wrote:

If the WebUI says the mimetype is video/x-matroska, MediaTomb will stream the unaltered mkv file to your device and if you device cannot play it, there is probably some incompatibility between the way MediaTomb streams the file and your device expects it to be streamed.  Have you been able to stream other video files from MediaTomb to your device?

OK... Results...
Deleted previous install of Mediatomb12.
Reinstalled.
Edited the config.xml before starting Mediatomb.
Imported my Video Library.
Examined properties of about 6 mkv files all reporting mimetype as mkv... OK so far.
Start Mediatomb.
Access from my DMS-750
Can see my video library and see the .mkv files
Test play an .avi file... worked just fine.. no issues..
Test play an .mkv file... played for 3 seconds exactly then stopped and it went back to the directory listing..
Tried about 15 more .mkv files.. each played for 3 seconds exactly  and then quit etc...

This is where its at now.. any ideas why the 3 seconds exactly playtime?.. its the same for any mkv file I try to play.. all other formats play fine.. ie: avi, wmv, etc

This is really bizarre.  Since other video formats work fine, the mkv files should work as well.  There is one more troubleshooting step you can take.

In the mediatomb.sh file, edit it to remove the -d at the end of the last line.  This will launch mediatomb in normal command line mode, not daemon mode.  This is good for troubleshooting because error messages are written to the terminal.  After editing this file, make sure the mediatomb process is killed (killall mediatomb) and start mediatomb with the edited mediatomb.sh.  You'll see more information written to the screen.  Try playing an mkv from your DSM-750 and see if any error messages are written to the terminal when it seems to abort playback.  If there are any errors, this is information that needs to be passed to the MediaTomb developer (Jin).  A <ctrl>c will stop the MediaTomb process in command line mode.

Hopefully, we'll figure this out...

Offline

 

#163 2009-03-13 05:48:38

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

ahughes wrote:

boilerjt wrote:

This might work without editing the playlist.js script...

Comment out there two lines in config.xml as follows:

<!--<treat mimetype="audio/x-mpegurl" as="playlist"/>
<treat mimetype="audio/x-scpls" as="playlist"/> -->

It appears these lines tell MediaTomb to execute the playlist script for m3u and pls when they are imported.  In my brief testing, it seems the script is not executed when these two lines are commented out.

You are the man - worked perfectly. Thanks!

Cool smile

Offline

 

#164 2009-03-14 13:20:09

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

boilerjt wrote:

Try playing an mkv from your DSM-750 and see if any error messages are written to the terminal when it seems to abort playback.  If there are any errors, this is information that needs to be passed to the MediaTomb developer (Jin).  A <ctrl>c will stop the MediaTomb process in command line mode.

Hopefully, we'll figure this out...

Tried this.. it displayed a couple more lines to the console.. but.. no messages regarding files being played etc... No errors came up.. behavior is the same as before.. Plays avi's, wmv's etc without issues... only mkv craps out consistently around the 3second mark.. however: if there is audio/video in those 1st 3 seconds, that does play.. but still conks at the 3 second mark and back to the directory listing.

have tried the exact same mkv's on the usb stick.. just to ensure that the 750 native mode for mkvs was in fact working these files..  The MKV's on USB Stick play just fine.. so its not the file contents or the 750's ability to play these files.. (Was curious just in case Twonky was doing something to prep the file before serving that Mediatomb wasn't.. .but not the case)...

Perhaps missing a library or something... who knows..

thanks anyways..

Offline

 

#165 2009-03-14 15:37:01

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

slyder wrote:

boilerjt wrote:

Try playing an mkv from your DSM-750 and see if any error messages are written to the terminal when it seems to abort playback.  If there are any errors, this is information that needs to be passed to the MediaTomb developer (Jin).  A <ctrl>c will stop the MediaTomb process in command line mode.

Hopefully, we'll figure this out...

Tried this.. it displayed a couple more lines to the console.. but.. no messages regarding files being played etc... No errors came up.. behavior is the same as before.. Plays avi's, wmv's etc without issues... only mkv craps out consistently around the 3second mark.. however: if there is audio/video in those 1st 3 seconds, that does play.. but still conks at the 3 second mark and back to the directory listing.

have tried the exact same mkv's on the usb stick.. just to ensure that the 750 native mode for mkvs was in fact working these files..  The MKV's on USB Stick play just fine.. so its not the file contents or the 750's ability to play these files.. (Was curious just in case Twonky was doing something to prep the file before serving that Mediatomb wasn't.. .but not the case)...

Perhaps missing a library or something... who knows..

thanks anyways..

It looks like the DSM-750 requires more information for mkv streaming than other video formats.  One difference between this build of MediaTomb and the standard Linux build is that the standard Linux build uses the ffmpeg libraries to get video information (such as video length) and this information is sent in the stream.  I have tried building the ffmpeg libraries on the DNS-323 and have not had success yet.  Most players are smart enough to get this on their own (reading file headers), but perhaps the DSM-750 needs more information about the mkv that Twonky provides.

In looking at the MediaTomb web page, I see that the DSM-750 is lot listed in the supported devices.   If this is important to you, you (or another 750 user) will need to work with the MediaTomb developer to work out the issues.  However, the developer is not actively working on the project (real life is getting in the way) but he hopes to be back soon.

Offline

 

#166 2009-03-14 15:47:18

slyder
Member
From: Winnipeg, Canada
Registered: 2009-03-10
Posts: 9

Re: [REL] MediaTomb 0.12.0 SVN 1899

Most players are smart enough to get this on their own (reading file headers), but perhaps the DSM-750 needs more information about the mkv that Twonky provides.

In looking at the MediaTomb web page, I see that the DSM-750 is lot listed in the supported devices.   If this is important to you, you (or another 750 user) will need to work with the MediaTomb developer to work out the issues.  However, the developer is not actively working on the project (real life is getting in the way) but he hopes to be back soon.

I hear what your saying... doesn't explain the 750 able to interpet file properly when loading directly from a USB stick, but perhaps Mediatomb is doing something to filter out data... hard to say..

Guess I'll need to stick with what works for now.. Twonky seems to work just fine.. guess I'll pay the license and wait until a more viable solution in open source is available..

Thank you for all your efforts and time...

regards

Offline

 

#167 2009-03-14 16:03:05

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

slyder wrote:

Most players are smart enough to get this on their own (reading file headers), but perhaps the DSM-750 needs more information about the mkv that Twonky provides.

In looking at the MediaTomb web page, I see that the DSM-750 is lot listed in the supported devices.   If this is important to you, you (or another 750 user) will need to work with the MediaTomb developer to work out the issues.  However, the developer is not actively working on the project (real life is getting in the way) but he hopes to be back soon.

I hear what your saying... doesn't explain the 750 able to interpet file properly when loading directly from a USB stick, but perhaps Mediatomb is doing something to filter out data... hard to say..

Guess I'll need to stick with what works for now.. Twonky seems to work just fine.. guess I'll pay the license and wait until a more viable solution in open source is available..

Thank you for all your efforts and time...

regards

If I hear anything about the 750 and mkv from a forum or IRC, I'll post it here.  Reading from a file directly and receiving a uPnP AV stream are two completely different animals and it appears Twonky is doing something different than MediaTomb when streaming to the 750.  At least you have a solution that works smile

Offline

 

#168 2009-03-15 17:36:41

Soprano
Member
Registered: 2009-01-18
Posts: 17

Re: [REL] MediaTomb 0.12.0 SVN 1899

I can' t seem to get the autoscan to work on my music directory (10k songs). I have a small video directory, and it works fine. I have it set to "Timed" and "Full" and have tried several settings in Scan Interval and it still doesn't work. I've also removed and added the music directory several times. Am I missing something here?

Offline

 

#169 2009-03-17 11:10:54

triceo
Member
Registered: 2009-03-17
Posts: 5

Re: [REL] MediaTomb 0.12.0 SVN 1899

I have just installed this MediaTomb on my DNS-323 and it's importing my media library at the moment. However, I noticed that some files (mainly FLACs) are being skipped over.

They appear in the "PC directory" sub-tree, but not in the "Audio" sub-tree. Could someone please guide me as to what am I doing wrong?

Offline

 

#170 2009-03-17 11:59:16

triceo
Member
Registered: 2009-03-17
Posts: 5

Re: [REL] MediaTomb 0.12.0 SVN 1899

triceo wrote:

They appear in the "PC directory" sub-tree, but not in the "Audio" sub-tree.

And I should perhaps add that they are of type application/octet-stream.

Offline

 

#171 2009-03-17 19:16:27

triceo
Member
Registered: 2009-03-17
Posts: 5

Re: [REL] MediaTomb 0.12.0 SVN 1899

triceo wrote:

Could someone please guide me as to what am I doing wrong?

And from the Solve It Yourself department, the solution was to directly specify that files with "flac" extensions should be treated as "audio/x-flac" - don't know why the file magic didn't catch that, but anyway... it works now.

Offline

 

#172 2009-03-20 12:04:19

7erl
Member
Registered: 2009-03-01
Posts: 12

Re: [REL] MediaTomb 0.12.0 SVN 1899

bluebeer wrote:

7erl wrote:

OK - I made it work - no help required anymore - thanks anyways!
7erl

what did you change?

Ok, maybe this is useful for others as well:

I have copied my movie thumbnails (jpgs, max. 128x128) to /mnt/HD_a2/covers/movies on my CH3SNAS. I have 3 TB in the box and all movies are *.m2ts files, but I renamed them to *.m2t actually. The covers use the movie name plus ".cover.jpg" as extension.

The relevant part in config.xml looks like:

    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="m2t" to="video/mpeg"/>
        <map from="ts"  to="video/mpeg"/>
        <map from="m2ts" to="video/mpeg"/>
        <map from="mp4" to="video/mp4"/>
      </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="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"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
      </mimetype-contenttype>
    </mappings>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="video/mpeg" using="thumbnail-videos"/>
      <transcode mimetype="video/divx" using="thumbnail-videos"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="thumbnail-videos" enabled="yes" type="external">
        <mimetype>image/jpeg</mimetype>
        <accept-url>yes</accept-url>
        <thumbnail>yes</thumbnail>
        <resolution>128x128</resolution>
        <agent command="/ffp/bin/thumbs_movies.sh" arguments="%in %out"/>
        <buffer size="524288" chunk-size="512" fill-size="1024"/>
      </profile>
    </profiles>
  </transcoding>


The thumbs_movies.sh contains the following code:

#!/ffp/bin/sh
POSTERPATH="/mnt/HD_a2/covers/movies"
FILE=$(basename "$1")
if [ -f "$POSTERPATH/$FILE.cover.jpg" ];
then
    cp "$POSTERPATH/$FILE.cover.jpg" $2
else
    cp "$POSTERPATH/nocover.jpg" $2
fi


Regards
7erl

Offline

 

#173 2009-03-22 21:33:55

islandnetworks
New member
Registered: 2009-03-22
Posts: 1

Re: [REL] MediaTomb 0.12.0 SVN 1899

I'm unable to run your SVN2017 build on a headless Ubuntu Hardy server. The build seems to download and untar normally, but I get:

richard@palace:/mnt/HD_a2/mediatomb12$ ./mediatomb.sh
/mnt/HD_a2/mediatomb12/usr/bin/mediatomb: 1: Syntax error: word unexpected (expecting ")")

And running mediatomb directly gives:
richard@palace:/mnt/HD_a2/mediatomb12$ /mnt/HD_a2/mediatomb12/usr/bin/mediatomb -m /mnt/HD_a2/mediatomb -f config -d
-bash: /mnt/HD_a2/mediatomb12/usr/bin/mediatomb: cannot execute binary file

File and directory permissions look OK; same results when installed and run as root.
Clues for the hapless, please?

Offline

 

#174 2009-03-23 14:32:53

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: [REL] MediaTomb 0.12.0 SVN 1899

islandnetworks wrote:

I'm unable to run your SVN2017 build on a headless Ubuntu Hardy server. The build seems to download and untar normally, but I get:

richard@palace:/mnt/HD_a2/mediatomb12$ ./mediatomb.sh
/mnt/HD_a2/mediatomb12/usr/bin/mediatomb: 1: Syntax error: word unexpected (expecting ")")

And running mediatomb directly gives:
richard@palace:/mnt/HD_a2/mediatomb12$ /mnt/HD_a2/mediatomb12/usr/bin/mediatomb -m /mnt/HD_a2/mediatomb -f config -d
-bash: /mnt/HD_a2/mediatomb12/usr/bin/mediatomb: cannot execute binary file

File and directory permissions look OK; same results when installed and run as root.
Clues for the hapless, please?

This build is specifically for the DNS-323 NAS (which uses an ARM CPU) and will not work on an x86 system.  For Ubuntu, if you want 0.12, you'll have to compile it yourself which is not that difficult.  If you wish to use the current 0.11 release, a sudo apt-get install mediatomb will work for you.  Here are some mediatomb links:

http://mediatomb.cc/
http://sourceforge.net/projects/mediatomb/

Offline

 

#175 2009-03-24 22:39:34

boomshanker
Member
From: Port Coquitlam, BC
Registered: 2009-03-06
Posts: 10

Re: [REL] MediaTomb 0.12.0 SVN 1899

Hello boilerjt

Firstly, thank you for your dedication to this project as well as your time.

I have your build running on my DNS-323 and have noticed that videos created on my Archos AV700 do not have sound when streamed to my D-Link DSM-520.  Seems the videos are MPEG-4 SP / Part 2.

Would you be able to inform me of what settings in config.xml I should be looking at to correct this problem?

Thank you very much, best regards.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB