ubuntuusers.de

Medienserver: Mediatomb + Windows Vista

Status: Ungelöst | Ubuntu-Version: Ubuntu 9.04 (Jaunty Jackalope)
Antworten |

Bassjunky

Anmeldungsdatum:
2. März 2008

Beiträge: 4

Wohnort: Augsburg

Servus zusammen,

vorab: Ich bin noch relativ grün hinter den Ohren. Habe mir das Wochenende Ubuntu installiert und bin noch am rum experimentieren wie ich's denn am liebsten hätte ☺

Da ich eine Playstation³ besitze und noch andere Personen in meinem Haushalt am Netzwerk hängen, wollte ich einen Medienserver auf meinem Rechner einrichten.

Hierfür habe ich den Mediatomb gewählt.

Funktioniert auch ganz gut, die Medien werden freigegeben, mit der Playstation kann ich auch super drauf zugreifen.

Vom Computer meines Bruders aus (Windows Vista Home Premium) nicht ... In der Netzwerk Umgebung erscheint zwar mein Medienserver, aber Windows Media Player 11 will ihn partu nicht erkennen. Ich hatte bis vor kurzem selber noch Windows Vista drauf und habe dort über den Media Player 11 einen Medienserver gehostet. Diesen erkannte der WMP meines Bruders ohne Probleme (also geh ich davon aus, dass WMP11 bei ihm richtig konfiguriert ist). Damit die Playstation3 den Medienserver korrekt erkennt musste man ja bestimmte Zeilen in der Mediatomb config.xml einfügen. Muss man das vielleicht für den Windows Media Player auch machen?

Achja und bei der Playstation3 habe ich folgende zwei Probleme: Erstens kann die Playstation3 scheinbar die von Me-TV erstellten MPEG Aufnahmen nicht abspielen (wenn ich die Dateien anwähle, erscheint nur ein schwarzer Monitor) andere Formate funktionieren.

Zweitens habe ich eine Thumbnail Funktion in Medientomb eingebaut, aber die will auch irgendwie nicht so ganz funktionieren.

Anbei hänge ich meine Mediatomb config.xml an sowie die zwei Transcoding Scripte.

Vielleicht sieht ja einer von euch einen Fehler darin und kann mir helfen ☺

config.xml

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?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="no">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>Flo_Medienserver</name>
    <udn>uuid:3c15f076-fce7-4bcc-af0e-1a33d23d020d</udn>
    <home>/home/florian/.mediatomb</home>
    <webroot>/usr/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
      <mysql enabled="no">Directory
        <host>localhost</host>
        <username>mediatomb</username>
        <database>mediatomb</database>
      </mysql>
    </storage>
    <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
   </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>
		  <import-script>/usr/share/mediatomb/js/import.js</import-script>
		  <!-- Only show PC Directory -->
		 <!-- <virtual-layout type="disabled"> 
		 </virtual-layout> -->
			  
		  
    </scripting>

    <autoscan use-inotify="auto">
      <directory location="/home/florian/Videos" mode="timed" interval="3600" level="full" recursive="yes" hidden-files="no"/>
      <directory location="/home/florian/Musik" mode="timed" interval="3600" level="full" recursive="yes" hidden-files="no"/>
    </autoscan>

    <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"/> 
		      <map from="divx" to="video/x-divx"/>
		      <map from="mkv" to="video/x-matroska"/>
		      <map from="mpg" to="video/mpeg"/>
                      <map from="mpeg" to="video/mpeg"/>
     
                </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"/>
			<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 flash and avi files -->
		  <transcode mimetype="video/x-flv" using="video-common"/>
		  <transcode mimetype="video/x-ms-asf" using="video-common"/>   
		  <transcode mimetype="video/x-divx" using="video-common"/>
		  <transcode mimetype="video/x-matroska" using="video-common"/>
		  
		  <transcode mimetype="audio/x-flac" using="audio-common"/>
		  
		  <!-- 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>
	  
	    <!-- 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="audio-common" enabled="yes" type="external">
	      <mimetype>audio/L16</mimetype>
	      <accept-url>yes</accept-url>
	      <first-resource>yes</first-resource>
	      <hide-original-resource>yes</hide-original-resource>
	      <accept-ogg-theora>no</accept-ogg-theora>
	      <agent command="mediatomb-audio2pcm" arguments="%in %out"/>
	      <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
      <profile name="video-common" 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>
	      <accept-ogg-theora>yes</accept-ogg-theora>
	      <agent command="mediatomb-video2mpeg" arguments="%in %out"/>
	      <buffer size="10485760" chunk-size="262144" fill-size="524288"/>
      </profile>
	  </profiles>
  </transcoding>


</config>    

mediatomb-video2mpeg

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash

VLC_PATH="/usr/bin/vlc"
INPUT="$1"
OUTPUT="$2"
VIDEO_CODEC="mp2v"
VIDEO_BITRATE="4096"
VIDEO_FRAMERATE="25"
AUDIO_CODEC="mpga"
AUDIO_BITRATE="192"
AUDIO_SAMPLERATE="48000"
AUDIO_CHANNELS="2"
FORMAT="ps"

exec "${VLC_PATH}" "${INPUT}" -I dummy --sout="#transcode{vcodec=${VIDEO_CODEC},\
vb=${VIDEO_BITRATE},fps=${VIDEO_FRAMERATE},acodec=${AUDIO_CODEC},ab=${AUDIO_BITRATE},\
samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS},audio-sync,soverlay}:\
standard{access=file,mux=${FORMAT},dst=${OUTPUT}}" vlc://quit

mediatomb-audio2pcm

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/bash

VLC_PATH="/usr/bin/vlc"
INPUT="$1"
OUTPUT="$2"
AUDIO_CODEC="s16b"
AUDIO_BITRATE="192"
AUDIO_SAMPLERATE="44100"
AUDIO_CHANNELS="2"
FORMAT="raw"

exec "${VLC_PATH}" "${INPUT}" -I dummy --sout="#transcode{acodec=${AUDIO_CODEC},\
ab=${AUDIO_BITRATE},samplerate=${AUDIO_SAMPLERATE},channels=${AUDIO_CHANNELS}}:\
standard{access=file,mux=${FORMAT},dst=${OUTPUT}}" vlc://quit
Antworten |