Live data from Hacker News

Show HN: Control Chromecasts from Linux

github.com

21–30 of 74 posts

Re: Show HN: Control Chromecasts from Linux

#21
post #4

Thanks for this, I can't wait to test it out. Are there other ways to control chromecasts from Linux? I used to be able to cast straight from Chromium, but that hasn't worked for me in at least a couple years.

You can still control chromecasts from Chrome on linux.

Re: Show HN: Control Chromecasts from Linux

#22
post #5
post #4

Thanks for this, I can't wait to test it out. Are there other ways to control chromecasts from Linux? I used to be able to cast straight from Chromium, but that hasn't worked for me in at least a couple years.

VLC has a native client afaik. Edit: included since v3.0 https://www.videolan.org/developers/vlc-branch/NEWS

The VLC client is "barebones" - even simple functionality like adjusting the volume is missing. If the network connection drops, the chromecast stops playing (regular chromecast would continue). There is no support for subtitles, alternate audio/video tracks, audio effects, video playback speed, or pretty much anything else.

Seeking is supported tho, as are audio-only files.

Re: Show HN: Control Chromecasts from Linux

#23
post #7
post #5

Earlier quoted context omitted.

VLC has a native client afaik. Edit: included since v3.0 https://www.videolan.org/developers/vlc-branch/NEWS

Good to know, thanks. Usually I'm interested in either casting a browser window, or even the whole screen usually, which I've been coming up short on.

Casting a browser or whole screen can be done with Chrome/Chromium on Linux. Whole screen doesn't work with wayland. Redirecting system audio doesn't work either.

If you redirect a tab which is mostly a single video file, it is smart enough to do the video decoding directly on the chromecast, so you get much better quality/framerate.

Re: Show HN: Control Chromecasts from Linux

#24
post #16
post #11

Any way to cast zoom calls from my android zoom app to TV via Chromecast ?

You can cast your device's screen, but you'll still have to rely on the device's camera and mic. You'll probably want to avoid outputting the sound on the TV or you'll get a feedback loop. And there's going to be a slight delay, which might be annoying with a realtime conversation. So it might not be a great idea from the start.

You'll also end up with 15 fps, high CPU usage, and random hangs... It works, but isn't really usable...

Re: Show HN: Control Chromecasts from Linux

#27

If you don't want a Google device on your LAN and are willing to put in a little bit more work for that, I've found that remotely controlling an instance of mpv over the JSON IPC interface works well for me. I can send it URLs from the web or paths to local files. My client for this isn't currently public, but it's a rather easy interface that some of you may find it easy enough to integrate into your other systems.…

If you haven't, you should check mpd (music player daemon). Lots of clients, works very well.

Re: Show HN: Control Chromecasts from Linux

#28

If you don't want a Google device on your LAN and are willing to put in a little bit more work for that, I've found that remotely controlling an instance of mpv over the JSON IPC interface works well for me. I can send it URLs from the web or paths to local files. My client for this isn't currently public, but it's a rather easy interface that some of you may find it easy enough to integrate into your other systems.…

This is my preference as well! I even wrote an Android client app / Python server to control it from my phone.

https://github.com/mcastorina/mpv-remote-app

Re: Show HN: Control Chromecasts from Linux

#29
post #15

does chromecast still require WAN access to operate?

I believe so, and it's less than useful on network with a captive portals like hotel rooms. At least the upcoming Chromecast with Google TV comes with a remote, so you should be able to interact with the captive portal and use it that way.

While the chromecast's inability to work with captive portals is it's own problem, they make tiny wifi routers, half as tall and twice as thick as a smartphone, and they're cheap. If you find yourself facing captive portals more than once, I'd recommend buying one so you can use your Chromecast in hotel rooms, among other use cases.

Re: Show HN: Control Chromecasts from Linux

#30
post #14

Author of pychromecast here, the underlying library that this project uses to control the Chromecast. I wrote this lib initially for use in Home Assistant, https://www.home-assistant.io For Home Assistant I made a rule that all device drivers are stand-alone Home Assistant agnostic Python packages. That way more projects can use it. Glad to see that strategy is working out and it powering projects like this

It would be incredible if there was a way to use mpsyt to watch Youtube videos with your library.
Post reply on HN