Cast local videos to your chromecast
Project description
Terminalcast
Command line tool to cast local video files to your chromecast.
Inspired by https://github.com/keredson/gnomecast
Supported media types
Checkout https://developers.google.com/cast/docs/media for your Chromecast model.
Use ffmpeg to convert unsupported files to a supported format:
ffmpeg -i '{input_file}' -metadata title="{title}" -map 0 -c:v {video_codec} -c:a {audio_codec} -c:s copy '{output_file}'
Supported Chromecast versions
In principle this should work with any Chromecast which is supported by https://github.com/home-assistant-libs/pychromecast.
In practice, I discovered that a Chromecast with Google TV enables you to control the player via the remote control, which is very nice.
Installation
pip install terminalcast
How is it working?
Terminalcast creates a little HTTP Server at your current machine and serves your media file there. Then it tells the Chromecast the play the stream served at your IP with the corresponding path. That's it! (The devil is in the details.)
Terminalcast uses Bottle to create a small app providing the media file. This app is served by Paste.
On the other hand Terminalcast detects and plays the media via PyChromecast.
For file information and conversion ffmpeg-python is used.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for terminalcast-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7812102311c6af61649ab3f9432cf16e05ecd37048f5bd5cfc733734bd9d1ab8 |
|
MD5 | 801773905bd7d5a68773b10e38dde3c4 |
|
BLAKE2b-256 | 9f11b28533ea3e3e9f31ac88941078abbe9fde393849b6d2d0ece1fc3cfd87fe |