Media Share - Mediatomb Is Now Working

Discussion in 'DIRECTV Tips and Resources' started by boilerjt, May 18, 2008.

  1. DocTauri

    DocTauri Legend

    114
    0
    Oct 30, 2006
    I've been waiting nearly a year for a binary release of 0.12. Still no luck. I compiled it on Linux w/o much hassle, so figure I'll do the same on the Mac.

    Doc
     
  2. gmackenz

    gmackenz New Member

    1
    0
    Feb 14, 2008
    New to this Media server with transcoding as well, on my Mac OS X mini I've tried Twonky, which always crashed; Medialink, not very satisfactory and very limited; and PS3 Media server, which is almost perfect for the PS3 (almost all of these seem to be based on Mediatomb).

    My question, is it possible to set up Mediatomb to operate with BOTH the DirecTV HD-DVR AND my PS3? I've gotten almost all the kinks worked out for running Mediatomb with my PS3 and am now investigating having it work with my DirecTV HD-DVR. Then comes the iPhone 3GS ;) Is there a way to have multiple device profiles in a single config.xml? Or will I have to create multiple device-dependent config files and restart the mediatomb pointing to just that particular file for the PS3 or the DirecTV (and later the iPhone)?
     
  3. GregLee

    GregLee Hall Of Fame

    1,703
    19
    Dec 28, 2005
    I don't know. I don't see offhand why you would have to do anything special. I thought MediaTomb just advertised its services and would serve up stuff to whatever clients wanted it. There's a line in config.xml about setting protocolinfo support to "yes" for the PS3, but I have that set to "yes" for DirecTV, so that should be no problem.

    Have you looked at your DirecTV menu to see whether it's already working?
     
  4. Jul 8, 2009 #584 of 637
    jjaromin

    jjaromin Mentor

    34
    0
    Nov 11, 2006
    From the mediatomb.cc website....

    ... maybe we should all get together and help him with his restoration! ;)
     
  5. Aug 6, 2009 #585 of 637
    MrAP

    MrAP Mentor

    38
    0
    Aug 4, 2009
    I've got mediatomb running, and the HR21 can see there are JPG files, but it can't display them. For JPG's only does the HR21 work with mediatomb 0.11.0-5 (which is running on a Linkstation)?

    Thanks.
     
  6. Aug 7, 2009 #586 of 637
    MyCatsNameIsBernie

    MyCatsNameIsBernie Cool Member

    14
    0
    Dec 31, 2008
    I believe version 0.12 (built from svn) is required.
     
  7. Aug 7, 2009 #587 of 637
    MrAP

    MrAP Mentor

    38
    0
    Aug 4, 2009
    Rats. I have absolutely no experience building anything for the Linkstation.

    Thanks for the info.
     
  8. Aug 7, 2009 #588 of 637
    MrAP

    MrAP Mentor

    38
    0
    Aug 4, 2009
    Also, does the same apply to the HR23 I wonder. D* said they are sending me a HR23 and it would be great if 0.11.0-5 works with it :D (I was just able to install some development tools on the NAS, but I still don't know how I'll fare in compiling 0.12.x).

    Thanks.
     
  9. Aug 7, 2009 #589 of 637
    MyCatsNameIsBernie

    MyCatsNameIsBernie Cool Member

    14
    0
    Dec 31, 2008
    The HR-2x's all use very similar software, and I believe they all require 0.12.
     
  10. Aug 8, 2009 #590 of 637
    MrAP

    MrAP Mentor

    38
    0
    Aug 4, 2009
    Thanks! Never compiled anything before, so now I'm trying to find a guide to compiling . . . :|
     
  11. moop

    moop New Member

    6
    0
    May 16, 2009
    I'm aware that this thread is really, really old, but people were asking how to get MediaTomb up and running on OS X.

    PREREQUISITES:

    - about an hour
    - basic knowledge of Terminal
    - administrative privileges
    - Xcode (can be installed from the "Optional Installs" directory on your OS X DVD)
    - router capable of handling uPnP

    If you’ve already installed fink and are sure you have it set up properly, skip to step 2.


    1. Run the following to install fink (press return when prompted for a password, this time only):

    Code:
    cvs -d:pserver:anonymous@fink.cvs.sourceforge.net:/cvsroot/fink login
    cvs -z3 -d:pserver:anonymous@fink.cvs.sourceforge.net:/cvsroot/fink co -P fink
    cd fink
    ./bootstrap /sw
    If it asks for any configuration options, just use the defaults (mash the return key).

    2. Once it’s installed, run the following:

    Code:
    sudo nano /sw/etc/fink.conf
    Change line 4 to read:

    Press Control-X to save and exit nano.

    3. Since we've just compiled fink from source, Terminal isn't going to know the binary's location. Update your paths by running the following:

    Code:
    /sw/bin/pathsetup.sh
    You will need to fully quit Terminal for this to take effect.

    3a. Fink now needs to download an updated list of packages.

    Code:
    fink selfupdate-cvs
    fink -y update-all
    fink scanpackages
    4. If everything went smoothly, you’re now ready to install MediaTomb. Run the following command:

    Code:
    fink install mediatomb
    This will take a few minutes; it took me about half an hour on a quad-core Mac Pro, so be prepared to wait. When it's done, check if the install was successful by running “mediatomb” (no quotes). If successful, press Control-C to exit.

    5. As stated above, this version of MediaTomb is fairly ancient and will not work with MediaShare. To update, a recent revision of the source code has to be downloaded and compiled first:

    Code:
    svn co https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
    cd mediatomb
    sudo autoreconf -i
    ./configure
    make
    make install
    cd ..
    rm -rf mediatomb
    MediaTomb should now be version 0.12 - verify this by again running “mediatomb”.

    By default, MediaTomb does not run as a background process. Once you have MediaTomb configured the way you’d like it to be, you can start it as a daemon by running “mediatomb -d”.

    Hope this helps!
     
  12. Oct 6, 2009 #592 of 637
    tider

    tider AllStar

    58
    0
    Mar 2, 2008
    I'm a new mac user so bare with me.



    [/QUOTE]
    1. Run the following to install fink (press return when prompted for a password, this time only):[/QUOTE]

    So I can install this straight through the terminal, do I need to download anything from the internet?


    [/QUOTE]
    Code:
    cvs -d:pserver:anonymous@fink.cvs.sourceforge.net:/cvsroot/fink login
    cvs -z3 -d:pserver:anonymous@fink.cvs.sourceforge.net:/cvsroot/fink co -P fink
    cd fink
    ./bootstrap /sw
    If it asks for any configuration options, just use the defaults (mash the return key).

    2. Once it’s installed, run the following:

    Code:
    sudo nano /sw/etc/fink.conf
    Change line 4 to read:



    Press Control-X to save and exit nano.

    3. Since we've just compiled fink from source, Terminal isn't going to know the binary's location. Update your paths by running the following:

    Code:
    /sw/bin/pathsetup.sh
    You will need to fully quit Terminal for this to take effect.[/QUOTE]

    So I need to close terminal before I proceed on to the next step?


    [/QUOTE]
    3a. Fink now needs to download an updated list of packages.

    Code:
    fink selfupdate-cvs
    fink -y update-all
    fink scanpackages
    4. If everything went smoothly, you’re now ready to install MediaTomb. Run the following command:

    Code:
    fink install mediatomb
    [/QUOTE]

    This is after I download from the internet I assume.

    [/QUOTE]
    This will take a few minutes; it took me about half an hour on a quad-core Mac Pro, so be prepared to wait. When it's done, check if the install was successful by running “mediatomb” (no quotes). If successful, press Control-C to exit.

    5. As stated above, this version of MediaTomb is fairly ancient and will not work with MediaShare. To update, a recent revision of the source code has to be downloaded and compiled first:

    Code:
    svn co https://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb mediatomb
    cd mediatomb
    sudo autoreconf -i
    ./configure
    make
    make install
    cd ..
    rm -rf mediatomb
    MediaTomb should now be version 0.12 - verify this by again running “mediatomb”.

    By default, MediaTomb does not run as a background process. Once you have MediaTomb configured the way you’d like it to be, you can start it as a daemon by running “mediatomb -d”.

    Hope this helps![/QUOTE]



    So , If I go into terminal and type all of this code, Mediatomb should work ?
    I know very little about terminal, I've seen some prebuilt commands that you put into terminal and do certain things on the mac, but I've never used it.
    Can I copy and paste all of the commands from your email directly into terminal.
    Do I need to download any codecs to make it play on my HR-21?

    I used Tversity before I switched over to a mac and was able to get media to play on my HR21-700.

    Will this work with the HR21's on Directv?

    Sorry for all the questions, I just want to have a media player that will play all my photos,videos,and music without having to know all the ins and outs of the technical side of setting it up to work. Do you know of a screencast anyone has done that will walk you through it step by step?

    Thanks


     
  13. Oct 6, 2009 #593 of 637
    bobnielsen

    bobnielsen Éminence grise

    8,473
    92
    Jun 29, 2006
    Bainbridge...
    The cvs program should already exist in /usr/bin, so you don't need to download anything to get to that point. Fink will download and install quite a few files which will allow you to proceed from that point.

    Quitting and restarting the terminal will invoke your new path.

    You will need to install some codecs. See http://mediatomb.cc/pages/transcoding

    Think of using the terminal as being similar to using DOS on an old PC (command-line environment).

    You seem to have messed up the quoting a bit. A quote should begin with (open bracket)quote(close bracket) and end with (open bracket)/quote(close bracket).

    It isn't necessary to use such large letters :D
     
  14. Oct 6, 2009 #594 of 637
    tider

    tider AllStar

    58
    0
    Mar 2, 2008
    Sorry for the large letters:)

    So I can just copy and paste all of these commands and download and install the codecs and it should work?

    Thanks for your help.

    I'm loving the mac, I've just got to get my media server reconnected to my HR21.

    Thanks again.
     
  15. heddhunter

    heddhunter New Member

    17
    0
    Aug 10, 2009
    Hey all. I just stumbled on this thread and am quite excited about the prospects. I am very experienced with linux command line video manipulation (have written video suites for two major web companies now). Can someone sum up the state of mediatomb + HR22 for me? What codecs can be played without transcoding (just remuxing)? (My linux server at home is very low-power and there's no way it could handle transcoding anything.)
     
  16. bobnielsen

    bobnielsen Éminence grise

    8,473
    92
    Jun 29, 2006
    Bainbridge...
    The DVRs will only handle LPCM audio, MPEG-2 video (transport stream if the audio track is AC-3) and JPEG pictures. Any other formats must be transcoded (or converted to one of those formats).
     
  17. GregLee

    GregLee Hall Of Fame

    1,703
    19
    Dec 28, 2005
    The newest experimental software versions for DVRs and receivers will now handle mp3 audio, and also the aspect ratio bug has been fixed for jpg files, so it is no longer appropriate to transcode jpgs with 'convert' to stretch them out. I guess it's a little early to revise config.xml, but I'm posting the following change, because I'm afraid I'll forget later:
    Code:
    <?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:71d928af-e06c-410b-9c4b-7d63a8ead3cc</udn>
        <home>/home/greg/.mediatomb</home>
        <webroot>/usr/local/share/mediatomb/web</webroot>
        <storage>
        <!-- <storage caching="no"> -->
          <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"/><!-- 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">
          <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"> -->
          <virtual-layout type="js">
            <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="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"/>
            <!-- the line below from tensuns (gl) -->
    	<map from="pcm" to="audio/L16"/>
    	<map from="lpcm" to="audio/L16"/>
            <!-- 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="ts" to="video/mpeg"/>
    	<map from="vob" to="video/mpeg"/>
            <map from="wav" to="audio/wav"/>
    	<map from="mpg" to="video/mpeg"/>
    	<map from="aac" to="audio/x-aac"/>
    	<map from="m4a" to="audio/mp4"/>
            <map from="mkv" to="video/x-matroska"/>
            <map from="mov" to="video/x-quicktime"/>
          </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="audio/wav" as="wav"/>
            <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="video/x-quicktime" as="mov"/>
            <treat mimetype="audio/mp4" as="mp4"/>
            <treat mimetype="audio/x-ms-wma" as="wma"/>
            <treat mimetype="audio/x-ms-asf" as="asf"/>
            <treat mimetype="audio/x-aac" as="aac"/>
    	<treat mimetype="video/x-ms-wmv" as="wmv"/>
            <treat mimetype="video/x-matroska" as="mkv"/>
          </mimetype-contenttype>
        </mappings>
    
        <!-- <filesystem-charset> -->
        <!-- <metadata-charset> -->
        <!-- <playlist-charset> -->
        <!-- <autoscan> -->
        <!-- <library options> -->
        <library-options>
          <libexif>
            <auxdata>
              <add-data tag="EXIF_TAG_MODEL"/>
            </auxdata>
          </libexif>
          <id3>
            <auxdata>
    		<add-data tag="TENC"/>
    		<!-- TALB, TBPM, TCOM, TCON, TCOP, TDAT, TDLY, TENC, TEXT, TFLT, TIME,
    	             TIT1, TIT2, TIT3, TKEY, TLAN, TLEN, TMED, TOAL, TOFN, TOLY, TOPE, TORY, TOWN, TPE1, TPE2, TPE3, TPE4,
    	       	     TPOS, TPUB, TRCK, TRDA, TRSN, TRSO, TSIZ, TSRC, TSSE, TYER, TXXX -->
            </auxdata>
          </id3>
        </library-options>
        <!-- <magic-file> -->
    
        <online-content fetch-buffer-size="262144" fetch-buffer-fill-size="0">
          <YouTube enabled="yes" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="include"> 
            <favorites user="mediatomb"/> 
            <standardfeed feed="most_viewed" region-id="us" time-range="today"/> 
            <playlists user="mediatomb"/> 
            <uploads user="mediatomb"/> 
            <standardfeed feed="recently_featured" region-id="us" time-range="today"/> 
          </YouTube> 
        </online-content>
    
      </import>
      <transcoding enabled="yes">
        <mimetype-profile-mappings>
          <!--    <transcode mimetype="audio/mpeg" using="vlcwav"/> -->
          <!--    <transcode mimetype="audio/mpeg" using="ffmpegwav"/> -->
          <transcode mimetype="video/x-flv" using="ffyoutube"/>
          <transcode mimetype="video/mp4" using="transvideo"/>
          <transcode mimetype="video/x-quicktime" using="transvideo"/>
          <transcode mimetype="application/ogg" using="vlcwav"/>
          <transcode mimetype="audio/x-ms-wma" using="vlcwav"/>
          <transcode mimetype="audio/x-ms-asf" using="vlcwav"/>
          <transcode mimetype="audio/x-flac" using="ffmpegwav"/>
          <!--       <transcode mimetype="audio/mp4" using="ffmpegwav"/> -->
          <transcode mimetype="audio/mp4" using="vlcwav"/>
          <transcode mimetype="audio/x-aac" using="vlcwav"/>
          <transcode mimetype="video/x-msvideo" using="transvideo"/>
          <transcode mimetype="video/x-ms-wmv" using="transvideo"/>
          <transcode mimetype="video/mpeg" using="mpeg2trans"/>
          <transcode mimetype="video/x-matroska" using="transvideo"/>
          <transcode mimetype="image/jpeg" using="rescalejpeg"/>
        </mimetype-profile-mappings>
        <profiles>
          <profile name="transvideo" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <agent command="ffmpegvideo" arguments="%in %out 5900k 256k"/>
            <buffer size="57600000" chunk-size="128000" fill-size="10000000"/>
          </profile>
          <profile name="mpeg2trans" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <hide-original-resource>yes</hide-original-resource>
            <agent command="ffmpegvideo" arguments="%in %out 6000k 256k"/>
            <buffer size="28800000" chunk-size="512000" fill-size="120000"/>
          </profile>
          <profile name="ffmpegwav" enabled="yes" type="external">
            <use-chunked-encoding>no</use-chunked-encoding>
            <mimetype>audio/wav</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <agent command="ffmpegaudio" arguments="%in %out"/>
            <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
          </profile>
          <profile name="vlcwav" enabled="yes" type="external">
    	<use-chunked-encoding>no</use-chunked-encoding> 
            <mimetype>audio/wav</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <agent command="vlcaudio" arguments="%in %out"/>
            <buffer size="300000" chunk-size="10000" fill-size="32000"/>
          </profile>
          <profile name="ffyoutube" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>no</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
            <agent command="ffmpegyoutube" arguments="%in %out"/>
            <buffer size="14400000" chunk-size="256000" fill-size="80000"/>
          </profile>
    <!--
          <profile name="vlcyoutube" enabled="yes" 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="vlcyoutube" arguments="%in %out"/>
            <buffer size="14400000" chunk-size="256000" fill-size="80000"/>
          </profile>
    -->
          <profile name="rescalejpeg" enabled="yes" type="external">
            <mimetype>image/jpeg</mimetype>
            <accept-url>no</accept-url>
            <first-resource>yes</first-resource>
    	<accept-ogg-theora>no</accept-ogg-theora>
    <!--
    	<agent command="convert" arguments="-size 1440x720 %in -auto-orient
                                               -resize 112.5%x100% +profile '*' %out"/>
    -->
            <agent command="transjpeg" arguments="%in %out"/>
            <buffer size="50000" chunk-size="100" fill-size="100"/>
          </profile>
        </profiles>
      </transcoding>
    </config>
    
     
  18. rahlquist

    rahlquist Hall Of Fame

    1,677
    3
    Jul 24, 2007
    boilerjt, or anyone else who has gotten it working, how do you get the iso playback working? I can see the iso I am testing with but it has a X next to it. This feature would be awesome if I could get it working (our vacation videos are all on mini dvd's).

    Here is my config.xml in case your interested and I am running 0.12.1

    Code:
    <?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>
        <ui enabled="yes" show-tooltips="yes">
          <accounts enabled="no" session-timeout="30">
            <account user="mediatomb" password="mediatomb"/>
          </accounts>
        </ui>
        <name>MediaTomb</name>
        <udn>################################</udn>
        <home>/etc/mediatomb</home>
        <webroot>/usr/share/mediatomb/web</webroot>
        <storage caching="yes">
          <sqlite3 enabled="no">
            <database-file>mediatomb.db</database-file>
          </sqlite3>
          <mysql enabled="yes">
            <host>localhost</host>
            <username>mediatomb</username>
            <database>mediatomb</database>
            <password>#########</password>
          </mysql>
        </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>
          <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/share/mediatomb/js/common.js</common-script>
          <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
          <virtual-layout type="builtin">
            <import-script>/usr/share/mediatomb/js/import.js</import-script>
            <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script>
          </virtual-layout>
        </scripting>
        <mappings>
          <extension-mimetype ignore-unknown="no">
            <map from="iso" to="application/x-iso9660-image"/>
            <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"/>
            <map from="ts" to="video/mpeg"/>
            <map from="vob" to="video/mpeg"/>
            <map from="wav" to="audio/wav"/>
            <map from="mpg" to="video/mpeg"/>
            <map from="aac" to="audio/x-aac"/>
            <map from="m4a" to="audio/mp4"/>
            <map from="mkv" to="video/x-matroska"/>
            <map from="mov" to="video/x-quicktime"/><!-- 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"/> -->
          </extension-mimetype>
          <mimetype-upnpclass>
            <map from="audio/*" to="object.item.audioItem.musicTrack"/>
            <map from="video/*" to="object.item.videoItem"/>
            <map from="application/x-iso9660-image" to="object.item.videoItem"/>
            <map from="image/*" to="object.item.imageItem"/>
          </mimetype-upnpclass>
          <mimetype-contenttype>
            <treat mimetype="application/x-iso9660-image" as="dvd"/>
            <treat mimetype="audio/mpeg" as="mp3"/>
            <treat mimetype="application/ogg" as="ogg"/>
            <treat mimetype="audio/x-flac" as="flac"/>
            <treat mimetype="audio/wav" as="wav"/>
            <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="video/x-quicktime" as="mov"/>
            <treat mimetype="audio/mp4" as="mp4"/>
            <treat mimetype="audio/x-ms-wma" as="wma"/>
            <treat mimetype="audio/x-ms-asf" as="asf"/>
            <treat mimetype="audio/x-aac" as="aac"/>
            <treat mimetype="video/x-ms-wmv" as="wmv"/>
            <treat mimetype="video/x-matroska" as="mkv"/>
          </mimetype-contenttype>
        </mappings>
        <library-options>
          <libexif>
            <auxdata>
              <add-data tag="EXIF_TAG_MODEL"/>
            </auxdata>
          </libexif>
          <id3>
            <auxdata>
              <add-data tag="TENC"/><!-- TALB, TBPM, TCOM, TCON, TCOP, TDAT, TDLY, TENC, TEXT, TFLT, TIME,
                     TIT1, TIT2, TIT3, TKEY, TLAN, TLEN, TMED, TOAL, TOFN, TOLY, TOPE, TORY, TOWN, TPE1, TPE2, TPE3, TPE4,
                        TPOS, TPUB, TRCK, TRDA, TRSN, TRSO, TSIZ, TSRC, TSSE, TYER, TXXX -->
            </auxdata>
          </id3>
        </library-options>
        <online-content fetch-buffer-size="262144" fetch-buffer-fill-size="0">
          <YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="include">
            <favorites user="mediatomb"/>
            <standardfeed feed="most_viewed" region-id="us" time-range="today"/>
            <playlists user="mediatomb"/>
            <uploads user="mediatomb"/>
            <standardfeed feed="recently_featured" region-id="us" time-range="today"/>
          </YouTube>
        </online-content>
      </import>
      <transcoding enabled="yes">
        <mimetype-profile-mappings><!--    <transcode mimetype="audio/mpeg" using="vlcwav"/> --><!--    <transcode mimetype="audio/mpeg" using="ffmpegwav"/> -->
          <transcode mimetype="video/x-flv" using="ffyoutube"/>
          <transcode mimetype="video/mp4" using="transvideo"/>
          <transcode mimetype="video/x-quicktime" using="transvideo"/>
          <transcode mimetype="application/ogg" using="vlcwav"/>
          <transcode mimetype="audio/x-ms-wma" using="vlcwav"/>
          <transcode mimetype="audio/x-ms-asf" using="vlcwav"/>
          <transcode mimetype="audio/x-flac" using="ffmpegwav"/><!--       <transcode mimetype="audio/mp4" using="ffmpegwav"/> -->
          <transcode mimetype="audio/mp4" using="vlcwav"/>
          <transcode mimetype="audio/x-aac" using="vlcwav"/>
          <transcode mimetype="video/x-msvideo" using="transvideo"/>
          <transcode mimetype="video/x-ms-wmv" using="transvideo"/>
          <transcode mimetype="video/mpeg" using="mpeg2trans"/>
          <transcode mimetype="video/x-matroska" using="transvideo"/>
          <transcode mimetype="image/jpeg" using="rescalejpeg"/>
        </mimetype-profile-mappings>
        <profiles>
          <profile name="transvideo" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <agent command="ffmpegvideo" arguments="%in %out 5900k 256k"/>
            <buffer size="57600000" chunk-size="128000" fill-size="10000000"/>
          </profile>
          <profile name="mpeg2trans" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <hide-original-resource>yes</hide-original-resource>
            <agent command="ffmpegvideo" arguments="%in %out 6000k 256k"/>
            <buffer size="28800000" chunk-size="512000" fill-size="120000"/>
          </profile>
          <profile name="ffmpegwav" enabled="yes" type="external">
            <use-chunked-encoding>no</use-chunked-encoding>
            <mimetype>audio/wav</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <agent command="ffmpegaudio" arguments="%in %out"/>
            <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
          </profile>
          <profile name="vlcwav" enabled="yes" type="external">
            <use-chunked-encoding>no</use-chunked-encoding>
            <mimetype>audio/wav</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <agent command="vlcaudio" arguments="%in %out"/>
            <buffer size="300000" chunk-size="10000" fill-size="32000"/>
          </profile>
          <profile name="ffyoutube" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>no</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
            <agent command="ffmpegyoutube" arguments="%in %out"/>
            <buffer size="14400000" chunk-size="256000" fill-size="80000"/>
          </profile><!--
          <profile name="vlcyoutube" enabled="yes" 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="vlcyoutube" arguments="%in %out"/>
            <buffer size="14400000" chunk-size="256000" fill-size="80000"/>
          </profile>
    -->
          <profile name="rescalejpeg" enabled="yes" type="external">
            <mimetype>image/jpeg</mimetype>
            <accept-url>no</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>no</accept-ogg-theora><!--
        <agent command="convert" arguments="-size 1440x720 %in -auto-orient
                                               -resize 112.5%x100% +profile '*' %out"/>
    -->
            <agent command="transjpeg" arguments="%in %out"/>
            <buffer size="50000" chunk-size="100" fill-size="100"/>
          </profile>
        </profiles>
      </transcoding>
    </config>
     
  19. WarrenC

    WarrenC Cool Member

    23
    0
    Nov 19, 2010
    Hey folks- thanks in advance for any help you can give me.

    Just set up MediaTomb with my HD-24 yesterday. I can see on the files on my PC from my receiver, but I can't do anything with them. There isnt the "X" beside them since I set the transcoding in the .xml file, but when I browse to files, and push "Select" on my remote, nothing happens... no error message on screen, not error message on mediatomb running in terminal.

    Is there something I am missing? Any troubleshooting advice would be really appreciated... is there anything I need to do w/ vlc?
     
  20. MyCatsNameIsBernie

    MyCatsNameIsBernie Cool Member

    14
    0
    Dec 31, 2008
    Dumb question: you said you modified your XML file, but did you also add the transcoding scripts? Are you sure their permissions are correct? Do the scripts run error-free when run from the command line from the mediatomb account?

    You say there is no error message on the MT console, but is anything printed at all? There should be output indicating that the script was run.
     

Share This Page

spam firewall