Re: Rygel created UPnP stream help please



Thanks Jens, getting close :-)

This works, using XBMC as renderer:

python /opt/push2play/rendererconsole.py --rendererPath=/com/intel/RendererServiceUPnP/server/1 --playURI=http://192.168.1.113:1122/GstLaunch/i/dGVzdA==.mp3

And I hear a 1khz tone.

But trying the same command on Onkyo receiver produces:

Traceback (most recent call last):
  File "/opt/push2play/rendererconsole.py", line 349, in <module>
    renderer.play()
  File "/opt/push2play/rendererconsole.py", line 102, in play
    self.__playerIF.Play()
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: com.intel.RendererServiceUPnP.OperationFailed: Operation failed: Resource not found

And Rygel say:


(rygel:15141): Rygel-WARNING **: rygel-http-request.vala:91: Invalid seek request

Removing ".mp3" part makes no difference.

Your help is very much appreciated!

For the reference :

rygel --version
Rygel 0.12.7

(I tried to compile current version of Rygel but failed miserably with my head spinning in version dependency nightmare (on Fedora 16). Hopefully this is not one of the issues that was fixed since this version....)


Here is my rygel.conf :

[general]
upnp-enabled=false
enable-transcoding=true
enable-mp3-transcoder=true
enable-lpcm-transcoder=true
enable-mp2ts-transcoder=true
enable-wmv-transcoder=true
video-upload-folder= VIDEOS@
music-upload-folder= MUSIC@
picture-upload-folder= PICTURES@
interface=
port=1122
log-level=*:4
allow-upload=true
allow-deletion=true
[Tracker]
enabled=false
share-pictures=true
share-videos=true
share-music=true
strict-sharing=false
title= REALNAME@'s media
[MediaExport]
enabled=false
title= REALNAME@'s media
uris= MUSIC@;@VIDEOS@;@PICTURES@
include-filter=.mp3;.oga;.ogv;.ogg;.mkv;.avi;.mp4;.m4v;.m4a;.mpeg;.mpg;.ts;.flac;.jpeg;.jpg;.png;.wav;.wma;.wmv;.asf;.mpc;.mpp;.wv;.aac;.mka;.mp2;.webm;.ape;.m2ts
extract-metadata=true
monitor-changes=true
[Playbin]
enabled=false
title=Audio/Video playback on @HOSTNAME@
[ZDFMediathek]
enabled=false
rss=508
update-interval=1800
video-format=wmv
[GstLaunch]
enabled=true
launch-items=test
test-title=Audio on @HOSTNAME@
test-mime=audio/mpeg
test-launch=audiotestsrc ! audioconvert ! audioresample ! lamemp3enc target=quality quality=6



Andrej Falout
NZ: +64(21)02566825 AU: +61(45)1166010 US: +1(360)4880970 HR:+385(91)1520436


On Fri, Mar 8, 2013 at 12:49 AM, Jens Georg <mail jensge org> wrote:
On Do, 2013-03-07 at 16:43 +1300, Andrej Falout wrote:
> Hi *,
>
>
> I am trying to use Rygel to create a UPnP compliant audio stream.
> Hopefully I did not misunderstand Rygel completely, and it can be used
> for this purpose (?)

Well we can't really guarantee the compliance. We assume it's matching
for files the have identified as such or our transcoded streams (apart
from WMV).
>
>
> To avoid any trans-coding issues at this stage, I defined a GstLaunch
> source as :
>
> my-launch=audiotestsrc ! audioconvert ! audioresample ! lamemp3enc
> target=quality quality=6
>
>
> This should generate a sine test tone and encode it as mp3
>
>
>
> I searched docs for a while trying to guess the URL of the stream the
> (hopefully) Rygel created with this configuration, but with no luck.

No, you can't really guess it if you don't know how URIs are generated.

> GstLaunch-Message: rygel-gst-launch-plugin.vala:28: Plugin 'GstLaunch'
> disabled by user, ignoring..

And with this line, you'll never be able to find it. You need to add
"enable=true" to the [GstLaunch] section.

> In short - how can I find out URL (port number) of the UPnP stream
> created by Rygel?

In general it's
http://ip:port/PluginName/i/SomeBase64EncodedStuff.extension

ip is the interface Rygel is bound to, port can either be configured in
rygel.conf or set via -p commandline parameter. "/i/" denotes an item
and the base64 stuff is plug-in specific and the extension optional

For GstLaunch it is the part before -launch, so in your case my.

Let's say you've started rygel with -p 12345 -n lo, you'd have something
like:

http://127.0.0.1:12345/GstLaunch/i/bXk= or
http://127.0.0.1:12345/GstLaunch/i/bXk=.mp3


> Is there a way to specify port for the stream that will be created,
> maybe even with mountpoint? (eg the xxx.mp3 part that I will pass to
> the renderer  after the http://hostname:port part)

Most of the time it's not possible to specify the filename.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]