Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd May 2010, 06:17 AM
pstrang Offline
Registered User
 
Join Date: Jan 2005
Posts: 97
windows_7firefox
Mediatomb 0.12 help

fedora 12 packaged mediatomb is only 0.11, but I'm trying to get my droid videos to play on my ps3 through mediatomb, so I downloaded source for 0.12

I've been fighting with it all @#$ day, finally got it to compile and run without error exit, but it does not want to bind to my ethernet interface so I have no UI to configure my database (media files). I've also tried to manually put media folder in the config.xml file, but my mediatomb.db stays at 0 bytes.

The binding works for the 0.11 mediatomb.rpm, but not my built 0.12. I hate giving up..

My config files are below:
Code:
## This is a sambel configuration file for the MediaTomb daemon script
## used on Fedora Core

## By default the configuration will be created in /etc/mediatomb

## Network interface on which the server will run, you need to edit this!
MT_INTERFACE="eth0"

## User defined command line options that may be passed to the server
MT_OPTIONS=""

## MediaTomb will be started on port 50500
MT_PORT="50500"

## MediaTomb will run as mediatomb
MT_USER="mediatomb"
MT_GROUP="mediatomb"

## 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"
Code:
#!/bin/sh
#
# mediatomb This script starts and stops the mediatomb daemon
#
# chkconfig: - 20 80
# processname: mediatomb
# description: mediatomb is a daemon process which provides a UPnP service
# 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 leave this blank,
# or specify an alternative config file location using the -c option
# Note: be aware, that -i parameter is used to set the ip of the 
# 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 $MT_LOGFILE -m $MT_HOME -f $MT_CFGDIR -p $MT_PORT"

[ -f /usr/bin/mediatomb ] || exit 0
[ ${MT_INTERFACE} = "NOT_SET" ] && echo "Please edit /etc/mediatomb.conf and change \
the MT_INTERFACE variable to your network device (eth0, eth1, etc.)" && exit 0

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_INTERFACE... "
    # those settings are necessary for us to react to M-SEARCH requests
    route add -net 239.0.0.0 netmask 255.0.0.0 $MT_INTERFACE >/dev/null 2>&1
    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_INTERFACE $MT_OPTIONS
    
    RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/mediatomb
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down mediatomb: "
        killproc mediatomb
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/mediatomb
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  condrestart)
       [ -e /var/lock/subsys/mediatomb ] && $0 restart
       ;;
  status)
    status mediatomb
    RETVAL=$?
    ;;
  *)
    echo "Usage: $0 {start|stop|restart|status|condrestart}"
    RETVAL=1
    ;;
esac

exit $RETVAL
Here's the log file:

Code:
2010-05-22 22:50:54    INFO: Loading configuration from: /etc/mediatomb/config.xml
2010-05-22 22:50:54    INFO: Checking configuration...
2010-05-22 22:50:54    INFO: Setting filesystem import charset to UTF-8
2010-05-22 22:50:54    INFO: Setting metadata import charset to UTF-8
2010-05-22 22:50:54    INFO: Setting playlist charset to UTF-8
2010-05-22 22:50:54 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2010-05-22 22:50:54    INFO: Configuration check succeeded.
2010-05-22 22:50:54 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
No errors or warnings!?! Also the command line invocation of mediatomb is no more helpful.
__________________
Fedora 18 x86_64 - Intel Ivybridge Desktop
Reply With Quote
  #2  
Old 23rd May 2010, 06:20 AM
pstrang Offline
Registered User
 
Join Date: Jan 2005
Posts: 97
windows_7firefox
Re: Mediatomb 0.12 help

Code:
<?xml version="1.0" encoding="UTF-8"?>
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MediaTomb</name>
    <udn>uuid:b60f90b9-521c-4fd4-9ebd-0b024301f233</udn>
    <home>/etc/mediatomb</home>
    <webroot>/usr/local/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
    </storage>
    <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
    <!--
       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>
    -->
    <!-- Uncomment the line below if you have a Telegent TG100 -->
    <!--
       <upnp-string-limit>101</upnp-string-limit>
    -->
    <extended-runtime-options>
      <ffmpegthumbnailer enabled="no">
        <thumbnail-size>128</thumbnail-size>
        <seek-percentage>5</seek-percentage>
        <filmstrip-overlay>yes</filmstrip-overlay>
        <workaround-bugs>no</workaround-bugs>
        <image-quality>8</image-quality>
      </ffmpegthumbnailer>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
        <mark>
          <content>video</content>
        </mark>
      </mark-played-items>
    </extended-runtime-options>
  </server>

<!--
<autoscan use-inotify="auto">
	<directory location="/home/smbshare/Music" mode="inotify" level="full" recursive="yes" hidden-files="yes"/>
	<directory location="/home/smbshare/Movies" mode="inotify" level="full" recursive="yes" hidden-files="yes"/>
	<directory location="/home/smbshare/Pictures" mode="inotify" level="full" recursive="yes" hidden-files="yes"/>
