Skip to main content

Cast videos (with subtitles) straight from your PC.

Project description

Kast


Seamlessly cast your local video files to chromecast type devices. Regardless of media containers, codecs or subtitles formats.

Features:


  • Detect cast devices in your local network.
  • Cast right away video files compliant with chromecast supported formats.
  • Automatically transcode and remux incompatible video files before casting.
  • Automatically convert subtitles.
  • Display local preview of streamed video.
  • Thanks to OS media integration, control your stream with regular remote media control applications intened for your platform. (e.g. KDE Connect for Plasma linux desktop)

Installation:


Platform native:

  • Windows - For familiar experience download installer from here.
  • Arch Linux - AUR package comming soon.

Using pip:

For satisfying user experience it is recommended to install the application in a separate virtual environment. You can use your favorite env creation method like conda or venv.

Installation from PyPI using venv:

python -m venv /path/to/your/venv
cd /path/to/your/venv
source bin/activate
python -m pip install kast

FAQ:


Device search or stream start does not succeed at first try.

It has been noticed that PCs connected via WiFi might encounter this issue. Scenario is the cast device is present in local network. However the application is unable to find or connect to it. Usually succeeding on second or consecutive trial. Easy solution seems to be using Ethernet connection if possible. It is planned to improve on the matter in upcoming releases.

Application failed to convert some of my subtitles claiming they are in incorrect format.

Some subtitles files might be malformed and not compliant to their formats standards. Although other media players may still be able to interpret them correctly. That might be due to some internal correction procedures. Regardless the subtitles conversion module is planned to be improved in future releases.

Local preview does not display subtitles.

Short answer: Subtitles are not currently supported in local preview.

Detailed answer: The preview is basically a QMediaPlayer instance. Which does not provide a way to display captions. Not to mention numerous other issues it has brought that required specific workarounds. So it is definitely planned to replace it in future releases.

I have black screen on local preview on Windows.

Easiest solution: Use binary release which comes with preinstalled fix.

Easy solution: Install codec pack like K-Lite or similar.

Advanced solution: (Read until the end!) Download widows_qt_media_tweak.py and run on your venv. Keep in mind that it is a destructive patch. Use it only if you have a separate venv for the application.

Explanation: PyQt for Windows comes with support for two different media renderers. Direct Show and Windows Media Foundation. The former is older and does not support properietary codecs. Unfortunately it's used by default and not switchable for: Qt < 5.15.5 Patch from advanced solution removes Direct Show DLL to prevent Qt from loading it.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kast-1.0.2.tar.gz (107.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page