How do I stream to Chromecast using VLC?
Building VLC
If you have to build vlc yourself, make sure you have
--enable-sout
--enable-chromecast
Using VLC
Thus far this feature is not available under the GUI, however you can stream to Chromecast like this,
$ vlc --sout="#chromecast{ip=ip_address}" ./video.mp4
You can watch the video at the same time with
$ vlc --sout="#duplicate{dst=display,#chromecast{ip=ip_address}}" ./video.mp4
To make matters even better, you can actually add a delay on the video so it better syncs with the audio (sets the delay to 3100ms).
$ vlc --sout="#duplicate{dst=display{delay=3100},#chromecast{ip=ip_address}}" ./video.mp4
You can find the list of options support to chromecast here, they currently include
- ip
- port
- http-port
- mux
- mime
- video
I was unhappy w/ VLC's casting support, so I wrote a dedicated linux GUI for casting a video file. Might be of use to you, assuming your underlying goal is casting a file, not specifically with VLC.
https://github.com/keredson/gnomecast
There's a post on how to use it via GUI now: http://www.howtogeek.com/269272/how-to-stream-from-vlc-to-your-chromecast/
Basically:
Video > Renderer > Scan
Video > Renderer > "Chromecast"
Play media with VLC!