PDA

Bekijk de volledige versie : Mediatomb



avberk
01-03-2007, 22:45
Has anyone already tried to install Mediatomb on a WL-500g?

the package is easy to install and to start, but i don't have a clue how to get the web interface up running.
Tried to follow the documentation at:
http://mediatomb.cc/pages/welcome
but that seems more for linux gurus.

A quick install guide would be nice :D

Jin
07-03-2007, 17:14
Hi,

first of all - this was reported to us by a WL500g user - there was a problem with automatic database creation. It's difficult for me to debug this, because I do not own a WL500g so I can not test it myself; if you have this problem (that would happen on startup, you would get some error message from sqlite and then the server would terminate) - create the databse manually.

This is quite easy to do, you just need the sqlite version 3 command line client, then enter the following:

cat /opt/share/mediatomb/sqlite3.sql | sqlite3 mediatomb.db

This will create the database, copy the database file into your ~/.mediatomb/ or make sure that the ~/.mediatomb/config.xml file points to the correct database location. I just realized that I forgot to put that into the documentation...

Alternatively, you can enter a fixed port in the config.xml, simply put <port>50000</port> in the server section - after the launch of the server you will be able to connect to the UI via http://your-router-ip:50000/

Upon server startup the link to the UI is also printed in the console.

Let me know how it went :) If you get stuck you can visit us on IRC: #mediatomb on chat.freenode.net for realtime support.

Greetings,
Jin

P.S. if you use a DSM-320 or similar D-Link renderer you may need some special options in your config.xml, just check the docs :>

avberk
08-03-2007, 11:33
Hi Jin,

Great news! Got it to work!

This was the error after starting 'mediatomb'
terminate called after throwing an instance of 'StorageException'

This is how it was solved: (your oneliner didn't produce the mediatomb.db)
- cd /opt/share/mediatomb
- cat sqlite3.sql | sqlite3 mediatomb.db
- I then moved the mediatomb.db (17408 bytes) to /usr/local/root/.mediatomb

and finally started 'mediatomb' from the commandline, which now starts correctly on default port 49152.

My configuration:
-Wl-500g running lighttpd at the moment.
-mediatomb_0.9.0-pre-1_mipsel.ipk
-Didn't make ANY changes to the default installation other than above!

Jin
08-03-2007, 16:39
Nice!

Well, this was exactly the problem that was also reported by an other WL500g user. Somehow automatic database creation fails on this device, we have to investigate why. Would be nice to have this feature working to further simplify the installation.

Anyway, great to hear that it works :)

Greetings,
Jin

fennec
19-03-2007, 21:36
great

i search mediaserver for my wlhdd

do you explain exactly how to install mediatomb

thanks

Jin
19-03-2007, 21:42
great

i search mediaserver for my wlhdd

do you explain exactly how to install mediatomb

thanks

Well.. in the meantime it turned out that things are much more complicated.
There are various problems on the WL500g, mainly - it seems that uclibc++ does not catch C++ exceptions. I am still investigating that, but this issue makes the server unusable.

If you want to try some debugging - packages are available here:
http://ipkgfind.nslu2-linux.org/details.php?package=mediatomb&id=6660412&official=

Greetings,
Jin

fennec
19-03-2007, 21:46
ok great

i try this

thanks ;)

fennec
25-03-2007, 11:19
hi

i try to install package but i have the error and nothing install



[admin@WLHDD etc]$ ipkg install mediatomb
Installing mediatomb (0.9.0-pre-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/mediatomb_0.9.0-pre-1_mipsel.ipk
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: Cannot satisfy the following dependencies for mediatomb:
libstdc++
[admin@WLHDD etc]$


i find nothing in folder opt/share

fennec
25-03-2007, 11:50
ok

i add


src bcan http://bcan.burngreave.net/bcanopenwrt/packages

in ipkg.conf

and ipkg install libstdc++

and install ok

i continu ;)

fennec
25-03-2007, 12:14
OK

i do ipkg install libuclibc++

and all is ok

very great thanks !!!!!!!!!!!!!!

oleo
25-03-2007, 14:11
With http://trac.nslu2-linux.org/optware/changeset/5823 now includes libuclibc++ depend although libuclibc++ provides libstdc++ functionality.

Tatek
03-05-2007, 15:45
Hi Guys

Could you please explain how to start up MediaTomb ?

I installed it via ipkg, but when trying to run, I've got the message: "can't load library 'libstdc++.so.6".

