[coherence-dev] Coherence Config File

Frank Scholz fs at beebits.net
Sun Feb 21 21:53:06 CET 2010


Hi Laercio,

> For the video/audio server, I'm using Banshee. Clientes can see banshee:
> bothe audio and video lists. I can play .avi files only. Most of my
> video files are .m4v (mp4) but clients can't play. Any problem with mp4?
mp4 might be not supported by your clients. You need to enable
transcoding on the coherence side, more about that below.

http://coherence.beebits.net/wiki/TransCoding

> Every time the computer is restarted, the above command must be run
> again.
...
> Summing up: 
> 1- I need someone's help about coherence Config file or another way to
> have Banshee working at coherence start up and
> 2- the possibility to have mp4 video files working as fine as .avi.

that actually are three questions. ;-)

Let's look at the config file related ones first.

- 8>< ----------------------------------------------------------------
config>
  <logging level="warning" />

  <plugin active="yes">
    <backend>BansheeStore</backend>
    <name>enter whatever you like here or remove it for a default</name>
  </plugin>

  <transcoding>yes</transcoding>
</config>
---------------------------------------------------------------- ><8 -

The XML between the scissors is a minimal config file that will
instruct coherence to start a Banshee MediaServer backend and
enable transcoding too.

Save that in a file named '.coherence' in your home directory.
Your $HOME is, assuming your username is 'laercio' /home/laercio.

So the filename will be '/home/laercio/.coherence' and whenever you
start coherence it will look for that.

Now to the autostarting. There are two different ways to achieve that.

First in your user-session. There is an easy way to add auto-start
programs via System->Preferences->Autostart (I hope its the proper
translation). Then chose [Add] and enter

  Name: Coherence
  Command: /usr/bin/coherence
  Description: starting DLNA/UPnP server

and apply.

The second option would be a system-wide start whenever your box
boots.

There is an init-script at

http://coherence-project.org/browser/trunk/Coherence/misc/coherence-initscript.sh

You could copy that to /etc/init.d, change to the folder /etc/rc2.d and
create there a link

sudo ln -s ../init.d/coherence-initscript.sh S99coherence

In that case you should copy that XML config file from above to
the file /etc/coherence/coherence.conf. You might need to create
the folder /etc/coherence first.

And you need to add the <db_path> element to the BansheeStore
config section, as now coherence is running under user 'root'
- which actually isn't needed, but that's another story -
and needs to be told where to look for the Banshee db.

Regards,
Frank


More information about the coherence-dev mailing list