</autoscan>
-->

  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      <common-script>/usr/local/share/mediatomb/js/common.js</common-script>
      <playlist-script>/usr/local/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="builtin">
        <import-script>/usr/local/share/mediatomb/js/import.js</import-script>
        <dvd-script>/usr/local/share/mediatomb/js/import-dvd.js</dvd-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogx" to="application/ogg"/>
        <map from="ogv" to="video/ogg"/>
        <map from="oga" to="audio/ogg"/>
        <map from="ogg" to="audio/ogg"/>
        <map from="ogm" to="video/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"/>
        <map from="mkv" to="video/x-matroska"/>
        <map from="mka" to="audio/x-matroska"/>
        <!-- Uncomment the line below for PS3 divx support -->
        <map from="avi" to="video/divx"/>
        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
        <!-- <map from="avi" to="video/avi"/> -->
      </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="audio/L16" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="application/x-iso9660" as="dvd"/>
        <treat mimetype="application/x-iso9660-image" as="dvd"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="mp4" hd="no">
        <favorites user="mediatomb"/>
        <standardfeed feed="most_viewed" time-range="today"/>
        <playlists user="mediatomb"/>
        <uploads user="mediatomb"/>
        <standardfeed feed="recently_featured" time-range="today"/>
      </YouTube>
      <Weborama enabled="no" 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="no" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="no">
    <mimetype-profile-mappings>
      <transcode mimetype="video/x-flv" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="vlcmpeg"/>
      <transcode mimetype="application/ogg" using="oggflac2raw"/>
      <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="oggflac2raw" enabled="no" type="external">
        <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 -o byteorder:big -f %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
      <profile name="vlcmpeg" enabled="no" type="external">
        <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 --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"/>
        <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
      </profile>
    </profiles>
  </transcoding>
</config>
__________________
Fedora 18 x86_64 - Intel Ivybridge Desktop
Reply With Quote
  #3  
Old 23rd May 2010, 10:21 PM
pstrang Offline
Registered User
 
Join Date: Jan 2005
Posts: 97
windows_7firefox
Re: Mediatomb 0.12 help

Update....

The problem was the mediatomb didn't auto-create the database. So it didn't have anything to do with the ethernet binding. I manually created the database and mediatomb binds to the interface.

I still don't get the web ui however, I get the login page, and can't get past that. However, I can add media to the database via the command-line.

Droid videos still don't play even though PS3 supports MPEG4/H.264 and mediatomb 0.12 supports MP4. Hummmmmm.
__________________
Fedora 18 x86_64 - Intel Ivybridge Desktop
Reply With Quote
  #4  
Old 24th May 2010, 06:13 PM
hiberphoptik's Avatar
hiberphoptik Offline
Registered User
 
Join Date: Apr 2004
Posts: 1,186
windows_7safari
Re: Mediatomb 0.12 help

I HIGHLY recommend ditching mediatomb and using PMS http://ps3mediaserver.blogspot.com/

it will play everything and it was built and designed with the PS3 in mind, I have tried every (and I mean EVERY) DLNA media server under the sun and ps3 meida server is BY FAR the most compatable and easy to use/setup one. I love it
Reply With Quote
  #5  
Old 24th May 2010, 06:51 PM
pstrang Offline
Registered User
 
Join Date: Jan 2005
Posts: 97
windows_7firefox
Re: Mediatomb 0.12 help

Thanks, I'll give it a shot!
__________________
Fedora 18 x86_64 - Intel Ivybridge Desktop
Reply With Quote
  #6  
Old 25th May 2010, 09:40 PM
pstrang Offline
Registered User
 
Join Date: Jan 2005
Posts: 97
windows_7firefox
Re: Mediatomb 0.12 help

It appears ps3mediaserver is transcoding mp4,h264 video (the format my droid uses). I'm not sure why because the PS3 supports those formats natively. I just need a media server that knows how to send the data to the PS3 so it recognizes it. I don't have the horsepower in my basement server to transcode video on the fly.
__________________
Fedora 18 x86_64 - Intel Ivybridge Desktop
Reply With Quote
  #7  
Old 26th May 2010, 06:18 PM
pabloguevara Offline
Registered User
 
Join Date: Apr 2005
Location: Buenos Aires
Posts: 98
linuxfedorafirefox
Re: Mediatomb 0.12 help

hiberphoptik, do you have instructions on how to set up PMS? Firewall, should I open any specific ports? I use a linksys router at home, UpnP should be enabled or disabled?

I've run PMS, but PS does not detect my linux FC12 box.
Reply With Quote
  #8  
Old 26th May 2010, 06:24 PM
hiberphoptik's Avatar
hiberphoptik Offline
Registered User
 
Join Date: Apr 2004
Posts: 1,186
linuxsafari
Re: Mediatomb 0.12 help

