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.