Rygel v0.28.2 on Fedora 23/pulseaudio - using Kodi as Renderer fails



Hi, my use case is: trying to redirect the audio of some applications from my linux desktop to a Kodi HTPC using DLNA/Rygel, using FLAC to encode

Kodi complains that it is "unable to play the file". Tried other encoders (vorbis, mp3), same error.

I tried running kodi in the linux desktop itself, and the same error happens - this rules out issues with the Firewall.


This is from /etc/rygel.conf:

[[GstLaunch]
enabled=true
launch-items=mypulseaudioflac;myaudiomp3;myaudiowav
mypulseaudioflac-title=Flac Stream on @HOSTNAME@
mypulseaudioflac-mime=audio/flac
mypulseaudioflac-launch=pulsesrc device=upnp.monitor ! flacenc

myaudiomp3-title=MP3 Stream on @HOSTNAME@
myaudiomp3-mime=audio/mpeg
myaudiomp3-launch=pulsesrc device=upnp.monitor ! lamemp3enc target=quality quality=6

myaudiowav-title=Wave Stream
myaudiowav-mime=audio/x-wav
myaudiowav-launch=pulsesrc device=upnp.monitor ! wavenc




Kodi UPNP browser can see "GstLaunch" and can also see the list of streams, however, playback attempts fail.


Here is a sample of the Kodi log:

03:18:29 17000.503906 T:942666784   ERROR: Stat - Error statting upnp://2afe1ae9-20b5-4153-9cb4-5fe5f97fba13/mypulseaudioflac/
03:18:29 17000.587891 T:1420551200  NOTICE: libspotify: music delivery samples = 1368
03:18:29 17000.599609 T:1086321696   ERROR: Unable to lookup host: 'pulsesrc device=upnp.monitor ! flacenc'
03:18:29 17000.623047 T:1086321696   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc
03:18:29 17000.623047 T:1086321696   ERROR: Stat - Error statting upnp://2afe1ae9-20b5-4153-9cb4-5fe5f97fba13/mypulseaudioflac/
03:18:29 17000.638672 T:1005573152   ERROR: Unable to lookup host: 'pulsesrc device=upnp.monitor ! lamemp3enc target=quality quality=6'
03:18:29 17000.656250 T:1005573152   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.2:65530/GstLaunch/i/bXlhdWRpb21wMw%3D%3D/res/primary_http.monitor ! lamemp3enc target=quality quality=6
03:18:29 17000.656250 T:1005573152   ERROR: Stat - Error statting upnp://2afe1ae9-20b5-4153-9cb4-5fe5f97fba13/myaudiomp3/
03:18:30 17000.732422 T:1420551200  NOTICE: libspotify: music delivery samples = 1368
03:18:31 17002.175781 T:1257239584  NOTICE: Previous line repeats 7 times.
03:18:31 17002.175781 T:1257239584   ERROR: Unable to lookup host: 'pulsesrc device=upnp.monitor ! flacenc'
03:18:31 17002.191406 T:1257239584   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc
03:18:31 17002.193359 T:1257239584   ERROR: Stat - Error statting upnp://2afe1ae9-20b5-4153-9cb4-5fe5f97fba13/mypulseaudioflac/
03:18:31 17002.318359 T:1958351408   ERROR: Unable to lookup host: 'pulsesrc device=upnp.monitor ! flacenc'
03:18:31 17002.333984 T:1420551200  NOTICE: libspotify: music delivery samples = 1368
03:18:31 17002.396484 T:1958351408   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc
03:18:31 17002.404297 T:1958351408   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 400
03:18:31 17002.404297 T:1958351408   ERROR: CCurlFile::Open failed with code 400 for http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc
03:18:31 17002.404297 T:1958351408   ERROR: Open - failed to open source <http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc>
03:18:31 17002.404297 T:1958351408   ERROR: Init: Error opening file http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc
03:18:31 17002.404297 T:1958351408   ERROR: CAudioDecoder: Unable to Init Codec while loading file http://192.168.1.2:65530/GstLaunch/i/bXlwdWxzZWF1ZGlvZmxhYw%3D%3D/res/primary_http.monitor ! flacenc
03:18:31 17002.404297 T:1958351408 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder


The "unable to lookup host" line is really weird.

This is what Rygel shows in the console (with 3 enconders/streams enabled, Kodi tries them all as they all fail):


$ rygel
Rygel-Message: rygel-acl.vala:143: No ACL fallback policy found. Using "allow"
Rygel-Message: Rygel v0.28.2 starting…
RygelCore-Message: New plugin 'MediaExport' available

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! flacenc. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! lamemp3enc target=quality quality=6. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! wavenc. Assuming 'gst-launch'
RygelCore-Message: New plugin 'GstLaunch' available

(rygel:25518): GLib-GIO-CRITICAL **: g_inet_address_new_from_string: assertion 'string != NULL' failed

** (rygel:25518): WARNING **: Error creating GUPnP context: Failed to find IP of interface virbr0-nic

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! flacenc. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! lamemp3enc target=quality quality=6. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! wavenc. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! lamemp3enc target=quality quality=6. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! flacenc. Assuming 'gst-launch'

(rygel:25518): RygelServer-WARNING **: Failed to probe protocol for URI gst-launch://pulsesrc device=upnp.monitor ! wavenc. Assuming 'gst-launch'



Any hint on what I could be doing wrong?

Thanks!!





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