How to stream to Chromecast using VLC

chromecastvlc

I just downloaded VLC 3.0 Beta (using ubuntu ppa) and I wanted to know how to set it up to stream to chromecast. It's in the repo's NEWS that the feature has been added. Numerous news outlets are covering it. But, there is no example of how to actually use it yet.

I know it's not in the GUI (having searched the source code). And, I have no idea how to use the code from the command line.

Here is the Ubuntu PPA that I used to install it. However, it shouldn't matter. Nor, should the OS or system matter. It's just software. You can build it yourself or download a binary ("nightly") here.

Best Answer

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
Related Question