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.

  • I would recommend mkchromecast Worked like a charm with me from Ubuntu. VLC didn't work for me. – Jayesh Mar 29 '18 at 15:34

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
| improve this answer | |
  • That's great. It works for me perfectly (Chromecast 2)! (first command). Installed nightly VLC 3.0 (the Renderer couldn't detect the device but command line version is working like a charm) – bakytn Oct 7 '16 at 14:56
  • I have a stream open, and I am trying to restream it through chromecast. However, I am getting the error: error: Failed to start player: "/usr/bin/vlc --sout='#chromecast{ip=}' ./video.mp4" ([Errno 2] No such file or directory) – Bobby S Mar 12 '17 at 0:24

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.


enter image description here

| improve this answer | |
  • 1
    ^^^ Wonderful app ^^^ No need to futz about with VLC building from source. ^^^ does require Python 3 run-time to be installed -- Runs great on Mint 18.2 – RyanNerd Mar 23 '18 at 22:55

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/


Video > Renderer > Scan
Video > Renderer > "Chromecast"
Play media with VLC! 
| improve this answer | |
  • 11
    This currently only works for Windows – kurdtpage Mar 4 '17 at 8:48
  • 2
    @kurdtpage just tested, works on KDE Linux VLC 3.0.8 – Daniels Šatcs Mar 27 at 21:25

This now seems to be available via the GUI using VLC v3 on linux:

  1. Play video
  2. Playback > Renderer > your_chromecast_device_name

That's working for me with a .mkv video.

| improve this answer | |

If VLC doesn`t stream to your chromecast device is because the firewall blocks the ports. Turn the firewall off and enjoy!

| improve this answer | |
  • 1
    Why would someone who's gone to the effort of setting up a firewall want to turn it off? Surely it would be better to relax one or more of the restrictions? – roaima May 24 at 23:19

If you have Chrome/ium, you can cast any window to Chromecast. This is how you do it:

  1. From any page on your browser (i.e., its startpage), right click an choose "Cast"
  2. From the pop-up window, choose to cast your desktop (instead of just one tab)
  3. On the next screen, choose to cast from a particular window (instead of the whole desktop)
  4. Then, choose VLC or whatever else you'd like to cast

P.S.: Audio won't be cast using this method.
P.P.S.: Chromium may have trouble finding your Chromecast; to solve it, you must enable its chrome://flags/#load-media-router-component-extension flag.


| improve this answer | |

Chrome can stream local videos to Chromecast. You just play the video in a tab and cast that tab. Specifically:

  1. Hit Ctrl-o to open a local video file and play it in your browser.
  2. From Chrome's overflow menu (vertical ...), choose Cast ...
  3. Choose your Chromecast receiver and the video will now be playing on TV
  4. From the video controls on the bottom-right, expand the video to full screen. It will now be playing full screen on your TV and the audio should also be playing from your TV.
| improve this answer | |
  • Video is only presented as download and does not open so this is not working for me – Benjamin Aug 21 '18 at 18:39
  • Works fine for me and is documented here howtogeek.com/233810/… – mahemoff Aug 22 '18 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.