VLC not streaming to chromecast

Hey guys, any idea why VLC is not been able to stream to chromecast?
The chromecast becomes black and I can see just the movie tittle (años then title disappear).

Here my nixos config: https://github.com/wllianwd/my-nix-os/blob/225188ead8c255167fd395a3ec20ea1960d5e31a/system/configuration.nix

Here the logs:

VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[00000000014e4610] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[00000000015733d0] main playlist: playlist is empty
libva info: VA-API version 1.13.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f1e90001fe0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.13.0
libva info: Trying to open /run/opengl-driver/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
[00007f1eab018130] avcodec decoder: Using Mesa Gallium driver 21.2.5 for AMD Radeon RX 5600M (NAVI10, DRM 3.42.0, 5.15.4, LLVM 13.0.0) for hardware decoding
[00007f1f4467e9c0] avahi renderer discovery: service 'Google-Nest-Mini-9252946f770d717315db50c05e5a4831' of type '_googlecast._tcp' in domain 'local' port 8009
[00007f1f4467e9c0] avahi renderer discovery: service 'Chromecast-a5986104f4e4954f8c3c0c01f7176573' of type '_googlecast._tcp' in domain 'local' port 8009
[00007f1f4467e9c0] avahi renderer discovery: service 'Chromecast-0c16f98f3663e8bc3aa068d0049709ce' of type '_googlecast._tcp' in domain 'local' port 8009
[00007f1e9809ed90] gnutls tls client error: Certificate verification failure: The certificate is NOT trusted. The certificate issuer is unknown. The name in the certificate does not match the expected. 
[00007f1e9809ed90] gnutls tls client: Accepting self-signed/untrusted CA certificate.
[00007f1ea8c06480] stream_out_chromecast stream out error: Media load failed
[00007f1e908023c0] avcodec encoder error: Unknown option "border_mask"
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[00007f1e908023c0] avcodec encoder error: Unknown option "border_mask

[00007f1e908023c0] avcodec encoder error: Unknown option “border_mask”
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory

Focus on this

Hey @rofrol , I was able to get rid of this error by adding a “VDPAU_DRIVER=radeonsi”.
Anyway the issue is still the same, when start streaming the chromecast seems to receive but screen remains black.

Maybe someone else will help. I still haven’t set nvidia prime correctly.

Hey sorry, so I just figured out the issue was just the firewall for port 8010 used by VLC for stream.

networking.firewall.allowedTCPPorts = [ 8010 ];

That fixed the issue.

Other errors that are in the above log seems that does not affect the stream.

2 Likes