LinuxMCE Forums

General => Users => Topic started by: maverick0815 on September 23, 2015, 08:03:36 pm

Title: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 23, 2015, 08:03:36 pm
I think I need some help in understanding and perhaps configuring.
I remember, that once utilized mediatomb for streaming to no-one devices,like windows media player and such.
I so far, using 12.04,  i have eben unsuccessful in using mediating, since I cannot even find it in my network anymore. However I recently got an rpi2 and use it as a squeezeslave for internet radio.
So I was wondering if the logitech media server and mediatomb were exclusive to each other. If so, how can I configure the logitech software to also stream video?
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on September 23, 2015, 09:20:17 pm
Hey, mediatomb is still accessible.  You have to enable it on your Core.  Choose Wizard -> then Core in webadmin and you'll see a list of additional software items to install.  We are no longer installing it by default as we do not have autoconfiguration for it in place.  Feel free to contribute to that!  Going forward the idea is to create a DCE aware UPnP server/player system.

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: Marie.O on September 23, 2015, 10:05:40 pm
and no, Logitech Media Server and Mediatomb are not mutually exclusive.
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on September 23, 2015, 10:10:25 pm
Ah!  Yes!  Thanks posde, I forgot that bit.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 24, 2015, 06:53:35 am
Thanks guys....as always a pleasure.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 24, 2015, 08:43:30 pm
Hmm...I found it under wizard,devices, core...and ticked the checkbox....but so far I cannot find it on the system. Just out of curiosity, I tried apt-get install mediatomb and it wanted to install..I aborted that one..so I guess just doing the checkbox isn't really enough?
Title: Re: Mediatomb and logitech mediaserver
Post by: Marie.O on September 24, 2015, 11:24:37 pm
Did you do a quick reload?
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on September 25, 2015, 01:17:22 am
Pressing the update button, after checking the box, will install the device in the device tree and trigger ConfirmDependencies which should install the package.

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 25, 2015, 04:02:50 pm
i did a reload router...checked the device tree and mediatomb is there, with Status "**RUN_CONFIG**"
I tried service mediatomb status, it said its stopped/waiting
trying service mediatom start, it starts a process, but stops immediately.
Anything else I need to do?
Title: Re: Mediatomb and logitech mediaserver
Post by: Marie.O on September 25, 2015, 04:06:25 pm
Check the log files mediatomb generates.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 25, 2015, 05:46:13 pm
I got several errors:
The connection to the MySQL database has failed: mysql_error (1049):"unknown database 'pluto_mediatomb' "
error in configuration, transcoding profile "vdrplay" could not find transcoding command vdrplay.sh in $PATH
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on September 25, 2015, 08:07:09 pm
Please file tickets for individual issues in trac and attach any logs you can.  Include any solutions you may find as well. 

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: Marie.O on September 27, 2015, 08:42:23 am
maverick,

unfortunately, a lot of stuff that used to work for Mediatomb has been rendered useless, as some people have decided to remove stuff, because mediatomb isn't perfect... As Phenigma pointed out, please file tickets for each of the issues and we shall reinstate the old files.
Title: Re: Mediatomb and logitech mediaserver
Post by: G.I.R. on September 27, 2015, 01:00:51 pm
Hello,

i found out doing this:
Code: [Select]
in /etc/init/mediatomb.conf

change this line

start on (local-filesystems and net-device-up IFACE!=l0)

to

start on (started mysql and local-filesystems and net-device-up IFACE!=l0)

like suggested here:
http://ubuntuforums.org/showthread.php?t=1971040

helped me in getting to start mediatomb again.

