Page 1 of 1
VLC Chromecast casting via command line?
Posted: 10 Mar 2018 19:38
by NiN^_^NiN
I tried to cast a video with VLC through command line and I don't seem to be able to do it.
I can cast via gui without issues but this won't work with the below code
vlc "D:\test.avi" --sout-chromecast-ip=192.168.1.1
I've also tried various combo's like
vlc "D:\test.avi" --sout-chromecast-ip="192.168.1.1"
vlc "D:\test.avi" --sout-chromecast-ip="192.168.1.1" --sout-chromecast-video
vlc "D:\test.avi" --sout-chromecast-ip=192.168.1.1 --sout-chromecast-video
I have confirmed that the IP address is correct for the chromecast as wel
Any ideas?
Also found out that I can't cast if i turn HTTP on for web interfaces
Re: VLC Chromecast casting via command line?
Posted: 06 Jun 2018 13:27
by Jean-Baptiste Kempf
--sout "#chromecast" --sout-chromecast-ip=192.168.1.1
Re: VLC Chromecast casting via command line?
Posted: 21 Jun 2018 00:14
by o0lll0o
--sout "#chromecast" --sout-chromecast-ip=192.168.1.1
While casting using the GUI works perfectly fine, I can't get the command line to work properly.
It launches, but quickly stops because the playback is like fast forwarding.
I'm looking forward to use this in my personal scripts, and hoping for a fix
Re: VLC Chromecast casting via command line?
Posted: 22 Jun 2018 00:02
by Jean-Baptiste Kempf
You need the demux_filter too.
Re: VLC Chromecast casting via command line?
Posted: 22 Jun 2018 14:18
by o0lll0o
Thank you for the fast reply.
Gotcha! I will try that
Re: VLC Chromecast casting via command line?
Posted: 19 Jul 2018 04:03
by NiN^_^NiN
Totally didn't see these replies so I thought i'd post the full command as I have seen some people having issues.
Code: Select all
vlc "c:\video\test.mp4" --sout "#chromecast" --sout-chromecast-ip=192.168.0.103 --demux-filter=demux_chromecast
Re: VLC Chromecast casting via command line?
Posted: 29 Mar 2019 19:22
by jbeadle
I can't seem to auto stream it to a group, but I can to one google audio. Any suggestions on how to get it to send to a group? I can do it in the GUI, but not sure on cmd.
Re: VLC Chromecast casting via command line?
Posted: 30 Mar 2019 20:49
by jsdray
I would also like to know if group casting from command line is possible. Pulling out my hair trying to find some way of doing it!
Hope somebody will post soon.
Re: VLC Chromecast casting via command line?
Posted: 01 Apr 2019 11:29
by unidan
Hi, I don't think group casting is currently supported for the control part.
Re: VLC Chromecast casting via command line?
Posted: 26 Oct 2019 00:24
by jasper314
I managed to cast to an audio group. For me, the group had the same ip as one of the chromecasts in the group, but with different port, which I could set with --sout-chromecast-port=42276
I found the port using pychromecast in python:
> import pychromecast
> chromecasts = pychromecast.get_chromecasts()
> chromecasts
[Chromecast('192.168.0.200', port=8009, device=DeviceStatus(friendly_name='Family Room TV', model_name='Chromecast', manufacturer='Unknown manufacturer', uuid=UUID('9e4a41b9-2e18-9b6b-899d-2244eaad2f39'), cast_type='cast')),
Chromecast('192.168.0.242', port=8009, device=DeviceStatus(friendly_name='Dining Room speaker', model_name='Chromecast Audio', manufacturer='Unknown manufacturer', uuid=UUID('553b3b0f-8094-6941-1bba-2b9898a91268'), cast_type='audio')),
Chromecast('192.168.0.242', port=42276, device=DeviceStatus(friendly_name='Living + Dining', model_name='Google Cast Group', manufacturer='Unknown manufacturer', uuid=UUID('c244a41e-8112-471e-acf8-434d3da0c13e'), cast_type='group')),
Chromecast('192.168.0.87', port=8009, device=DeviceStatus(friendly_name='School room TV', model_name='Chromecast', manufacturer='Unknown manufacturer', uuid=UUID('25be69ff-09c6-a94b-6cba-fa4fe65ffbb2'), cast_type='cast'))]
Not sure how to find the port without python, if anyone knows?