You are not logged in.

#1 2018-03-09 18:28:17

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Can't cast to Chromecast from VLC

I've been trying to cast from VLC to my Chromecast since they added that feature in the 3.0 release, so far unsuccesfully.
VLC doesn't detect my chromecast from the GUI and if I try from the cli with this command
vlc --sout="#chromecast{ip=192.168.1.41}" video
I get this error :
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.

I looked around the internet for a solution and found this which seems related to my issue
https://bugs.debian.org/cgi-bin/bugrepo … bug=885127
I installed gnutls28 from the aur, but that didn't fix it, am I missing something or is my issue something else?

Thanks in advance!

Last edited by LucetLux (2018-03-09 18:31:06)

Offline

#2 2018-03-09 19:15:42

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: Can't cast to Chromecast from VLC

Did you install the optional deps?

Online

#3 2018-03-09 19:41:55

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: Can't cast to Chromecast from VLC

I was actually missing a few, sigh, now with all the opt depends installed I get a bit further but it gives me this eror with every video file I tried:
stream_out_chromecast stream out error: Media load failed

Thanks for your help!

Last edited by LucetLux (2018-03-09 19:42:14)

Offline

#4 2018-03-10 12:33:10

Gosi
Member
From: Vienna, Austria
Registered: 2010-02-25
Posts: 100

Re: Can't cast to Chromecast from VLC

To rectify the tls error I executed the steps described in comment #20 in the aforementioned bugreport.

To accept the Chromecast certificate:
1. Get the certificate with gnutls-cli
$ gnutls-cli --save-cert=chromecast.pem 192.168.1.14:8009

2. Start VLC with the --gnutls-dir-trust option
$ vlc -vv --gnutls-dir-trust=/home/$USER
--sout="#chromecast{ip=192.168.1.14}" <video file>

3. A pop-up window appears with a "Insecure site" warning. Here you can 
accept the certificate.

Which gets me this output when I try to cast a video:

[00007f06a8003e80] 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. 
[00007f06a8003e80] gnutls tls client: Accepting self-signed/untrusted CA certificate.

But still, casting does not really work. I have yet to find a video which is not a stuttering mess.

That seems to be the reason why the chromcast renderer is disabled in the GUI for the linux build.

Offline

#5 2018-03-10 17:07:26

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: Can't cast to Chromecast from VLC

Oh, so I guess it's not really working as of yet, I hope they'll get it working later, thanks a lot for your help!

Offline

#6 2018-03-10 20:03:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: Can't cast to Chromecast from VLC

It works fine for me, and I know others have done it as well.

Online

#7 2018-03-10 21:57:08

Gosi
Member
From: Vienna, Austria
Registered: 2010-02-25
Posts: 100

Re: Can't cast to Chromecast from VLC

It works for me too now.

After checking the optional deps for the 3rd or 4th time I finally noticed that I did not install libmicrodns.

With that you can select the chromecast renderer in the playback menu.

Offline

#8 2018-03-11 00:15:51

LucetLux
Member
Registered: 2013-08-16
Posts: 165

Re: Can't cast to Chromecast from VLC

I have installed all of the optional dependencies (even the ones that don't make sense for this) and it still isn't working, I am trying to do this from a wired computer in case that has something to do with it.

Offline

#9 2018-03-12 00:16:12

simona70
Banned
Registered: 2017-01-08
Posts: 41

Re: Can't cast to Chromecast from VLC

I see chromecast device (SONY android TV 55") in list and I select it but video and audio do not start and nothing happens in chromecast.

Offline

#10 2018-04-15 12:40:13

shrinathk
Member
Registered: 2016-10-22
Posts: 10

Re: Can't cast to Chromecast from VLC

The Wiki says that you must install libmicrodns and protobuf for Chromecast support. Installing these two packages worked for me.

For some reason, subtitles are not working. Still investigating.

Offline

#11 2020-03-29 12:39:33

Ulilop
Member
From: CDMX, México
Registered: 2020-03-27
Posts: 5

Re: Can't cast to Chromecast from VLC

I'm having the same issue, did you manage to fix it? (The optional dependencies are installed, I can ping the chromecast device from my computer. Still doesn't work.)

Last edited by Ulilop (2020-03-29 12:41:04)

Offline

#12 2020-04-28 06:54:35

parkour_peter
Member
Registered: 2020-04-28
Posts: 6

Re: Can't cast to Chromecast from VLC

I also had to start the avahi-daemon.service with systemctl to get it working. Although I don't remember if I disabled it myself.

Last edited by parkour_peter (2020-04-28 06:54:55)

Offline

Board footer

Powered by FluxBB