I have two reasons to think that avahi is failing badly on my openSUSE Tumbleweed installation: I cannot stream media from my NAS via DLNA and I cannot stream a camera feed from my iPhone to OBS Studio via NDI. In both cases, the service is not detected at all by the relevant applications on my openSUSE PC. Both of these rely on network autodiscovery protocols (UPnP, Bonjour) that should be enabled by avahi. I have searched the web and tried many things but I’m still stuck.
DLNA/UPnP media service from NAS
My NAS is configured to serve media via DLNA/UPnP. I’m quite sure that this works, because VLC on my iPhone immediately lists the name of my NAS as an UPNP service and I can see and play all files. However, my PC is not able to detect the service.
I tried the VLC RPM package from the Tumbleweed repository, VLC from Flathub and Kodi from Flathub; none of them detects the service from the NAS. (In VLC, I show the library column at the left with ctrl-L, then click UPnP, then wait for the waiting animation to go away, after which nothing is listed.) I found various things I could look for on the internet and tried all of the following, but none of them made a difference:
- I verified that avahi-daemon was running (it already was).
- I turned off IPv6.
- I verified that the mdns service was enabled in the firewall (it already was).
- I added the upnp-client service, UDP ports 1900 and 49153 and TCP ports 2869 and 49153 to the firewall.
- I tried turning off the firewall entirely. It doesn’t appear to be a firewall issue.
- I added my user to the
avahigroup (and also thevideogroup, just in case it made a difference for the NDI issue).
After trying out all these things, still none of the DLNA-capable apps is detecting the DNLA media service. What else can I try? What logs might I consult in order to find out what is going wrong?
NDI camera stream from iPhone
I want to use my iPhone as a webcam on the PC. On my iPhone, I installed an app that makes its cameras available as NDI streams on the local network. On my PC, I installed OBS Studio and the Distro AV plugin, which adds NDI support to OBS Studio, both from Flathub. I also followed these and these instructions (except for the NDI installation instructions in the latter because NDI is already included with the Distro AV flatpak).
On the iPhone, I connect to wifi and disable wireless data to ensure that I’m broadcasting to the local network. Then, I start the NDI streaming app. It is very simple and starts filming and broadcasting right away. On the PC, I start OBS Studio, then in “Sources” panel at the bottom, click on the plus button and select “NDI Source”. In the floating window that appears, I choose “add existing”, but no existing NDI sources are listed. This is where avahi appears to be failing me.
I am not 100% sure that both issues have the same cause, but since both rely on avahi, I have a strong suspicion that this is the culprit. This is however more certain for the DLNA issue than for the NDI issue, because in the latter case, I have no other way to verify that the iPhone is actually broadcasting.
What might be wrong and how might I find out more? Any help much appreciated!