Reply to topic

pulseaudio_dlna -> chromecast audio

User avatar minson
Registered Member
Posts
15
Karma
0

pulseaudio_dlna -> chromecast audio

Wed Dec 09, 2020 1:39 pm
Focal fully updated
KDE Neon fully updated
pulseaudio-dlna installed from pulseaudio-dlna_0.5.3+git20200329-0.1_all.deb

Is anyone successfully using pulseaudio-dlna to play to a chromecast audio ?
When I attempt this I get

12-09 08:27:06 pulseaudio_dlna.pulseaudio INFO Instructing the device "ccAporch (Chromecast)" to play ...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/pulseaudio.py", line 773, in _handle_sink_update
result = future.result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/pulseaudio.py", line 817, in __handle_sink_update
return_code, message = bridge.device.play(
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/plugins/chromecast/renderer.py", line 72, in play
url = url or self.get_stream_url()
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/plugins/renderer.py", line 350, in get_stream_url
return self._encode_settings(settings, 'stream.' + self.codec.suffix)
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/plugins/renderer.py", line 329, in _encode_settings
server_ip = pulseaudio_dlna.utils.network.get_host_by_ip(self.ip)
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/utils/network.py", line 50, in get_host_by_ip
return __pyroute2_get_host_by_ip(ip)
File "/usr/lib/python3/dist-packages/pulseaudio_dlna/utils/network.py", line 69, in __pyroute2_get_host_by_ip
routes = ipr.get_routes(family=socket.AF_INET, dst=ip)
File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 366, in get_routes
return self.route('get', dst=kwarg['dst'])
File "/usr/lib/python3/dist-packages/pyroute2/iproute/linux.py", line 1798, in route
kwarg = IPRouteRequest(kwarg)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/req.py", line 87, in __init__
IPRequest.__init__(self, obj)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/req.py", line 29, in __init__
self.update(obj)
File "/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/req.py", line 41, in update
self[key] = v
File "/usr/lib/python3/dist-packages/pyroute2/netlink/rtnl/req.py", line 387, in __setitem__
mask = int(value[1])
ValueError: invalid literal for int() with base 10: '119,192.168.1.154'

I filed a bug back in July but no action so far .
Playing to my HEOS device works .
User avatar strohel
KDE Developer
Posts
54
Karma
0
OS
Hi, I suffer from the same problem.

This seems to be a bug in pulseaudio-dlna. This has been already reported in https://github.com/masmu/pulseaudio-dlna/issues/397

Note though that the upstream of pulseaudio-dlna seems not to be active anymore.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], hierophant, JesusM, kde-ed, rblackwell, Yahoo [Bot]