18

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
24

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
  • 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=192.168.1.80}' ./video.mp4" ([Errno 2] No such file or directory) – Bobby S Mar 12 '17 at 0:24
7

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

enter image description here

  • 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
2

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! 
  • 11
    This currently only works for Windows – kurdtpage Mar 4 '17 at 8:48
0

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.

Sources:

-1

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.
  • 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.