Ik heb volgens mij bijna ALLES gebruikt wat ik maar kan bedenken. Eerst was het een chaos maar toen ben ik alles stap voor stap gaan uitvoeren.
Ik wil namelijk volgende formule oplossen [Mediatomb on Linux NAS + Playstation 3 + Big ass screen = Happy face!!]
*.gif speelt dan NIET af op een manier van dat het beweegt.
*.png doet het
*.jpg doet het
*.avi doet het
*.mkv doet het maar niet
Ik heb handleidingen gevolgd en zo mijn config.xml op aangepast nu krijg ik constant
shinger@K-Pc:~$ mediatomb
MediaTomb UPnP Server version 0.12.0 - http://mediatomb.cc/
===============================================================================
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2
2010-08-07 15:42:48 INFO: Loading configuration from: /home/shinger/.mediatomb/config.xml
2010-08-07 15:42:48 INFO: Checking configuration...
2010-08-07 15:42:48 INFO: Setting filesystem import charset to UTF-8
2010-08-07 15:42:48 INFO: Setting metadata import charset to ISO-8859-15
2010-08-07 15:42:48 INFO: Setting playlist charset to UTF-8
2010-08-07 15:42:49 ERROR: error in configuration, transcoding profile "video-common" could not find transcoding command mediatomb-transcode-video-ffmpeg in $PATH
script "mediatomb-transcode-video-ffmpeg" deze bevindt zich in /usr/local/bin/
#!/bin/bash
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mpeg2video"
VIDEO_BITRATE="4096k"
AUDIO_CODEC="mp2"
AUDIO_BITRATE="192k"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="dvd"
exec /usr/bin/ffmpeg -threads 2 -i "${INPUT}" -vcodec ${VIDEO_CODEC} -b ${VIDEO_BITRATE} \
-acodec ${AUDIO_CODEC} -ab ${AUDIO_BITRATE} -ar ${AUDIO_SAMPLERATE} -ac ${AUDIO_CHANNELS} \
-f ${FORMAT} - > "${OUTPUT}" #2>/dev/null
Mijn "config.xml" bestand
<?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">
<!--
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
information on creating and using config.xml configration files.
-->
<server>
<ui enabled="yes" show-tooltips="yes">
<accounts enabled="yes" session-timeout="30">
<account user="mediatomb" password="mediatomb"/>
</accounts>
</ui>
<port>50000</port>
<ip>192.168.1.200</ip>
<name>Testserver</name>
<udn>uuid:7c29c0c8-f211-4ee1-aca9-59ea7abf1ffd</udn>
<home>/var/lib/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>root</username>
<password></password>
<database>mediatomb</database>
</mysql>
</storage>
<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
<pc-directory upnp-hide="yes"/>
<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>
</ffmpegthumbnailer>
<mark-played-items enabled="yes" suppress-cds-updates="yes">
<string mode="prepend">*</string>
</mark-played-items>
</extended-runtime-options>
</server>
<import hidden-files="yes">
<filesystem-charset>UTF-8</filesystem-charset>
<metadata-charset>ISO-8859-15</metadata-charset>
<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" case-sensitive="no">
<!-- Audio part -->
<map from="mp3" to="audio/mpeg"/>
<map from="wma" to="audio/x-ms-wma"/>
<map from="wax" to="audio/x-ms-wax"/>
<map from="wmx" to="video/x-ms-wmx"/>
<map from="m3u" to="audio/x-mpegurl"/>
<map from="pls" to="audio/x-scpls"/>
<map from="aac" to="audio/x-aac"/>
<map from="m4a" to="audio/mp4"/>
<map from="wav" to="audio/wav"/>
<!--Video part -->
<map from="avi" to="video/divx"/>
<map from="flv" to="video/x-flv"/>
<map from="mka" to="audio/x-matroska"/>
<map from="mkv" to="video/x-matroska"/>
<!-- still commented
<map from="ogg" to="application/ogg"/>
<map from="asf" to="video/x-ms-asf"/>
<map from="asx" to="video/x-ms-asf"/>
<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="ts" to="video/mpeg"/>
<map from="vob" to="video/mpeg"/>
<map from="mpg" to="video/mpeg"/>
<map from="srt" to="video/subtitle"/>
<map from="sub" to="video/subtitle"/>
<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"/>
<map from="application/ogg" to="object.item.audioItem.musicTrack"/>
</mimetype-upnpclass>
<mimetype-contenttype>
<!--Audio part-->
<treat mimetype="audio/mpeg" as="mp3"/>
<treat mimetype="audio/x-wav" as="pcm"/>
<treat mimetype="audio/L16" as="pcm"/>
<treat mimetype="audio/x-mpegurl" as="playlist"/>
<treat mimetype="audio/x-scpls" as="playlist"/>
<treat mimetype="audio/mp4" as="mp4"/>
<treat mimetype="audio/x-flac" as="flac"/>
<treat mimetype="audio/x-matroska" as="mka"/>
<!--Video part -->
<treat mimetype="video/x-msvideo" as="avi"/>
<treat mimetype="video/x-matroska" as="mkv"/>
<!-- Still commented
<treat mimetype="video/mp4" as="mp4"/>
<treat mimetype="video/quicktime" as="mov"/>
<treat mimetype="video/x-quicktime" as="mov"/>
<treat mimetype="application/x-iso9660" as="dvd"/>
<treat mimetype="application/x-iso9660-image" as="dvd"/>
<treat mimetype="application/ogg" as="ogg"/>
<treat mimetype="image/jpeg" as="jpg"/>
-->
</mimetype-contenttype>
</mappings>
<!-- still commented
<online-content fetch-buffer-size="262144" fetch-buffer-fill-size="0">
Make sure to setup a transcoding profile for flv
<YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="exclude" format="mp4" hd="yes">
<favorites user="shinger86"/>
<uploads user="RayWilliamJohnson"/>
<standardfeed feed="recently_featured" time-range="today"/>
</YouTube>
<Weborama enabled="yes" refresh="28800" update-at-start="no">
<playlist name="Active" type="playlist" mood="active"/>
<playlist name="Metal" type="playlist">
<filter>
<genres>metal</genres>
</filter>
</playlist>
</Weborama>
<AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/>
</online-content>
-->
</import>
<thumbnail>yes</thumbnail>
<transcoding enabled="yes" fetch-buffer-size="262144" fetch-buffer-fill-size="0">
<mimetype-profile-mappings>
<!--Audio part -->
<transcode mimetype="audio/mpeg" using="vlcwav"/>
<transcode mimetype="audio/x-ms-wma" using="vlcwav"/>
<transcode mimetype="audio/x-ms-asf" using="vlcwav"/>
<transcode mimetype="audio/x-aac" using="vlcwav"/>
<transcode mimetype="audio/mp4" using="vlcwav"/>
<!-- Video part -->
<transcode mimetype="video/x-matroska" using="video-common"/>
<transcode mimetype="video/x-msvideo" using="video-generic"/>
<!-- commented
<transcode mimetype="video/x-flv" using="vlcyoutube"/>
<transcode mimetype="video/mp4" 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="video/x-quicktime" using="video-generic"/>
<transcode mimetype="video/quicktime" using="video-generic"/>
<transcode mimetype="image/jpeg" using="rescalejpeg"/>
<transcode mimetype="application/ogg" using="vlcwav"/>
pcm-output
<transcode mimetype="application/ogg" using="2pcm"/>
<transcode mimetype="video/subtitle" using="mencoder-sub"/>-->
</mimetype-profile-mappings>
<profiles>
<profile name="vlcwav" enabled="yes" type="external">
<mimetype>audio/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=mp1v,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>
<profile name="video-common" enabled="yes" type="external">
<mimetype>video/x-matroska</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="mediatomb-transcode-video-ffmpeg" arguments="%in %out"/>
<buffer size="10485760" chunk-size="262144" fill-size="524288"/>
</profile>
<!-- steill commented
<profile name="video-generic" enabled="yes" type="external">
<avi-fourcc-list mode="ignore">
<fourcc>DX50</fourcc>
<fourcc>DM4V</fourcc>
<fourcc>M4S2</fourcc>
</avi-fourcc-list>
<mimetype>video/mpeg</mimetype>
<accept-url>yes</accept-url>
<first-resource>yes</first-resource>
<hide-original-resource>yes</hide-original-resource>
<accept-ogg-theora>yes</accept-ogg-theora>
<agent command="mediatomb-video-generic" arguments="%in %out"/>
<buffer size="1048576" chunk-size="26214" fill-size="52428"/>
</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 1080x720 %in -auto-orient
-resize 112.5%x100% +profile '*' %out"/>
<buffer size="50000" chunk-size="100" fill-size="100"/>
</profile>
<profile name="mencoder-sub" enabled="yes" type="external">
<mimetype>video/subtitle</mimetype>
<agent command="mediatomb-mencoder-srt" arguments="%in %out"/>
</profile>
-->
</profiles>
</transcoding>
</config>