Should I install uclibc-opt or libstdc++ (from http://bcan.burngreave.net/bcanopenwrt/packages) ?

Or how to make a use of oleo's script(?) from a previous post ?

Thanks
tatek

Gerdi
12-06-2007, 13:20
My mediatomb has a little bit problems with the database (SQLITE on asuswl500gp).
I tried mysql (like in the doc). But I always get the error:

terminate called after throwing an instance of 'zmm::Exception'

Is this mediatomb compiled to run with mysql?

Jin
12-06-2007, 14:59
Hi,

sorry, but it turned out it does not yet work. Unfortunately I lost sight of Oleo, so we have not made much progress yet. From what I know the exception problem is solved in the optware unstable branch, but some problems related to id3lib still remain.

I hope that we can follow up on this at some point, and finally provide a working solution for the WL500g

Jin

Jin
18-04-2008, 20:11
Hi everyone,

it's been a while :>

I am currently working on static packages that should run as an addon to any existing vendor firmware. If anyone is interested - here is more info:

http://mediatomb.cc/news?item=42

Kind regards,
Jin

irrelevant
27-10-2008, 20:35
My mediatomb has a little bit problems with the database (SQLITE on asuswl500gp).
I tried mysql (like in the doc). But I always get the error:

terminate called after throwing an instance of 'zmm::Exception'

Is this mediatomb compiled to run with mysql?

I have run into the same problem on my WL-500gP (on HeadStart II tutorial for oleg 1.9.2.7-10). I'm quite a newbie but I did the following without luck:

* I created a "mediatomb" db in mysql (according docs this is required and there was none after running S90mediatomb.)
* I added the "mysql" tags to config.xml.

I was able to create this db but I wonder if I managed to give mediatomb access priviliges to this db? Does anyone know how to setup this?

I probably need to configure both mysql and mediatomb for this to work properly (it takes two to tango...) But I'm unsure about howto...

Jin
27-10-2008, 20:50
No, no, guys, you are using the wrong build! I created static binaries that work well on the WL500g devices and are not affected by the exception problem.

http://mediatomb.cc/pages/download#static

You want this one:
http://downloads.sourceforge.net/mediatomb/mediatomb-static-0.11.0-r2-linux-uclibc-mips32el.tar.gz

Make sure to *not* enable inotify autoscan, as far as I remember it's not supported by the WL500g kernel and our autodetection fails because of an incorrect system response, but apart from that everything should work fine.

irrelevant
28-10-2008, 22:32
:o
Yes - your static version did it!

Mediatomb works fine now. I can browse and play my divx movies, photos, music on my PS3 (sw v. 2.50) without any problems.

Thank you Jin.

shantanugoel
11-01-2009, 13:07
I can also confirm that the static build works fine on my WL-500W (the ipkg version always gave zmm:Exception errors).
Now, how to get it to autoscan if inotify method doesnt work?

NakedFaerie
31-05-2010, 12:41
How do I get the static verison to autoboot?

Starchild
10-03-2011, 13:54
After much agony, I was able to properly configure the Optware version MediaTomb, but streaming to my PS3 was terribly choppy even though streaming to and from my laptop (wifi), desktop (wired) was smooth.

I decided to start over with the static package. Setup was a easy, and now playback is wonderfully smooth! Thanks!

Right now, I have MediaTomb starting automatically after mounting, but I am also interested in a init.d start up script.

Starchild
12-03-2011, 18:30
S90mediatomb:

#!/bin/sh

# mediatomb This script starts and stops the mediatomb daemon
#
# chkconfig: - 95 30
# processname: mediatomb
# description: mediatomb is a daemon process which provides a UPnP service

# Set the absolute path to mediatomb
LAUNCHDIR="/opt/etc/mediatomb"

# By default it's all good
RETVAL=0

# See how we were called.
case "$1" in
start)
# Check if MT is already running
if [ -e /opt/var/lock/mediatomb ] ; then
$0 stop
fi

# Start daemon.
export MEDIATOMB_DATADIR="$LAUNCHDIR/usr/share/mediatomb"
export MEDIATOMB_MAGIC_FILE="usr/share/file/magic"
$LAUNCHDIR/usr/bin/mediatomb -d -m $LAUNCHDIR -f config
echo -n "Starting mediatomb: "

RETVAL=$?
if [ $RETVAL = 0 ] ; then
touch /opt/var/lock/mediatomb
echo "ok"
else

echo "failed"
fi
;;
stop)
# Stop daemons.
echo -n "Shutting down mediatomb: "


killall mediatomb 2>/dev/null

RETVAL=$?
if [ $RETVAL = 0 ] ; then
rm -f /opt/var/lock/mediatomb

echo "ok"
else
echo "failed"
fi

;;
restart)
$0 stop
$0 start
;;
condrestart)
[ -e /opt/var/lock/mediatomb ] && $0 restart
;;
*)
$0 start
;;
esac

exit $RETVAL


Set the absolute path to MediaTomb in S90mediatomb, place script in /opt/etc/init.d, and chmod 0755

In Tomato, go to USB and NAS > USB Support

Add the following to Run after mounting:

#OptWare Startup
if [ -d /opt/etc/init.d ]; then
for f in /opt/etc/init.d/S* ; do
[ -x $f ] && $f start
done
fi

Add the following to Run before unmounting:

#OptWare Stop
if [ -d /opt/etc/init.d ]; then
for f in /opt/etc/init.d/S* ; do
[ -x $f ] && $f stop
done
fi

Now, MediaTomb static, and any other Optware you decide to install, should start automatically.

lamero
22-06-2011, 00:44
It is transcoding possible?

ryzhov_al
23-06-2011, 07:44
It is transcoding possible?

No, due to a weak CPU.