don`t know if this helps, cause i just had the "cannot connect to mysql" error...


Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on September 27, 2015, 02:17:11 pm
Our install wizard installs a package titled lmce-mediatomb, which has the config items for us.  It also installs mediatomb.

Check to be sure that lmce-mediatomb is installed, it contains the vdrplay.sh script and creates the pluto_mediatomb database that was listed missing.

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 27, 2015, 04:41:50 pm
I just checked the mediatomb again in webadmin. Then I logged in, see for yourself:
Quote
dcerouter_1043186:/home/linuxmce# service mediatomb start
mediatomb start/running, process 31092
dcerouter_1043186:/home/linuxmce# service mediatomb status
mediatomb stop/waiting
dcerouter_1043186:/home/linuxmce# apt-get install lmce-mediatomb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  lmce-skins-titanium pluto-website-admin nbtscan
  linux-image-3.2.0-79-generic-pae autofs debootstrap
  linux-headers-3.2.0-88-generic-pae lmce-skins-slate pluto-pnp-detection
  nbd-client nmap pluto-orbitergen libdiscover2 pluto-disk-monitor pluto-qos
  openswan lmce-launch-manager linux-headers-3.2.0-80 linux-headers-3.2.0-77
  linux-headers-3.2.0-79 linux-headers-3.2.0-86 linux-headers-3.2.0-87
  linux-headers-3.2.0-88 linux-headers-3.2.0-77-generic-pae smbfs autofs5
  radvd ansi2html djmount php5-gd pluto-network-storage
  pluto-avwizard-skin-basic discover tdb-tools ddclient mce-launcher
  libcrypt-smbhash-perl lmce-diskless-debootstrap-image
  linux-image-3.2.0-77-generic-pae linux-headers-3.2.0-86-generic-pae
  pluto-add-software pluto-storage-devices attr libdigest-md4-perl php5-curl
  libt1-5 libtiff-tools libupnp3 pluto-orbiterinstaller libvte9
  pluto-dynamic-dns openbsd-inetd pluto-raid-tools nis pluto-newmdinteractor
  nbd-server pluto-remoteassistance ftp-upload
  linux-headers-3.2.0-80-generic-pae linux-image-3.2.0-88-generic-pae samba
  lmce-skins-uita linux-image-3.2.0-86-generic-pae lsscsi
  pluto-capture-card-scripts ssh pluto-test-serial-port
  linux-headers-3.2.0-87-generic-pae mpg123 pluto-dummy-console-tools xl2tpd
  lmce-update-system linux-image-3.2.0-80-generic-pae discover-data
  nfs-kernel-server pluto-updatemedia linux-headers-3.2.0-79-generic-pae
  lmce-skins-bluecrystal fuse-utils pluto-windowsce-libraries lmce-autotagger
  pluto-sound-card-scripts libvte-common lmce-diskless-tools libid3-3.8.3c2a
  lmce-game-db linux-image-3.2.0-87-generic-pae atftpd
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  mediatomb
The following NEW packages will be installed:
  lmce-mediatomb mediatomb
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/16.5 kB of archives.
After this operation, 128 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  mediatomb lmce-mediatomb
Authentication warning overridden.
Selecting previously unselected package mediatomb.
(Reading database ... 453472 files and directories currently installed.)
Unpacking mediatomb (from .../mediatomb_0.12.1-0ubuntu4_all.deb) ...
Selecting previously unselected package lmce-mediatomb.
Unpacking lmce-mediatomb (from .../lmce-mediatomb_2.0.0.46.15082731292_i386.deb)                                                  ...
Leaving 'diversion of /etc/mediatomb/config.xml to /etc/mediatomb/config.xml.wrapped by lmce-mediatomb'
Setting up mediatomb (0.12.1-0ubuntu4) ...
Setting up lmce-mediatomb (2.0.0.46.15082731292) ...
3
SIOCDELRT: No such process
cp: cannot stat `/etc/mediatomb/config.xml.dpkg-dist': No such file or directory
dpkg: error processing lmce-mediatomb (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 lmce-mediatomb
E: Sub-process /usr/bin/dpkg returned an error code (1)
dcerouter_1043186:/home/linuxmce#
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on September 27, 2015, 05:10:13 pm
Quote
in /etc/init/mediatomb.conf

change this line

start on (local-filesystems and net-device-up IFACE!=l0)

to

start on (started mysql and local-filesystems and net-device-up IFACE!=l0)

indeed this is working :-)
Thanks G.I.R.
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on September 28, 2015, 11:09:50 pm
I just checked the mediatomb again in webadmin. Then I logged in, see for yourself:

hmm, yup, and the failure at the bottom there prevents the package from properly installing.  The webadmin/install is probably working but it'll never complete with the error.

I've created a ticket with the information you provided, thank you!  http://svn.linuxmce.org/trac/ticket/2472

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on October 24, 2015, 06:36:02 pm
I hate to tell you this...but mediatomb still doesnt install properly...
Quote
cchown: cannot access `/etc/mediatomb/config.xml': No such file or directory
dpkg: error processing lmce-mediatomb (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 lmce-mediatomb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Title: Re: Mediatomb and logitech mediaserver
Post by: Marie.O on October 24, 2015, 06:38:35 pm
please always tell the version you are trying to install.

thanks.
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on October 24, 2015, 09:44:52 pm
:(  I'll have a look again, it all works great here.

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on October 25, 2015, 11:42:15 pm
Ok, I have undone a boo boo I made in the last change.  If this doesn't work you guys'll have to start docking my pay ;)

J.
Title: Re: Mediatomb and logitech mediaserver
Post by: maverick0815 on October 26, 2015, 08:11:49 pm
Good Job:-)
Title: Re: Mediatomb and logitech mediaserver
Post by: phenigma on October 26, 2015, 10:35:40 pm
:)