Quote:
Originally Posted by pabloguevara View Post
hiberphoptik, do you have instructions on how to set up PMS? Firewall, should I open any specific ports? I use a linksys router at home, UpnP should be enabled or disabled?

I've run PMS, but PS does not detect my linux FC12 box.
just open up port 5001 in fedora, you can change the port in the PMS config but I think 5001 is the default

---------- Post added at 05:24 PM CDT ---------- Previous post was at 05:23 PM CDT ----------

Quote:
Originally Posted by pstrang View Post
It appears ps3mediaserver is transcoding mp4,h264 video (the format my droid uses). I'm not sure why because the PS3 supports those formats natively. I just need a media server that knows how to send the data to the PS3 so it recognizes it. I don't have the horsepower in my basement server to transcode video on the fly.
it should only be transcoding if the PS3 does not support the codec used for that video and you have to use the transcode folder and play the movie from there
Reply With Quote
  #9  
Old 27th May 2010, 10:26 AM
bonedome's Avatar
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 726
linuxfedorafirefox
Re: Mediatomb 0.12 help

Hello
I thought I'd post here instead of starting a new topic.
I'm trying to stream media from my laptop (using fedora 12) to my tv via my ps3 I installed mediatomb from the repos and all seems to function ok, I have upnp enabled on my ps3 but when I scan for media servers on the ps3 it always comes back "no media servers where found"
I've just downloaded tha pms-linux tgz and extracted it, (eventually) got it to run, it then says ps3 not found, is it on etc etc, is this a problem at the ps3 end or laptop
update: went to firewall and under "trusted interfaces" ticked eth0 (my wireless) and now working, although it still won't play .mov or .flv not to worry I can convert if I need to

Last edited by bonedome; 27th May 2010 at 10:43 AM. Reason: update
Reply With Quote
  #10  
Old 14th July 2010, 08:23 AM
Tutankh's Avatar
Tutankh Offline
Registered User
 
Join Date: Mar 2008
Age: 29
Posts: 31
linuxfedorafirefox
Re: Mediatomb 0.12 help

Thanks for your update bonedome! I've been having the same issue for a long time and just happened upon your post. For me it was just that simple tick for trusted interfaces in eth0 also. Funny how NONE of the tutorials/faqs for the software seem to mention it. Such a simple thing that noobs like me ALWAYS forget.
__________________
MSI P6N SLI Platinum
Intel Core2Duo E8400 3.15Ghz
Nvidia 8600 GTX
Dual WD Caviar 160GBs in a RAID
4GB DDR2 Kingston
Antec 650W Trio

Fedora 14 (of course)

Smolt Profile
Reply With Quote
  #11  
Old 14th July 2010, 07:02 PM
bonedome's Avatar
bonedome Offline
Registered User
 
Join Date: Apr 2010
Location: uk
Posts: 726
linuxfedorafirefox
Re: Mediatomb 0.12 help

Hello pstrang
Quote:
It appears ps3mediaserver is transcoding mp4,h264 video (the format my droid uses). I'm not sure why because the PS3 supports those formats natively
if the video is h264 it may be the container isn't recognised, even if it's appended .mp4, I use ffmpeg to change the container like so
Code:
ffmpeg -i ~/tv/whatever.mov -vcodec copy -acodec copy  ~/tv/whatever.mp4
it literally takes seconds and my ps3 then plays it natively
__________________
fedora 14 fluxbox and gnome2 hp compaq nx9030 laptop 2Gb ram, helicopter landing pad, jacuzzi, mini fridge, gateway to alternative dimension
Reply With Quote
  #12  
Old 15th July 2010, 05:33 AM
pstrang Offline
Registered User
 
Join Date: Jan 2005
Posts: 97
linuxfedorafirefox
Re: Mediatomb 0.12 help

Quote:
Originally Posted by bonedome View Post
Hello pstrang
if the video is h264 it may be the container isn't recognised, even if it's appended .mp4, I use ffmpeg to change the container like so
Code:
ffmpeg -i ~/tv/whatever.mov -vcodec copy -acodec copy  ~/tv/whatever.mp4
it literally takes seconds and my ps3 then plays it natively
Thanks! I'll have to give that a try.
__________________
Fedora 18 x86_64 - Intel Ivybridge Desktop
Reply With Quote
Reply

Tags
012, mediatomb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora + Mediatomb = PS3 video streaming F-GT Guides & Solutions (No Questions) 82 23rd March 2011 03:09 AM
CentOS Mediatomb server granade Linux Chat 4 23rd February 2010 12:47 PM
mediatomb transcoding to PS3 hiberphoptik Using Fedora 2 13th January 2009 03:16 AM
getting MediaTomb working for PS3 video streaming TyraelOdium Using Fedora 0 8th August 2008 02:40 AM
Any mediatomb and Ps3 users out there. sophosrex Using Fedora 5 12th February 2008 04:01 PM


Current GMT-time: 14:24 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat