Linux Memo/mediatomb
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
*mediatomb [#k86c32f0]
RIGHT:更新日&lastmod();
DLNA(Digital Living Network Alliance)[加盟各社の製品が互...
http://mediatomb.cc/pages/downloadからソースをDownload
**インストール [#l1c67cbb]
***前作業 [#f0b7afc9]
以下のソフトをapt-getでインストール
-sqlite3のインストール~
sqlite3, sqlite3-devel
-mysqlのインストール~
MySQL-server, MySQL-devel, MySQL-client, MySQL-shared
-zlibのインストール~
zlib, zlib-devel
-taglibのインストール~
taglib, taglib-devel
-id3libのインストール~
id3lib, id3lib-devel
-libexifのインストール~
libexif, libexif-devel
-expatのインストール~
expat, expat-devel
以下のソフトをソースからインストール
-libextractorのインストール~
ソースの入手(http://core.ring.gr.jp/pub/GNU/libextractor/...
tarで展開して
コンパイル
$ ./configure
$ make
$ su
# make install
/usr/local/lib/libextractor.so.1 のシンボリックリンクを /...
# cd /usr/lib
# ln -s /usr/local/lib/libextractor.so.1
***mediatombのコンパイル [#obe8590e]
-ソースの入手~
mediatomb-0.11.0.tar.gz (http://mediatomb.cc/pages/downlo...
$ tar zxvf mediatomb-0.11.0.tar.gz
$ cd mediatomb-0.11.0
$ LDFLAGS=-L/usr/lib ./configure -with-mysql-cfg=/usr/bi...
&color(red){LDFLAGS=-L(libのパスを指定)};
最終表示で結果
ONFIGURATION SUMMARY ----
sqlite3 : yes
mysql : yes
libjs : missing
libmagic : yes
inotify : yes
libexif : yes
expat : yes
id3lib : disabled
taglib : yes
ffmpeg : disabled
external transcoding : yes
libextractor : yes
$ make
$ su
$ make install
***mediatombの初回起動(ディレクトリ生成) [#a530f970]
# /usr/local/bin/mediatomb
MediaTomb UPnP Server version 0.11.0 - http://mediatomb....
========================================================...
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, L...
MediaTomb is free software, covered by the GNU General P...
2009-03-13 18:28:08 INFO: MediaTomb configuration was...
2009-03-13 18:28:08 INFO: Loading configuration from:...
2009-03-13 18:28:08 INFO: UUID generated: ebca88e0-c6...
2009-03-13 18:28:08 INFO: Checking configuration...
2009-03-13 18:28:08 INFO: Setting filesystem import c...
2009-03-13 18:28:08 INFO: Setting metadata import cha...
2009-03-13 18:28:08 INFO: Setting playlist charset to...
2009-03-13 18:28:08 INFO: Configuration check succeed...
2009-03-13 18:28:08 WARNING: Sqlite3 database seems to b...
2009-03-13 18:28:08 INFO: no sqlite3 backup is availa...
corrupt. automatically creating database...
2009-03-13 18:28:08 INFO: database created successful...
2009-03-13 18:28:08 INFO: Initialized port: 49152
2009-03-13 18:28:08 INFO: Server bound to: 10.1.5.188
2009-03-13 18:28:09 INFO: MediaTomb Web UI can be rea...
2009-03-13 18:28:09 INFO: http://10.1.5.188:49152/
# ^C <=停止(ctrl+C)
2009-03-13 18:29:25 INFO: MediaTomb shutting down. Pl...
2009-03-13 18:29:26 INFO: Server terminating
***mediatombの設定 [#dce86e3a]
/etc/mediatomb.confを作成~
雛形をコピー
# cp config/mediatomb-conf-fedora /etc/mediatomb.conf
''sample''
# This is a sambel configuration file for the MediaTomb ...
## used on Fedora Core
## By default the configuration will be created in /etc/...
## Network interface on which the server will run, you n...
##MT_INTERFACE="NOT_SET"
MT_INTERFACE="eth0" <==追加
## User defined command line options that may be passed ...
MT_OPTIONS=""
## MediaTomb will be started on port 50500
MT_PORT="50500"
## MediaTomb will run as mediatomb
MT_USER="mediatomb"
MT_GROUP="mediatomb"
## MT_USER="root" <==修正
## MT_GROUP="root" <==修正
## Location of the PID file
MT_PIDFILE="/var/run/mediatomb.pid"
## Location of the log file
MT_LOGFILE="/var/log/mediatomb"
## Location of the config file/database
MT_HOME="/etc"
MT_CFGDIR="mediatomb"
/etc/rc.d/init.d/mediatombの作成~
雛形をコピー
# cp scripts/mediatomb-service-fedora /etc/rc.d/init.d/m...
''sample''
#!/bin/sh
#
# mediatomb This script starts and stops the mediatomb d...
#
# chkconfig: 2345 95 30
# processname: mediatomb
# description: mediatomb is a daemon process which provi...
# config: /etc/mediatomb
# config: /etc/mediatomb/config.xml
# pidfile: /var/run/mediatomb.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Set default mediatomb configuration.
# either make an installation in /etc/mediatomb and leav...
# or specify an alternative config file location using t...
# Note: be aware, that -i parameter is used to set the i...
# interface specified above
. /etc/mediatomb.conf
###############################
# make sure to run it as nobody
MEDIATOMB="-d -u $MT_USER -g $MT_GROUP -P $MT_PIDFILE -l...
-m $MT_HOME -f $MT_CFGDIR -p $MT_PORT"
[ -f /usr/local/bin/mediatomb ] || exit 0 <==パスを修正
[ ${MT_INTERFACE} = "NOT_SET" ] && echo "Please edit /et...
the MT_INTERFACE variable to your network device (eth0, ...
PATH=$PATH:/usr/bin:/usr/local/bin
# By default it's all good
RETVAL=0
# See how we were called.
case "$1" in
start)
# Start daemon.
echo -n "Applying multicast settings to $MT_INTERFAC...
# those settings are necessary for us to react to M-...
route add -net 239.0.0.0 netmask 255.0.0.0 $MT_INTER...
ifconfig $MT_INTERFACE allmulti
touch $MT_PIDFILE
chown mediatomb $MT_PIDFILE
mkdir -p "/$MT_HOME/$MT_CFGDIR"
chown mediatomb "/$MT_HOME/$MT_CFGDIR"
echo -n "Starting mediatomb: "
## daemon $NICELEVEL mediatomb $MEDIATOMB -e $MT_INTE...
daemon $NICELEVEL mediatomb $MEDIATOMB <==修正
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/media...
;;
stop)
# Stop daemons.
echo -n "Shutting down mediatomb: "
killproc mediatomb
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/mediat...
;;
restart)
$0 stop
$0 start
;;
condrestart)
[ -e /var/lock/subsys/mediatomb ] && $0 restart
;;
status)
status mediatomb
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart|status|condresta...
RETVAL=1
;;
esac
exit $RETVAL
/etc/mediatomb/config.xmlの作成~
雛形をコピー
# cp (展開フォルダ)/config/mappings.xml /etc/mediatomb/c...
''sapmle''
<?xml version="1.0" encoding="UTF-8"?>
<config 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" version="1">
<server>
<ui enabled="yes">
<accounts enabled="yes" session-timeout="30"> ...
<account user="username" password="password"/>...
</accounts> <== accounts...
</ui>
<name>MediaTomb</name>
<udn>uuid:a865d0aa-aa5f-4502-bb8c-6b273f2775f8</udn>
<home>/etc/mediatomb</home> <== 修正
<webroot>/usr/local/share/mediatomb/web</webroot>
<protocolInfo extend="yes"/>
<storage>
<mysql enabled="yes">
<host>localhost</host> <== DBホストの指定
<username>mediatomb</username> <== DB User
<database>mediatomb</database> <== DB 名 を追加
<password>パスワード</password> <== DBパスワード...
</mysql>
</storage>
</server>
<import hidden-files="no">
<filesystem-charset>EUC-JP</filesystem-charset>
<metadata-charset>CP932</metadata-charset>
<scripting script-charset="UTF-8">
<virtual-layout type="builtin"/>
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<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="avi" to="video/avi"/>
<map from="divx" to="video/divx"/>
<map from="m4v" to="video/mp4"/>
<map from="mp4" to="video/mp4"/>
<map from="gif" to="image/gif"/>
<map from="jpeg" to="image/jpeg"/>
<map from="png" to="image/png"/>
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.mu...
<map from="application/ogg" to="object.item.audi...
<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="video/x-msvideo" as="avi"/>
</mimetype-contenttype>
</mappings>
</import>
<transcoding enabled="no">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmp...
<transcode mimetype="application/ogg" using="oggfl...
<transcode mimetype="audio/x-flac" using="oggflac2...
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="no" type="ext...
<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 %ou...
<buffer size="1048576" chunk-size="131072" fill-...
</profile>
<profile name="vlcmpeg" enabled="no" type="externa...
<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 --s...
{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acod...
samplerate=44100,channels=2}:standard{access=file,mux=ps...
<buffer size="14400000" chunk-size="512000" fill...
</profile>
</profiles>
</transcoding>
</config>
***mysqlにデータベース作成 [#h2ed0e36]
# /usr/bin/mysql -p
Enter password: 空ENTER
Welcome to the MySQL monitor. Commands end with ; or...
Your MySQL connection id is 3 to server version: 5.0...
Type 'help;' or '\h' for help. Type '\c' to clear th...
mysql> CREATE DATABASE mediatomb;
Query OK, 1 row affected (0.06 sec)
mysql> GRANT ALL ON mediatomb.* TO 'mediatomb'@'loca...
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
# mysql -p mediatomb < /usr/local/share/mediatomb/mysql....
Enter password: 空ENTER
#
**mediatombの起動 [#qe83f717]
# /etc/rc.d/init.d/mediatomb start
Applying multicast settings to eth0... Starting mediat...
#
/var/log/mediatombで起動、エラーが確認できる
以下のようなエラーは/etc/mediatomb/config.xmlでDBのホスト...
2009-03-13 19:56:23 ERROR: Config: option not found: /...
2009-03-13 20:08:47 INFO: Loading configuration from...
2009-03-13 20:08:47 INFO: Checking configuration...
2009-03-13 20:08:47 INFO: Migrating server configurat...
2009-03-13 20:08:47 ERROR: Config: option not found: /...
2009-03-13 20:10:26 INFO: Loading configuration from:...
2009-03-13 20:10:26 INFO: Checking configuration...
**mediatombの自動起動 [#q50c0eed]
# chkconfig mediatomb on
**mediatombへの登録 [#h674e48c]
-Web UIの起動~
http://localhost:50500/
-登録~
Filesystemから該当フォルダを選択し"+"アイコンをクリック
**参考 [#uc73967c]
http://mtada.cocolog-nifty.com/blog/2008/02/vinelinux42me...
http://centossrv.com/mediatomb.shtml
終了行:
*mediatomb [#k86c32f0]
RIGHT:更新日&lastmod();
DLNA(Digital Living Network Alliance)[加盟各社の製品が互...
http://mediatomb.cc/pages/downloadからソースをDownload
**インストール [#l1c67cbb]
***前作業 [#f0b7afc9]
以下のソフトをapt-getでインストール
-sqlite3のインストール~
sqlite3, sqlite3-devel
-mysqlのインストール~
MySQL-server, MySQL-devel, MySQL-client, MySQL-shared
-zlibのインストール~
zlib, zlib-devel
-taglibのインストール~
taglib, taglib-devel
-id3libのインストール~
id3lib, id3lib-devel
-libexifのインストール~
libexif, libexif-devel
-expatのインストール~
expat, expat-devel
以下のソフトをソースからインストール
-libextractorのインストール~
ソースの入手(http://core.ring.gr.jp/pub/GNU/libextractor/...
tarで展開して
コンパイル
$ ./configure
$ make
$ su
# make install
/usr/local/lib/libextractor.so.1 のシンボリックリンクを /...
# cd /usr/lib
# ln -s /usr/local/lib/libextractor.so.1
***mediatombのコンパイル [#obe8590e]
-ソースの入手~
mediatomb-0.11.0.tar.gz (http://mediatomb.cc/pages/downlo...
$ tar zxvf mediatomb-0.11.0.tar.gz
$ cd mediatomb-0.11.0
$ LDFLAGS=-L/usr/lib ./configure -with-mysql-cfg=/usr/bi...
&color(red){LDFLAGS=-L(libのパスを指定)};
最終表示で結果
ONFIGURATION SUMMARY ----
sqlite3 : yes
mysql : yes
libjs : missing
libmagic : yes
inotify : yes
libexif : yes
expat : yes
id3lib : disabled
taglib : yes
ffmpeg : disabled
external transcoding : yes
libextractor : yes
$ make
$ su
$ make install
***mediatombの初回起動(ディレクトリ生成) [#a530f970]
# /usr/local/bin/mediatomb
MediaTomb UPnP Server version 0.11.0 - http://mediatomb....
========================================================...
Copyright 2005-2008 Gena Batsyan, Sergey Bostandzhyan, L...
MediaTomb is free software, covered by the GNU General P...
2009-03-13 18:28:08 INFO: MediaTomb configuration was...
2009-03-13 18:28:08 INFO: Loading configuration from:...
2009-03-13 18:28:08 INFO: UUID generated: ebca88e0-c6...
2009-03-13 18:28:08 INFO: Checking configuration...
2009-03-13 18:28:08 INFO: Setting filesystem import c...
2009-03-13 18:28:08 INFO: Setting metadata import cha...
2009-03-13 18:28:08 INFO: Setting playlist charset to...
2009-03-13 18:28:08 INFO: Configuration check succeed...
2009-03-13 18:28:08 WARNING: Sqlite3 database seems to b...
2009-03-13 18:28:08 INFO: no sqlite3 backup is availa...
corrupt. automatically creating database...
2009-03-13 18:28:08 INFO: database created successful...
2009-03-13 18:28:08 INFO: Initialized port: 49152
2009-03-13 18:28:08 INFO: Server bound to: 10.1.5.188
2009-03-13 18:28:09 INFO: MediaTomb Web UI can be rea...
2009-03-13 18:28:09 INFO: http://10.1.5.188:49152/
# ^C <=停止(ctrl+C)
2009-03-13 18:29:25 INFO: MediaTomb shutting down. Pl...
2009-03-13 18:29:26 INFO: Server terminating
***mediatombの設定 [#dce86e3a]
/etc/mediatomb.confを作成~
雛形をコピー
# cp config/mediatomb-conf-fedora /etc/mediatomb.conf
''sample''
# This is a sambel configuration file for the MediaTomb ...
## used on Fedora Core
## By default the configuration will be created in /etc/...
## Network interface on which the server will run, you n...
##MT_INTERFACE="NOT_SET"
MT_INTERFACE="eth0" <==追加
## User defined command line options that may be passed ...
MT_OPTIONS=""
## MediaTomb will be started on port 50500
MT_PORT="50500"
## MediaTomb will run as mediatomb
MT_USER="mediatomb"
MT_GROUP="mediatomb"
## MT_USER="root" <==修正
## MT_GROUP="root" <==修正
## Location of the PID file
MT_PIDFILE="/var/run/mediatomb.pid"
## Location of the log file
MT_LOGFILE="/var/log/mediatomb"
## Location of the config file/database
MT_HOME="/etc"
MT_CFGDIR="mediatomb"
/etc/rc.d/init.d/mediatombの作成~
雛形をコピー
# cp scripts/mediatomb-service-fedora /etc/rc.d/init.d/m...
''sample''
#!/bin/sh
#
# mediatomb This script starts and stops the mediatomb d...
#
# chkconfig: 2345 95 30
# processname: mediatomb
# description: mediatomb is a daemon process which provi...
# config: /etc/mediatomb
# config: /etc/mediatomb/config.xml
# pidfile: /var/run/mediatomb.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Set default mediatomb configuration.
# either make an installation in /etc/mediatomb and leav...
# or specify an alternative config file location using t...
# Note: be aware, that -i parameter is used to set the i...
# interface specified above
. /etc/mediatomb.conf
###############################
# make sure to run it as nobody
MEDIATOMB="-d -u $MT_USER -g $MT_GROUP -P $MT_PIDFILE -l...
-m $MT_HOME -f $MT_CFGDIR -p $MT_PORT"
[ -f /usr/local/bin/mediatomb ] || exit 0 <==パスを修正
[ ${MT_INTERFACE} = "NOT_SET" ] && echo "Please edit /et...
the MT_INTERFACE variable to your network device (eth0, ...
PATH=$PATH:/usr/bin:/usr/local/bin
# By default it's all good
RETVAL=0
# See how we were called.
case "$1" in
start)
# Start daemon.
echo -n "Applying multicast settings to $MT_INTERFAC...
# those settings are necessary for us to react to M-...
route add -net 239.0.0.0 netmask 255.0.0.0 $MT_INTER...
ifconfig $MT_INTERFACE allmulti
touch $MT_PIDFILE
chown mediatomb $MT_PIDFILE
mkdir -p "/$MT_HOME/$MT_CFGDIR"
chown mediatomb "/$MT_HOME/$MT_CFGDIR"
echo -n "Starting mediatomb: "
## daemon $NICELEVEL mediatomb $MEDIATOMB -e $MT_INTE...
daemon $NICELEVEL mediatomb $MEDIATOMB <==修正
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/media...
;;
stop)
# Stop daemons.
echo -n "Shutting down mediatomb: "
killproc mediatomb
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/mediat...
;;
restart)
$0 stop
$0 start
;;
condrestart)
[ -e /var/lock/subsys/mediatomb ] && $0 restart
;;
status)
status mediatomb
RETVAL=$?
;;
*)
echo "Usage: $0 {start|stop|restart|status|condresta...
RETVAL=1
;;
esac
exit $RETVAL
/etc/mediatomb/config.xmlの作成~
雛形をコピー
# cp (展開フォルダ)/config/mappings.xml /etc/mediatomb/c...
''sapmle''
<?xml version="1.0" encoding="UTF-8"?>
<config 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" version="1">
<server>
<ui enabled="yes">
<accounts enabled="yes" session-timeout="30"> ...
<account user="username" password="password"/>...
</accounts> <== accounts...
</ui>
<name>MediaTomb</name>
<udn>uuid:a865d0aa-aa5f-4502-bb8c-6b273f2775f8</udn>
<home>/etc/mediatomb</home> <== 修正
<webroot>/usr/local/share/mediatomb/web</webroot>
<protocolInfo extend="yes"/>
<storage>
<mysql enabled="yes">
<host>localhost</host> <== DBホストの指定
<username>mediatomb</username> <== DB User
<database>mediatomb</database> <== DB 名 を追加
<password>パスワード</password> <== DBパスワード...
</mysql>
</storage>
</server>
<import hidden-files="no">
<filesystem-charset>EUC-JP</filesystem-charset>
<metadata-charset>CP932</metadata-charset>
<scripting script-charset="UTF-8">
<virtual-layout type="builtin"/>
</scripting>
<mappings>
<extension-mimetype ignore-unknown="no">
<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="avi" to="video/avi"/>
<map from="divx" to="video/divx"/>
<map from="m4v" to="video/mp4"/>
<map from="mp4" to="video/mp4"/>
<map from="gif" to="image/gif"/>
<map from="jpeg" to="image/jpeg"/>
<map from="png" to="image/png"/>
</extension-mimetype>
<mimetype-upnpclass>
<map from="audio/*" to="object.item.audioItem.mu...
<map from="application/ogg" to="object.item.audi...
<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="video/x-msvideo" as="avi"/>
</mimetype-contenttype>
</mappings>
</import>
<transcoding enabled="no">
<mimetype-profile-mappings>
<transcode mimetype="video/x-flv" using="vlcmpeg"/>
<transcode mimetype="application/ogg" using="vlcmp...
<transcode mimetype="application/ogg" using="oggfl...
<transcode mimetype="audio/x-flac" using="oggflac2...
</mimetype-profile-mappings>
<profiles>
<profile name="oggflac2raw" enabled="no" type="ext...
<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 %ou...
<buffer size="1048576" chunk-size="131072" fill-...
</profile>
<profile name="vlcmpeg" enabled="no" type="externa...
<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 --s...
{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acod...
samplerate=44100,channels=2}:standard{access=file,mux=ps...
<buffer size="14400000" chunk-size="512000" fill...
</profile>
</profiles>
</transcoding>
</config>
***mysqlにデータベース作成 [#h2ed0e36]
# /usr/bin/mysql -p
Enter password: 空ENTER
Welcome to the MySQL monitor. Commands end with ; or...
Your MySQL connection id is 3 to server version: 5.0...
Type 'help;' or '\h' for help. Type '\c' to clear th...
mysql> CREATE DATABASE mediatomb;
Query OK, 1 row affected (0.06 sec)
mysql> GRANT ALL ON mediatomb.* TO 'mediatomb'@'loca...
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
# mysql -p mediatomb < /usr/local/share/mediatomb/mysql....
Enter password: 空ENTER
#
**mediatombの起動 [#qe83f717]
# /etc/rc.d/init.d/mediatomb start
Applying multicast settings to eth0... Starting mediat...
#
/var/log/mediatombで起動、エラーが確認できる
以下のようなエラーは/etc/mediatomb/config.xmlでDBのホスト...
2009-03-13 19:56:23 ERROR: Config: option not found: /...
2009-03-13 20:08:47 INFO: Loading configuration from...
2009-03-13 20:08:47 INFO: Checking configuration...
2009-03-13 20:08:47 INFO: Migrating server configurat...
2009-03-13 20:08:47 ERROR: Config: option not found: /...
2009-03-13 20:10:26 INFO: Loading configuration from:...
2009-03-13 20:10:26 INFO: Checking configuration...
**mediatombの自動起動 [#q50c0eed]
# chkconfig mediatomb on
**mediatombへの登録 [#h674e48c]
-Web UIの起動~
http://localhost:50500/
-登録~
Filesystemから該当フォルダを選択し"+"アイコンをクリック
**参考 [#uc73967c]
http://mtada.cocolog-nifty.com/blog/2008/02/vinelinux42me...
http://centossrv.com/mediatomb.shtml
ページ名: