Contribs.org

Please login or register.

Login with username, password and session length

News:

Remember SME Server is currently free to download and use. But it is not free to build. You can help by making a donation of time OR money from the links below.

Pages: [1]   Go Down

Author Topic: Trouble to get Mediatomb working on SME 9  (Read 2604 times)

Stigmate

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 5
Trouble to get Mediatomb working on SME 9
« on: March 19, 2017, 02:58:40 AM »

Hi everyone,

Im trying to get a DLNA service who desserve video to a Playstation 3 by my SME 9.

I've some very little skill in Linux and i learn some new tricks every days but...
I can't have somethings working for the media server.

I've try to follow a Contribs topic in date of 2011 (https://forums.contribs.org/index.php/topic,47032.msg231644.html#msg231644)
But the repo is dead... So i've try to get this version "mediatomb-static-0.11.0-r2-linux-uclibc-i386.tar.gz" in this section "http://mediatomb.cc/pages/download" (down the page).

I've unpacked her, apply the freeForAll rights (yes, i no... this is a bad way...  :-?) and, as my wife do for everything, I've a look at the Readme.

The readme said to do the traditionnal " ./configure, make, make install" ( where the official site was saying to execute a mediatomb.sh, who's not in the Tar...)
But, the ./configure give me a " configure: error: Support of at least one of mysql or sqlite3 must be configured ".

I've follow this part in the topic of 2011 but this haven't change nothing...

"Create the mediatomb database in MySQL:

mysql
mysql> CREATE DATABASE mediatomb;
mysql> GRANT ALL ON mediatomb.* TO 'mediatomb'@'localhost';
mysql> exit "

I've too trying to get the dependecies in the basic SME repo, but he haven't find 4 of them :
-libupnp
-libdlna
-spidermonkey
-libextractor

As i understand the things, the configure can't make his full job if i haven't all of them but,
someone know a repo who have them? or do i need to add multiple repo? or wget one by one..?
( i dont know perfectly how to add and use them... )

I hope someone can help...  Thank you :)
« Last Edit: March 19, 2017, 03:40:26 AM by Stigmate »
Logged

TerryF

  • Silver Supporter
  • *
  • Offline Offline
  • Posts: 851
Re: Get Mediatomb or wateverworking Media serv on SME 9
« Reply #1 on: March 19, 2017, 03:42:11 AM »

First off that forum post refers to this on a sme8.0beta

The rpms it lists are also el5.

Might be better of finding an alternative compat with SME9
Logged
--
qui scribit bis legit

Stigmate

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 5
Re: Trouble to get Mediatomb working on SME 9
« Reply #2 on: March 19, 2017, 04:03:43 AM »

Thanks for this precision...

I've looking for some other media server, but most of them is oriented music, some with video but i wasn't able to have them working in dlna.

I've resolve the trouble for Sql by downloading sqlite package in the SME repo.
It stay some error in the configure, so, im going to search for the missing package for the actual EL and hope the Mediatomb will be compat with SME 9...

If someone know an other product who can do the job, im open for try it !
Logged

ReetP

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 1,015
Re: Trouble to get Mediatomb working on SME 9
« Reply #3 on: March 19, 2017, 01:12:37 PM »

Plex server?

Had it running on SME v9 for a couple of years

https://support.plex.tv/hc/en-us/articles/200350536-DLNA
Logged
...
Bugs are easier than you think :
http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in
http://wiki.contribs.org/Koozali_Foundation

Jean-Philippe Pialasse

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 882
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Trouble to get Mediatomb working on SME 9
« Reply #4 on: March 19, 2017, 07:22:08 PM »

I am using at home for years on a SME8
I will need to take a look when I will migrate ny server in the next weeks
Logged

Stigmate

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 5
Re: Trouble to get Mediatomb working on SME 9
« Reply #5 on: March 20, 2017, 08:45:26 AM »

Ok, thanks for that ! :)
Im trying this week to have mediatomb working cause i've started so... i need to know! and if it cant be possible, i will have a try on plex !
Logged

ReetP

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 1,015
Re: Trouble to get Mediatomb working on SME 9
« Reply #6 on: March 20, 2017, 09:35:38 AM »

Another small point...

Where possible don't use your server as your development system to build and compile packages.

Build a separate server as a test bench and compile there.

Have a read in the wiki about building rpms, mock build etc.

B. Rgds
Johm
Logged
...
Bugs are easier than you think :
http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in
http://wiki.contribs.org/Koozali_Foundation

Jean-Philippe Pialasse

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 882
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Trouble to get Mediatomb working on SME 9
« Reply #7 on: March 20, 2017, 05:21:42 PM »

I simply installed all from dag repo on SME8

Code: [Select]
yum install --enablerepo='dag'  mediatomb libupnp libdlna
you might still be able to get the rpm  thanks to https://pkgs.org/

then had to configure mediatomb with mysql, simply setting base informations in /etc/mediatomb/config.xml

Code: [Select]
   <home>/etc/mediatomb</home>
    <webroot>/usr/share/mediatomb/web</webroot>
    <servedir>/home/e-smith/files/ibays/video/files</servedir>
    <alive>180</alive>
    <storage>
      <sqlite3 enabled="no">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
      <mysql enabled="yes">
        <host>localhost</host>
        <username>mediatomb</username>
        <database>PASSw0rd_HERE</database>
      </mysql>
    </storage>

I also had to add few header to get access to my samsung tv:
Code: [Select]
<custom-http-headers>
  <!-- Samsung needs it -->
  <add header="transferMode.dlna.org: Streaming"/>
  <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/>
</custom-http-headers>


finally I remember I had an issue to get it working because of open vpn and bridge. The interface was not configured correctly to let upnp.


all is here : http://smeserver.pialasse.com/index.php/Mediatomb
« Last Edit: March 20, 2017, 05:32:57 PM by Jean-Philippe Pialasse »
Logged

Stigmate

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 5
Re: Trouble to get Mediatomb working on SME 9
« Reply #8 on: March 23, 2017, 05:25:37 PM »

Thanks Jean-Philippe !!

I will have a look this week-end for try that, cause i'haven't time this week.
 
But the DAG repo is down since some month, as we can see here : https://github.com/repoforge/rpms/issues/375
It seems to be on a good way but zero news since the 25 janvier.
Im going to search packets independantly.

Hi ReetP,
I've try Plex. Easy install, nice web-design...
But a lot of option that i don't need and, omg.
My Netstat don't love him.
I will somethings that just work in local, Plex maintain some connection with the outside.
But, thank you, cause he work and do the job in the wait of another. :)

For a the Test-server, i can easily do that with VB or VMware on my personnal workstation. So, i think you're right, it's a good way of work and...
Im pretty new to Unix administration. So, it's maybe a really good idea to have the snapshot possibility  :grin:
Thanks for this too.

I get back this week end for giving news on my way with mediatomb.





Logged

Jean-Philippe Pialasse

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 882
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Trouble to get Mediatomb working on SME 9
« Reply #9 on: March 23, 2017, 08:34:39 PM »

you can get a static version at the university of kent mirror service :

https://www.mirrorservice.org/sites/apt.sw.be/redhat/el6/en/x86_64/dag/RPMS/


would be pleased to assist you, if you want to try to make it a  contrib. I could import the rpm and build them here. I would need somebody's help on time to try and test  and do part of writing the configuration ;)
Logged

Jean-Philippe Pialasse

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 882
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Trouble to get Mediatomb working on SME 9
« Reply #10 on: March 23, 2017, 08:57:58 PM »

just checked with epeland smecontribs on a sme9, the only non resolved deps are:


yum install --enablerepo=smecontribs,epel libupnp libdlna expat zlib spidermonkey taglib libexif curl libextractor ffmpeg mediatomb perl-File-LibMagic

libupnp seems up to date in dag
libdlna version in dag is up to date with upstream
spidermonkey  not found for centos 6 replace with js isntead from epel
libextractor not up to date but might be sufficient from dag
mediatomb up to date in dag


so use yum install --enablerepo=smecontribs,epel libupnp libdlna expat zlib js taglib libexif curl libextractor ffmpeg mediatomb perl-File-LibMagic

and download from dag libextractor mediatomb libupnp libdlna
Logged

Stigmate

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 5
Re: Trouble to get Mediatomb working on SME 9
« Reply #11 on: March 26, 2017, 12:54:20 PM »

Thanks Jean-Philippe, this is working!
I resume and add some missing packet.

EDITING : Too many things wasn't right in my previous version of this post, because i was working over multiple server media installation.
Im going to resume the way to found and install all packet for have mediatomb working just after a fresh install of sme 9 updated to 9.1, but at the moment i'havent do the part of create an user and a sqlite db, cause its late and for my test on vm, mediatomb work and diffuse file on my network without that. (Shame on me.. I dont know why this is needed...) Here is the link of Jean-Philippe Pialasse for this part: http://smeserver.pialasse.com/index.php/Mediatomb
For a clean and perfect install, dont follow this post, wait for nexts :)


For building a rpm, and make a contrib, i've try to contact you Jean-Philippe but it seems that i'havent the right to send personnal message. So, i need some information about that, if you're okay, give me a way for contact you in private.

First of all,
installing the epel repo if you haven't (https://wiki.contribs.org/Epel)
First needed packets are :
yum install --enablerepo=smecontribs,epel expat zlib js taglib libexif curl ffmpeg perl-File-LibMagic libmp4v2.so.0

and follow with downloading and install libmpegv2 (required for libextractor install), libextractor, libupnp, libdlna, and mediatomb, from the static Dag mirror on mirrorservice.org

For me it was the i386 repo : https://www.mirrorservice.org/sites/apt.sw.be/redhat/el6/en/i386/dag/RPMS/

and here for the x86_64 repo : https://www.mirrorservice.org/sites/apt.sw.be/redhat/el6/en/x86_64/dag/RPMS/

I think that's the moment to do a signal-event yum-install ( im not familliar with that so correct me if im wrong)

After all installation done, call mediatomb (just typing mediatomb and push enter where you are). He create his config.xml file and running the service, giving you the ip:port for his webUI. It seems that for some people he's put the xml in /etc/mediatomb/config.xml, but for me, he create the file under /root/.mediatomb/config.xml

I've made a test on the ps3, and in kodi on a windows pc, before editing the xml and all seems to work natively. (Just adding some files to play by the webUI).

At this point, mediatomb works for me.

( I've a problem who seems to be (after webresearch) on the ps3 side. Lot of lag on some big files, and everything okay on other's.
Transcoding on or off, and with or without the ps3 parameters in the config.xml
I was having the same trouble with plex... i Hope to find a fix)
(edit : maybe fix found here https://sourceforge.net/p/mediatomb/discussion/440751/thread/c80f6810/ need to test in the week)

Im ready to help in the creation of a contrib, or for configuration or something else, as i can do with my poor knowledge. Let me know !
« Last Edit: March 27, 2017, 10:49:43 AM by Stigmate »
Logged
Pages: [1]   Go Up
 

Page created in 0.05 seconds with 26 queries.