Use Gnomecast to cast videos to Chromecast on Linux

Midget Broadcast Provides a very simple method to cast local video and audio files from Linux to Chromecast devices. It is very suitable for quickly playing audio or video files on Chromecast without waiting for some media servers to index them. Although it uses a very basic interface and you won’t find many advanced options, this Gnome (using Gtk+ and Python) Chromecast player can meet most of your needs. In addition to play/pause, control volume or search, Gnomecast also allows you to add subtitles, and can automatically transcode audio and video files that cannot be played straight Provided by Google Chromecast device. Related: Use Cast to TV Extension to transfer videos, music and pictures from Gnome to Chromecast.

  • Play audio and video files on Chromecast devices
  • Real-time transcoding when needed (using ffmpeg)
  • Subtitles: embedded and external SRT files
  • Can play 4K videos on Chromecast Ultra
  • Quick scrub

Some features that Gnomecast currently lacks (but may be implemented in a future version) include: automatic pickup of subtitles in the same folder, direct connection to Chromecast via IP, and keyboard shortcuts. There is currently no playlist support.
Although Gnomecast officially only supports Linux, it seems to be Processing Related article: The command line Chromecast Player CATT also supports subtitles and website projection “But VLC can also cast local files!” Indeed, in version 3.0, VLC also added the function of allowing local files to be played on Chromecast, but for me not effectively. Obviously, Gnomecast cannot compete with VLC, but it does provide better Chromecast features and a simple and easy-to-use interface.
For more complex and feature-rich alternatives that can run on Linux, you may want to check Embi Either Plex Media server.

Install Gnomecast

Gnomecast can be found at GitHub .
The Gnomecast installation instructions mention using pip3 and sudo to install the application. This is not recommended because it may cause problems, so follow the instructions below, Gnomecast is only installed for current users, so it will not interfere with your system.
1. Add ~/.local/bin Give you PATH (If not already added). Export at the same time PYTHONPATH Such as /usr/lib/python3/dist-packages:$PYTHONPATH Avoid letting apps get Python modules from ~/.local/lib.
You can do this manually or you can run the following command (and source .bashrc / .zshrc ):
-For Bash:

                        echo "export PATH="$PATH:$HOME/.local/bin"" >> ~/.bashrc
echo "export PYTHONPATH="/usr/lib/python3/dist-packages:$PYTHONPATH"" >> ~/.bashrc
. ~/.bashrc

-For Zsh:

                        echo "export PATH="$PATH:$HOME/.local/bin"" >> ~/.zshrc
echo "export PYTHONPATH="/usr/lib/python3/dist-packages:$PYTHONPATH"" >> ~/.zshrc
. ~/.zshrc

2. Install Python3 PIP, Python3 Setuptools and FFmpeg.
In Debian / Ubuntu /Linux Mint, use:

                        sudo apt install python3-pip python3-setuptools ffmpeg

3. Install Gnomecast using Python3 PIP:

                        pip3 install --user gnomecast

If you get permission or errors when trying to install Gnomecast for the current user, this may happen because you used sudo to install some packages using Python3 PIP, which broke the use of PIP without sudo to install software Package process. In this case, please use “sudo” before the above command.
4. Log out and log in again.
Gnomecast should now appear in your menu.
To update Gnomecast installed with Python3 PIP, use:

                        pip3 install --user gnomecast --upgrade


Related Posts