个人工具
登录
查看“UbuntuHelp:MediaTomb”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:MediaTomb”的源代码
来自Ubuntu中文
←
UbuntuHelp:MediaTomb
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/MediaTomb}} {{Languages|UbuntuHelp:MediaTomb}} == MediaTomb UPnP Media Server == == Introduction == "MediaTomb is an open source (GPL) UPnP MediaServer with a nice web user interface, it allows you to stream your digital media through your home network and listen to/watch it on a variety of UPnP compatible devices." Website: http://mediatomb.cc/ == Installation Instructions == If you are using Ubuntu 8.04 (Hardy Heron) or later, install the [[UbuntuHelp:apt:mediatomb|''mediatomb'']] package from the Universe repository using the previous link or your preferred package manager (e.g. Synaptic Package Manager, apt-get, etc.). If you are using an earlier version of Ubuntu, you should follow the instructions on the MediaTomb website to add the [http://mediatomb.cc/pages/download#debian_ubuntu MediaTomb repository] to your software sources. == Setup == Depending on the UPnP client you will be using to play media from your MediaTomb UPnP server, you may need to edit the MediaTomb configuration file. The following terminal command will open the configuration file for editing on Ubuntu, Kubuntu, or Xubuntu. <pre><nowiki> sudo nano /etc/mediatomb/config.xml </nowiki></pre> Alternatively, you can use a GUI text editor. * Ubuntu (gedit) <pre><nowiki> gksu gedit /etc/mediatomb/config.xml </nowiki></pre> * Kubuntu (kate) <pre><nowiki> kdesu kate /etc/mediatomb/config.xml </nowiki></pre> * Xubuntu (mousepad) <pre><nowiki> gksu mousepad /etc/mediatomb/config.xml </nowiki></pre> To uncomment XML code, remove the "<!--" and "-->" from before and after the commented text. The following code is shown as it would appear after the necessary edits. === Playstation 3 (PS3) Compatibility === <pre><nowiki> <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" --> </nowiki></pre> <pre><nowiki> <!-- Uncomment the line below for PS3 divx support --> <map from="avi" to="video/divx"/> </nowiki></pre> === D-Link Media Player Compatibility === <pre><nowiki> <!-- 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> </nowiki></pre> <pre><nowiki> <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --> <map from="avi" to="video/avi"/> </nowiki></pre> === ZyXEL DMA-1000 Compatibility === <pre><nowiki> <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --> <map from="avi" to="video/avi"/> </nowiki></pre> == Getting Started With MediaTomb == === Running MediaTomb as a Service === MediaTomb will by default run as a service at boot. You can start and stop the service manually from the terminal using the following commands. * Stop the MediaTomb service <pre><nowiki> sudo /etc/init.d/mediatomb stop </nowiki></pre> * Start the MediaTomb service <pre><nowiki> sudo /etc/init.d/mediatomb start </nowiki></pre> * Restart the MediaTomb service <pre><nowiki> sudo /etc/init.d/mediatomb restart </nowiki></pre> === Running MediaTomb Manually === You may run MediaTomb manually, but you must first remove the service using the following terminal commands. <pre><nowiki> sudo mv /etc/init.d/mediatomb /etc/init.d/mediatomb.backup sudo update-rc.d mediatomb remove </nowiki></pre> Once the service is removed, you may run MediaTomb using the following command in the terminal. <pre><nowiki> mediatomb </nowiki></pre> === Controlling MediaTomb Shared Media === MediaTomb uses a web-based interface for setting your shared media directories. By default MediaTomb will select a free port starting with 49152, however you can specify a port of your choice in the configuration file. You may access the interface by directing your web browser to the URL "http://localhost:49152" (or the port currently in use by MediaTomb if you have changed the port in the configuration file, or 49125 was already in use by another application). Installing MediaTomb through the Ubuntu repositories will add a launcher in the Applications menu that will open the MediaTomb web interface in your browser. ==== Sharing Media ==== To share media files, first open the MediaTomb web interface. In the left column, select "Filesystem", and navigate to the directory containing the media you want to share. Your media files will be shown on the right. Click the plus sign ("+") to the right of the media file or directory to share the directory using the default settings, or the plus sign surrounded by the circular arrows to set advanced sharing options. ==== Editing or Removing Shared Media ==== You can view your shared media by selecting "Database" in the left column. To edit or remove media, select "PC Directory" and navigate to the directory containing the media files you want to edit or remove. Click the X to the right of the file or directory to remove it from MediaTomb's media database. Click the edit icon to the right of a media file to edit the description or mime type used when sharing the media. Click the plus sign surrounded by circular arrows to the right of a directory to change the advanced sharing options. === Transcoding === MediaTomb supports on-the-fly transcoding using external encoders such as ffmpeg and mencoder. Complete documentation on transcoding with MediaTomb can be found at the [http://mediatomb.cc/pages/transcoding MediaTomb website]. == Help and Documentation == Complete documentation for MediaTomb is available on the [http://mediatomb.cc/pages/documentation_overview MediaTomb website] == Related Pages == * [[UbuntuHelp:Ps3MediaServer|Ps3 Media Server]] - Setting up Ubuntu as a UPnP media server using PS3 Media Server. * [[UbuntuHelp:Servers|Servers]] index page ---- [[category:CategorySoftware]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:MediaTomb
。