I recently got rygel running on my workstation, but not without a lot of
grief.   I was pulling my hair out until someone pointed out that there
was/needed to be a /etc/rygel.conf as well as ~/.config/rygel.conf, even
though the format of each is exactly the same.

I'd like to put together a rygel install HOWTO/ FAQ.  If people provide me
information, I'll compile and edit it.

My skeleton install instructions are below.   Feel free to suggest
additional steps.

yum install rygel
yum install tumbler
yum install upnp-av
sudo nano /etc/rygel.conf

I suggest the following changes to rygel.conf
- set the network device name
- set the port you want to use (Lets call it port X)
- leave the folders for now
- set the reporting level to 5

cp /etc/rygel.conf  ~/.config/

- open port 1900 (udp) and port X (tcp) you selected above in the firewall
- place a few simple media files in each of the media directories (~/Music,
~/Pictures, ~/Videos)
- start rygel on the command line, as a regular user with access to the
media file directories.

You should see something similar to the following:

=========================================
Rygel-Message: rygel-main.vala:87: Rygel v0.20.3 starting...
Rygel-Message: New plugin 'MediaExport' available
Rygel-Message: New plugin 'Playbin' available
MediaExport-Message: 'file:///home/Me/Music' harvested
MediaExport-Message: 'file:///home/Me/Videos' harvested
MediaExport-Message: 'file:///home/Me/Pictures' harvested
===========================================

yum install upnp-inspector on the host computer
run upnp-inspector and verify that it exports something locally.
start a DLNA client and observe that rygel is present.  Open the libraries
and play something.

Once that works...

yum install upnp-inspector on a client computer
run upnp-inspector and verify that its exporting across the network
start a DLNA client on a client computer and observe that rygel is
present.  Open the libraries and play something.

Now go back and make one change at a time to make rygel do more exotic
things.  Remember to copy ~/.config/rygel.conf to /etc/rygel.conf each time.


I'd like to see the following questions answered in the FAQ.

1) Which config file does rygel use and why does it complain if either one
is missing ? (see below)

2) What packages does rygel depend on ?

3) What gstreamer plugins does rygel expect and what are they used for ?

4) Is tumbler really needed ?

5) What ports does one need to open on the server ?

6) How does rygel know when to transcode or not ?  How is that handled ?
Is there a way to force transcoding for different devices ?

7) Does rygel generate a log file ?  Where is it ?

8) Is there a way to force rygel to reharvest the media folders ?  Is it
better to have rygel running or not running when making big/small changes
to the media folders ?


Demonstrating the confusing use of 2 config files, starting from a working
installation.

$ rygel
Rygel-Message: rygel-main.vala:87: Rygel v0.20.3 starting...
Rygel-Message: New plugin 'MediaExport' available
Rygel-Message: New plugin 'Playbin' available
MediaExport-Message: 'file:///home/Me/Music' harvested
MediaExport-Message: 'file:///home/Me/Videos' harvested
MediaExport-Message: 'file:///home/Me/Pictures' harvested
^C

Comment: works great.  Now remove the local conf file

$ mv ~/.config/rygel.conf ~/.config/rygel.conf.notused
$ rygel

(rygel:8853): Rygel-WARNING **: Failed to load user configuration from file
'/home/Me/.config/rygel.conf': No such file or directory
Rygel-Message: rygel-main.vala:87: Rygel v0.20.3 starting...
Rygel-Message: New plugin 'MediaExport' available
Rygel-Message: New plugin 'Playbin' available
MediaExport-Message: 'file:///home/Me/Music' harvested
MediaExport-Message: 'file:///home/Me/Videos' harvested
MediaExport-Message: 'file:///home/Me/Pictures' harvested
^C

Comment: it appears to work without the local config file.   But in fact it
won't, if you change the wrong parameter in the global config file.
Comment: replace the local config file, prove it works again.

$ mv ~/.config/rygel.conf.notused ~/.config/rygel.conf
$ rygel
Rygel-Message: rygel-main.vala:87: Rygel v0.20.3 starting...
Rygel-Message: New plugin 'MediaExport' available
Rygel-Message: New plugin 'Playbin' available
MediaExport-Message: 'file:///home/Me/Music' harvested
MediaExport-Message: 'file:///home/Me/Videos' harvested
MediaExport-Message: 'file:///home/Me/Pictures' harvested
^C

Comment: remove the global config file.

$
su

Password:

# mv /etc/rygel.conf /etc/rygel.conf.notused
#
exit

exit

$
rygel



(rygel:8900): Rygel-WARNING **: Failed to load user configuration: No such
file or directory


(rygel:8900): Rygel-WARNING **: Failed to get log level from configuration:
No value available
Rygel-Message: rygel-main.vala:87: Rygel v0.20.3
starting...
Rygel-Message: New plugin 'MediaExport'
available
Rygel-Message: New plugin 'Playbin'
available

Rygel-Message: New plugin 'GstLaunch'
available
Mediathek-Message: rygel-mediathek-root-container.vala:62: Could not get
RSS from configuration, using defaults
Rygel-Message: New plugin 'ZDFMediathek'
available


(rygel:8900): Rygel-WARNING **: Failed to create RootDevice for
MediaExport. Reason: No value available


(rygel:8900): Rygel-WARNING **: Failed to create RootDevice for Playbin.
Reason: No value available


(rygel:8900): Rygel-WARNING **: Failed to create RootDevice for
MediaExport. Reason: No value available

(rygel:8900): Rygel-WARNING **: Failed to create RootDevice for Playbin.
Reason: No value available
Rygel-Message: New plugin 'org.gnome.UPnP.MediaServer2.DVBDaemon' available
Rygel-Message: rygel-thumbnailer.vala:132: No D-Bus thumbnailer available
^C

Comment: does not run properly.
Comment: replace the global config file to prove it works again

$
$ su
Password:
# mv /etc/rygel.conf.notused /etc/rygel.conf
# exit
exit

$ rygel
Rygel-Message: rygel-main.vala:87: Rygel v0.20.3 starting...
Rygel-Message: New plugin 'MediaExport' available
Rygel-Message: New plugin 'Playbin' available
MediaExport-Message: 'file:///home/Me/Music' harvested
Rygel-Message: rygel-thumbnailer.vala:132: No D-Bus thumbnailer available
MediaExport-Message: 'file:///home/Me/Videos' harvested
MediaExport-Message: 'file:///home/Me/Pictures' harvested
^C

Comment: it does, but only does so when both conf files are present !

$ yum list rygel
Installed Packages
rygel.x86_64
0.20.3-1.fc20                                        @updates

Another thing... I Googled extensively for ideas when I was troubleshooting
my rygel installations.   Never once did I get content from the rygel
mailing list.  ?????

I hope this helps other people have an easier time installing rygel.

PS: rygel is a great app/ framework.  Kudos to the developers and
participants.
_______________________________________________
rygel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/rygel-list

Reply via email to