<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hoschie&#039;s Blog &#187; mediatomb</title>
	<atom:link href="http://hoschie.org/tag/mediatomb/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoschie.org</link>
	<description>What has this world come to ..</description>
	<lastBuildDate>Sat, 13 Mar 2010 14:30:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>upnp server mediatomb for divx, xvid and mkv playback on PS3 .</title>
		<link>http://hoschie.org/2008/03/upnp-server-mediatomb-for-divx-xvid-and-mkv-playback-on-ps3/</link>
		<comments>http://hoschie.org/2008/03/upnp-server-mediatomb-for-divx-xvid-and-mkv-playback-on-ps3/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 17:57:36 +0000</pubDate>
		<dc:creator>Hoschie</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[General Linux]]></category>
		<category><![CDATA[Gentoo Linux]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[mediatomb]]></category>
		<category><![CDATA[mkv]]></category>

		<guid isPermaLink="false">http://hoschie.org/wordpress/?p=64</guid>
		<description><![CDATA[Update 27 December 09 - minor changes due to new blog system Update 01 May 09 Referring to the &#8220;ffmpegthumbnailer&#8221; .. it is not a script. It is a real tool which can be found in gentoo portage or here Update 09 December 08 As there still people coming to this page, i posted my [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong>Update 27 December 09 </strong>- minor changes due to new blog system</li>
<li><strong>Update 01 May 09</strong> Referring to the &#8220;ffmpegthumbnailer&#8221; .. it is not a script. It is a real tool which can be found in gentoo portage or <a href="http://code.google.com/p/ffmpegthumbnailer/downloads/list">here</a> <img src='http://hoschie.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><strong>Update 09 December 08</strong> As there still people coming to this page, i posted my recent WORKING settings to allow for mkv playback as well as the missing bash script.</li>
<li><strong>Update 15 Oktober 08 </strong> <a href="http://mediatomb.cc/dokuwiki/transcoding:transcoding" target="_blank">mediatomb.cc</a> got a nice wiki which has alot more details howto setup different kinds of transcodings. Please check them out.</li>
<li><strong> Update 28 July 08 </strong> Sony Firmware 2.35 finally fixed that problem.</li>
</ul>
<p>It took a while, but the software (mediatomb) as well as the client (ps3) are finally able to talk to each other. It works almost out of the box with the recent 0.11.0 release for xvid and divx playback on the PS3.</p>
<p>Mediatomb has now the ability to transcode in realtime, allowing you to play other files like matroska .mkv files as well. Mediatomb can forward the file to play to external applications based on mimetype.</p>
<p>A fine howto to get this stuff going under Gentoo can be found <a href="http://gentoo-wiki.com/HOWTO_MediaTomb" target="_blank">That includes a few external scripts for this transcoding stuff. I am using the ffmpeg version (video) for matroska files.</a></p>
<p>my config.xml looks like this:&gt;</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;</p>
<div id="_mcePaste">&lt;config version=&#8221;1&#8243; xmlns=&#8221;http://mediatomb.cc/config/1&#8243; xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=&#8221;http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd&#8221;&gt;</div>
<div id="_mcePaste">&lt;server&gt;</div>
<div id="_mcePaste">&lt;ui enabled=&#8221;yes&#8221;&gt;</div>
<div id="_mcePaste">&lt;accounts enabled=&#8221;no&#8221; session-timeout=&#8221;30&#8243;&gt;</div>
<div id="_mcePaste">&lt;account user=&#8221;mediatomb&#8221; password=&#8221;mediatomb&#8221;/&gt;</div>
<div id="_mcePaste">&lt;/accounts&gt;</div>
<div id="_mcePaste">&lt;/ui&gt;</div>
<div id="_mcePaste">&lt;name&gt;MediaTomb&lt;/name&gt;</div>
<div id="_mcePaste">&lt;udn&gt;uuid:eef9e7bf-b63f-4248-8add-a33086ac49d8&lt;/udn&gt;</div>
<div id="_mcePaste">&lt;home&gt;/etc/mediatomb&lt;/home&gt;</div>
<div id="_mcePaste">&lt;webroot&gt;/usr/local/share/mediatomb/web&lt;/webroot&gt;</div>
<div id="_mcePaste">&lt;storage&gt;</div>
<div id="_mcePaste">&lt;sqlite3 enabled=&#8221;no&#8221;&gt;</div>
<div id="_mcePaste">&lt;database-file&gt;mediatomb.db&lt;/database-file&gt;</div>
<div id="_mcePaste">&lt;/sqlite3&gt;</div>
<div id="_mcePaste">&lt;mysql enabled=&#8221;yes&#8221;&gt;</div>
<div id="_mcePaste">&lt;host&gt;localhost&lt;/host&gt;</div>
<div id="_mcePaste">&lt;username&gt;mediatomb&lt;/username&gt;</div>
<div id="_mcePaste">&lt;database&gt;mediatomb&lt;/database&gt;</div>
<div id="_mcePaste">&lt;password&gt;YOURPASSWORDHERE&lt;/password&gt;</div>
<div id="_mcePaste">&lt;/mysql&gt;</div>
<div id="_mcePaste">&lt;/storage&gt;</div>
<div id="_mcePaste">&lt;protocolInfo extend=&#8221;yes&#8221;/&gt;&lt;!&#8211; For PS3 support change to &#8220;yes&#8221; &#8211;&gt;</div>
<div id="_mcePaste">&lt;!&#8211;</div>
<div id="_mcePaste">Uncomment the lines below to get rid of jerky avi playback on the</div>
<div id="_mcePaste">DSM320 or to enable subtitles support on the DSM units</div>
<div id="_mcePaste">&#8211;&gt;</div>
<div id="_mcePaste">&lt;!&#8211;</div>
<div id="_mcePaste">&lt;custom-http-headers&gt;</div>
<div id="_mcePaste">&lt;add header=&#8221;X-User-Agent: redsonic&#8221;/&gt;</div>
<div id="_mcePaste">&lt;/custom-http-headers&gt;</div>
<div id="_mcePaste">&lt;manufacturerURL&gt;redsonic.com&lt;/manufacturerURL&gt;</div>
<div id="_mcePaste">&lt;modelNumber&gt;105&lt;/modelNumber&gt;</div>
<div id="_mcePaste">&#8211;&gt;</div>
<div id="_mcePaste">&lt;!&#8211; Uncomment the line below if you have a Telegent TG100 &#8211;&gt;</div>
<div id="_mcePaste">&lt;!&#8211;</div>
<div id="_mcePaste">&lt;upnp-string-limit&gt;101&lt;/upnp-string-limit&gt;</div>
<div id="_mcePaste">&#8211;&gt;</div>
<div id="_mcePaste">&lt;/server&gt;</div>
<div id="_mcePaste">&lt;import hidden-files=&#8221;no&#8221;&gt;</div>
<div id="_mcePaste">&lt;scripting script-charset=&#8221;UTF-8&#8243;&gt;</div>
<div id="_mcePaste">&lt;virtual-layout type=&#8221;builtin&#8221;/&gt;</div>
<div id="_mcePaste">&lt;/scripting&gt;</div>
<div id="_mcePaste">&lt;mappings&gt;</div>
<div id="_mcePaste">&lt;extension-mimetype ignore-unknown=&#8221;no&#8221;&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;mp3&#8243; to=&#8221;audio/mpeg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;ogg&#8221; to=&#8221;application/ogg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;asf&#8221; to=&#8221;video/x-ms-asf&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;asx&#8221; to=&#8221;video/x-ms-asf&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;wma&#8221; to=&#8221;audio/x-ms-wma&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;wax&#8221; to=&#8221;audio/x-ms-wax&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;wmv&#8221; to=&#8221;video/x-ms-wmv&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;wvx&#8221; to=&#8221;video/x-ms-wvx&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;wm&#8221; to=&#8221;video/x-ms-wm&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;wmx&#8221; to=&#8221;video/x-ms-wmx&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;m3u&#8221; to=&#8221;audio/x-mpegurl&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;pls&#8221; to=&#8221;audio/x-scpls&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;flv&#8221; to=&#8221;video/x-flv&#8221;/&gt;</div>
<div id="_mcePaste">&lt;!&#8211; Uncomment the line below for PS3 divx support &#8211;&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;avi&#8221; to=&#8221;video/x-divx&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;divx&#8221; to=&#8221;video/x-divx&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;mkv&#8221; to=&#8221;video/x-matroska&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;mov&#8221; to=&#8221;video/quicktime&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;qt&#8221; to=&#8221;video/quicktime&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;mpg&#8221; to=&#8221;video/mpeg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;mpeg&#8221; to=&#8221;video/mpeg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;!&#8211; Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 &#8211;&gt;</div>
<div id="_mcePaste">&lt;!&#8211; &lt;map from=&#8221;avi&#8221; to=&#8221;video/avi&#8221;/&gt; &#8211;&gt;</div>
<div id="_mcePaste">&lt;/extension-mimetype&gt;</div>
<div id="_mcePaste">&lt;mimetype-upnpclass&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;audio/*&#8221; to=&#8221;object.item.audioItem.musicTrack&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;video/*&#8221; to=&#8221;object.item.videoItem&#8221;/&gt;</div>
<div id="_mcePaste">&lt;map from=&#8221;image/*&#8221; to=&#8221;object.item.imageItem&#8221;/&gt;</div>
<div id="_mcePaste">&lt;/mimetype-upnpclass&gt;</div>
<div id="_mcePaste">&lt;mimetype-contenttype&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/mpeg&#8221; as=&#8221;mp3&#8243;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;application/ogg&#8221; as=&#8221;ogg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/x-flac&#8221; as=&#8221;flac&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;image/jpeg&#8221; as=&#8221;jpg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/x-mpegurl&#8221; as=&#8221;playlist&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/x-scpls&#8221; as=&#8221;playlist&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/x-wav&#8221; as=&#8221;pcm&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/L16&#8243; as=&#8221;pcm&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;video/x-msvideo&#8221; as=&#8221;avi&#8221;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;video/mp4&#8243; as=&#8221;mp4&#8243;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;audio/mp4&#8243; as=&#8221;mp4&#8243;/&gt;</div>
<div id="_mcePaste">&lt;treat mimetype=&#8221;video/x-divx&#8221; as=&#8221;avi&#8221;/&gt;</div>
<div id="_mcePaste">&lt;/mimetype-contenttype&gt;</div>
<div id="_mcePaste">&lt;/mappings&gt;</div>
<div id="_mcePaste">&lt;/import&gt;</div>
<div id="_mcePaste">&lt;transcoding enabled=&#8221;yes&#8221;&gt;</div>
<div id="_mcePaste">&lt;mimetype-profile-mappings&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;video/x-flv&#8221; using=&#8221;vlcmpeg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;application/ogg&#8221; using=&#8221;vlcmpeg&#8221;/&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;application/ogg&#8221; using=&#8221;oggflac2raw&#8221;/&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;audio/x-flac&#8221; using=&#8221;audio-common&#8221;/&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;video/x-divx&#8221; using=&#8221;video-common&#8221;/&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;video/x-matroska&#8221; using=&#8221;video-common&#8221;/&gt;</div>
<div id="_mcePaste">&lt;transcode mimetype=&#8221;video/quicktime&#8221; using=&#8221;video-common&#8221;/&gt;</div>
<div id="_mcePaste">&lt;/mimetype-profile-mappings&gt;</div>
<div id="_mcePaste">&lt;profiles&gt;</div>
<div id="_mcePaste">&lt;profile name=&#8221;oggflac2raw&#8221; enabled=&#8221;yes&#8221; type=&#8221;external&#8221;&gt;</div>
<div id="_mcePaste">&lt;mimetype&gt;audio/L16&lt;/mimetype&gt;</div>
<div id="_mcePaste">&lt;accept-url&gt;no&lt;/accept-url&gt;</div>
<div id="_mcePaste">&lt;first-resource&gt;yes&lt;/first-resource&gt;</div>
<div id="_mcePaste">&lt;accept-ogg-theora&gt;no&lt;/accept-ogg-theora&gt;</div>
<div id="_mcePaste">&lt;agent command=&#8221;ogg123&#8243; arguments=&#8221;-d raw -f %out %in&#8221;/&gt;</div>
<div id="_mcePaste">&lt;buffer size=&#8221;1048576&#8243; chunk-size=&#8221;131072&#8243; fill-size=&#8221;262144&#8243;/&gt;</div>
<div id="_mcePaste">&lt;/profile&gt;</div>
<div id="_mcePaste">&lt;profile name=&#8221;vlcmpeg&#8221; enabled=&#8221;yes&#8221; type=&#8221;external&#8221;&gt;</div>
<div id="_mcePaste">&lt;mimetype&gt;video/mpeg&lt;/mimetype&gt;</div>
<div id="_mcePaste">&lt;accept-url&gt;yes&lt;/accept-url&gt;</div>
<div id="_mcePaste">&lt;first-resource&gt;yes&lt;/first-resource&gt;</div>
<div id="_mcePaste">&lt;accept-ogg-theora&gt;yes&lt;/accept-ogg-theora&gt;</div>
<div id="_mcePaste">&lt;agent command=&#8221;vlc&#8221; arguments=&#8221;-I dummy %in &#8211;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&#8221;/&gt;</div>
<div id="_mcePaste">&lt;buffer size=&#8221;14400000&#8243; chunk-size=&#8221;512000&#8243; fill-size=&#8221;120000&#8243;/&gt;</div>
<div id="_mcePaste">&lt;/profile&gt;</div>
<div id="_mcePaste">&lt;profile name=&#8221;audio-common&#8221; enabled=&#8221;yes&#8221; type=&#8221;external&#8221;&gt;</div>
<div id="_mcePaste">&lt;mimetype&gt;audio/x-wav&lt;/mimetype&gt;</div>
<div id="_mcePaste">&lt;accept-url&gt;yes&lt;/accept-url&gt;</div>
<div id="_mcePaste">&lt;first-resource&gt;yes&lt;/first-resource&gt;</div>
<div id="_mcePaste">&lt;accept-ogg-theora&gt;no&lt;/accept-ogg-theora&gt;</div>
<div id="_mcePaste">&lt;agent command=&#8221;mediatomb-transcode-audio&#8221; arguments=&#8221;%in %out&#8221;/&gt;</div>
<div id="_mcePaste">&lt;buffer size=&#8221;1048576&#8243; chunk-size=&#8221;131072&#8243; fill-size=&#8221;262144&#8243;/&gt;</div>
<div id="_mcePaste">&lt;/profile&gt;</div>
<div id="_mcePaste">&lt;profile name=&#8221;video-common&#8221; enabled=&#8221;yes&#8221; type=&#8221;external&#8221;&gt;</div>
<div id="_mcePaste">&lt;mimetype&gt;video/mpeg&lt;/mimetype&gt;</div>
<div id="_mcePaste">&lt;accept-url&gt;yes&lt;/accept-url&gt;</div>
<div id="_mcePaste">&lt;first-resource&gt;yes&lt;/first-resource&gt;</div>
<div id="_mcePaste">&lt;accept-ogg-theora&gt;yes&lt;/accept-ogg-theora&gt;</div>
<div id="_mcePaste">&lt;agent command=&#8221;mediatomb-transcode-video-ffmpeg&#8221; arguments=&#8221;%in %out&#8221;/&gt;</div>
<div id="_mcePaste">&lt;buffer size=&#8221;14400000&#8243; chunk-size=&#8221;512000&#8243; fill-size=&#8221;120000&#8243;/&gt;</div>
<div id="_mcePaste">&lt;/profile&gt;</div>
<div id="_mcePaste">&lt;/profiles&gt;</div>
<div id="_mcePaste">&lt;/transcoding&gt;</div>
<div id="_mcePaste">&lt;/config&gt;</div>
<p><code><br />
# cat /usr/bin/mediatomb-transcode-video-ffmpeg<br />
INPUT="$1"<br />
OUTPUT="$2"<br />
VIDEO_CODEC="mpeg2video"<br />
VIDEO_BITRATE="4096k"<br />
AUDIO_CODEC="mp2"<br />
AUDIO_BITRATE="192k"<br />
AUDIO_SAMPLERATE="48000"<br />
AUDIO_CHANNELS="2"<br />
FORMAT="dvd"<br />
exec /usr/bin/ffmpeg -threads 2 -i "${INPUT}" -vcodec ${VIDEO_CODEC} -b ${VIDEO_BITRATE} \<br />
-acodec ${AUDIO_CODEC} -ab ${AUDIO_BITRATE} -ar ${AUDIO_SAMPLERATE} -ac ${AUDIO_CHANNELS} \<br />
-f ${FORMAT} - &gt; "${OUTPUT}" #2&gt;/dev/null<br />
</code></p>
<p><a href="http://gentoo-wiki.com/HOWTO_MediaTomb" target="_blank">Hope that helps you guys out there <img src='http://hoschie.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://hoschie.org/2008/03/upnp-server-mediatomb-for-divx-xvid-and-mkv-playback-on-ps3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
