Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: transcoding ps3 firmware 2.35 mediatomb

  1. #1
    Join Date
    May 2006
    Beans
    23

    transcoding ps3 firmware 2.35 mediatomb

    does anyone have transcoding working flawlessly with the ps3 and mediatomb?

  2. #2
    Join Date
    Jan 2006
    Beans
    63

    Re: transcoding ps3 firmware 2.35 mediatomb

    Bump....

    <I believe I have it working but not sure if I have it optimized>

  3. #3
    Join Date
    Dec 2006
    Beans
    Hidden!

    Smile Re: transcoding ps3 firmware 2.35 mediatomb

    Works very well here. Aside from not being able to seek during playback.

    But not much that can be done about that, except converting everything to a supported format permanently.

    Anyways here's my config.xml in case it helps anyone, this of course is specific to my needs and may not work so well for others.

    This is set up to transcode all flash files and any avi files which are not compatible with the PS3, avi's which are compatible are ignored, also provides thumbnails for all videos and ignores any files which have an extension that isn't listed. I have no need for ogg or flac transcoding but also no reason to believe that just uncommenting the relevant entry and enabling the profile under it wouldn't work.


    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>
    
    	<port>?</port>
    
        <ui enabled="yes">
          <accounts enabled="yes" session-timeout="30">
            <account user="mediatomb" password="mediatomb"/>
          </accounts>
        </ui>
    
        <name>MediaTomb</name>
        <udn>?</udn>
        <home>/var/lib/mediatomb</home>
        <webroot>/usr/share/mediatomb/web</webroot>
    
        <storage>
          <sqlite3 enabled="no">
            <database-file>sqlite3.db</database-file>
          </sqlite3>
          <mysql enabled="yes">
            <host>?</host>
    	<port>?</port>
            <username>?</username>
    	<password>?</password>
            <database>?</database>
          </mysql>
        </storage>
    
    <!-- PS3 requires "yes" -->
        <protocolInfo extend="yes"/>
    
      </server>
    
    
      <import hidden-files="no">
    
    	<autoscan use-inotify="auto">
    		<directory location="/Videos" mode="inotify" recursive="yes" hidden-files="no" />
    		<directory location="/Music" mode="inotify" recursive="yes" hidden-files="no" />
    		<directory location="/Pictures" mode="inotify" recursive="yes" hidden-files="no" />
    	</autoscan>
    
        <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>
    
    <!-- Only show PC Directory -->
          <virtual-layout type="disabled">
    
            <import-script>/usr/share/mediatomb/js/import.js</import-script>
          </virtual-layout>
        </scripting>
    
    
        <mappings>
    
    <!-- Don't import anything not listed here since it's pointless -->
          <extension-mimetype ignore-unknown="yes">
    
            <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"/>
    
    <!-- List images so they get imported -->
    	<map from="jpg" to="image/jpeg" />
    	<map from="jpeg" to="image/jpeg" />
    	<map from="png" to="image/png" />
    	<map from="svg" to="image/svg" />
    
    <!-- Added for PS3 DiVX support -->
            <map from="divx" to="video/x-divx"/>
    	<map from="avi" to="video/x-divx"/> 
          </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"/>
            <treat mimetype="video/x-divx" as="avi"/>
          </mimetype-contenttype>
    
        </mappings>
    
      </import>
    
      <transcoding enabled="yes">
    
        <mimetype-profile-mappings>
    
    <!-- Transcode flash and avi files -->
          <transcode mimetype="video/x-flv" using="vlcmpeg"/>
          <transcode mimetype="video/x-ms-asf" using="vlcmpeg"/>	
          <transcode mimetype="video/x-divx" using="vlcmpeg"/>
    
    <!--  <transcode mimetype="application/ogg" using="vlcmpeg"/>
          <transcode mimetype="application/ogg" using="oggflac2raw"/>
          <transcode mimetype="audio/x-flac" using="oggflac2raw"/>  -->
    
    <!-- Added for PS3 thumbnail support -->
          <transcode mimetype="video/x-divx" using="video-thumbnail"/>
          <transcode mimetype="video/x-avi" using="video-thumbnail"/>
        </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 -f %out %in"/>
            <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
          </profile>
    
    <!-- Added for PS3 thumbnail support -->
          <profile name="video-thumbnail" enabled="yes" type="external">
            <mimetype>image/jpeg</mimetype>
            <accept-url>yes</accept-url>
            <thumbnail>yes</thumbnail>
            <resolution>128x128</resolution>
            <agent command="ffmpegthumbnailer" arguments="-i %in -o %out -s 128"/>
            <buffer size="524288" chunk-size="512" fill-size="1024"/>
          </profile>
    
          <profile name="vlcmpeg" enabled="yes" type="external">
    
    <!-- Don't transcode newer avi's which are supported -->
    	<avi-fourcc-list mode="ignore">
              <fourcc>DX50</fourcc>
            </avi-fourcc-list>
    
            <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>
    BTW after editing make sure this file is correct/valid, in my experience if it's not mediatomb will still run but will use up all available RAM and most available swap.
    Last edited by Dies; June 21st, 2008 at 01:55 AM. Reason: had posted old config...

  4. #4
    Join Date
    Feb 2006
    Location
    Melbourne
    Beans
    40
    Distro
    Ubuntu 6.06 Dapper

    Re: transcoding ps3 firmware 2.35 mediatomb

    hey guys
    everytime i try to transcode i get this message
    2008-06-28 19:26:48 INFO: Arguments: -I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25, aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,ch annels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit
    VLC media player 0.8.6e Janus
    starting VLC root wrapper... using UID 1000 (csk)
    [00000289] dummy interface: using the dummy interface module...
    [00000306] access_output_file private error: cannot open `/tmp//mt_transcode_EQAMDU' (Permission denied)
    [00000304] stream_out_standard private error: no suitable sout access module for `file/ps:///tmp//mt_transcode_EQAMDU'
    [00000301] stream_out_transcode private error: cannot create chain
    [00000300] main stream output error: stream chain failed for `transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25, aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,ch annels=2}:standard{access=file,mux=ps,dst=/tmp//mt_transcode_EQAMDU}'
    [00000298] main input error: cannot start stream output instance, aborting
    [00000312] dummy demuxer: command `quit'
    [00000283] main playlist: stopping playback
    this happens regardless of whether i use the code above or the one which originally came with mediatomb. I think the error seems to be here
    [00000306] access_output_file private error: cannot open `/tmp//mt_transcode_EQAMDU' (Permission denied)
    I tried doing things like changing the permissions for vlc to 'read and write' but to no avail. Help!!

  5. #5
    Join Date
    Jan 2007
    Beans
    117
    Distro
    Ubuntu

    Re: transcoding ps3 firmware 2.35 mediatomb

    I can't even get my .ogg files to show up, much less try to transcode them. Anyone got any ideas about that?

  6. #6
    Join Date
    Jan 2007
    Beans
    56

    Re: transcoding ps3 firmware 2.35 mediatomb

    Ardrias,

    I suspect the reason why your Ogg files aren't showing up is that MT has assigned the wrong UPnP class to them. You can check the UPnP class via the MT interface. It should be set to "object.item.audioItem.musicTrack", but instead it's set to "object.item". This is a bug in MT that can be fixed by adding <map from="application/ogg" to="object.item.audioItem.musicTrack"/> to the <mimetype-upnpclass> section of config.xml.

    However even if you did this you still would not be able to transcode them, as the current version of MT can't stream transcoded audio to the PS3. This has been fixed in the SVN version of MT.
    Last edited by amak79; June 29th, 2008 at 12:23 PM.

  7. #7
    Join Date
    Jan 2007
    Beans
    56

    Re: transcoding ps3 firmware 2.35 mediatomb

    csk,

    The permission denied message means the user that is running MediaTomb doesn't not have sufficient permissions to access /tmp. MediaTomb must be able to write to /tmp for transcoding to work. You need to check the permissions of /tmp, it is usually world writeable.
    Last edited by amak79; June 29th, 2008 at 12:18 PM.

  8. #8
    Join Date
    Jan 2007
    Beans
    117
    Distro
    Ubuntu

    Re: transcoding ps3 firmware 2.35 mediatomb

    Alright, I've just checked out and built the latest Mediatomb. I also did the mentioned fix for the PS3 to recognize OGG files. I had tried that before, but I think I might have forgot to rescan the directories.

    Anyhow, I still cant figure out how to make it transcode OGG audio to the PS3. I've followed the Mediatomb wiki about transcoding, to transcode using VLC, but it just refuses to work.

    What am I doing wrong?

  9. #9
    Join Date
    Sep 2006
    Beans
    2
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: transcoding ps3 firmware 2.35 mediatomb

    Just wanted to thank Dies for his config.xml, I've been playing around with this for a few weeks with very little luck, but now it is working

    Thanks!

  10. #10
    Join Date
    Jan 2007
    Beans
    56

    Re: transcoding ps3 firmware 2.35 mediatomb

    Ardrias,

    Do the Ogg files show up in your PS3 after you added the fix to the config? If you added the fix after you imported your Ogg files, then you will need to remove and re-import the Ogg files for the fix to take effect.

    If you still can't get it to work, then please post your config.xml. Can you also post any useful info from the MT log file or messages printed to the console.
    Last edited by amak79; July 4th, 2008 at 03:16 PM.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •