Cast Videos To Chromecast On Linux With Gnomecast
Cast Videos To Chromecast On Linux With Gnomecast
linuxuprising.com/2018/05/cast-videos-to-chromecast-on-linux-with.html
Gnomecast offers a very easy way of casting local video and audio files to Chromecast
devices from Linux. It is ideal for quickly playing an audio or video file on your
Chromecast, without waiting for some media server to index it.
While it uses a very basic interface and you won't find many advanced options, this
Gnome (uses Gtk+ and Python) Chromecast player takes care of most things you'd need.
Besides being able to play / pause, control the volume or seek, Gnomecast lets you add
subtitles, and it automatically transcodes both audio and video files that can't be played
directly by Google Chromecast devices.
Gnomecast features:
Some features that are currently lacking in Gnomecast - but might be implemented in a
future release -, include automatically picking up subtitles in the same folder, connecting
directly to a Chromecast via IP, and keyboard shortcuts. There's no playlist support for
now either.
While it officially only supports Linux, Gnomecast appears to be working on MacOS too.
Related: Command Line Chromecast Player CATT Gets Support For Subtitles
And Website Casting
"But VLC can cast local files too!" Indeed, a feature to allow playing local files on
Chromecast was also added to VLC with version 3.0, but it never worked well for me.
Obviously, Gnomecast can't compete with VLC, but it does provide better Chromecast
functionality with a minimalistic, easy to use interface.
For more complex and feature-rich alternatives that can run on Linux, you may want to
check out Emby or Plex media servers.
Install Gnomecast
1/3
Gnomecast can be found on GitHub.
The Gnomecast installation instructions mention using pip3 with sudo for installing the
app. This is discouraged as it may cause issues, so using my instructions below,
Gnomecast is installed for the current user only, so it doesn't interfere with your system.
1. Add ~/.local/bin to your PATH (if it's not already added). Also export the
PYTHONPATH as /usr/lib/python3/dist-packages:$PYTHONPATH to avoid having
apps picking up Python modules from ~/.local/lib.
You can do this manually or run the following command (and source .bashrc /
.zshrc ):
- for Bash:
- for Zsh:
If you get some permission or errors when trying to install Gnomecast for the current
user, it might happen because you previously used sudo to install some package using
Python3 PIP, which broke installing packages using PIP without sudo. In such cases, use
"sudo" before the command above.
2/3
pip3 install --user gnomecast --upgrade
3/3