The Chromecast is an ultimate handy gadget to stream movies or music from Netflix, YouTube, or even Facebook from your mobile to your TV. Not only from the mobile devices, you can use Chromecast to cast media from your PC/laptops to your TV. It can be your modern day alternative for your projector to cast your projects from PC to a big screen. Chromecast works fine with PC/laptop with any operating system like Windows, Linux, etc. All the modern day TVs now come with HDMI ports making it easy for Chromecast to turn any TV into a smart TV.
Related: How to Use Google Chromecast with iPhone, iPad or iPod Touch
It is simple to cast video and audio to your TV from Linux based PC using Chromecast or Google cast devices with Mkchromecast. It is written in Python, and it streams via node.js,
Information Use !!
Concerned about online trackers and introducers tracing your internet activity? Or do you face geo-restrictions while streaming? Get NordVPN - the ultra-fast VPN trusted by millions, which is available at 69% off + 3 Months Extra. With the Double VPN, Split tunneling, and Custom DNS, you can experience internet freedom anytime, anywhere.
How To Cast Video from Ubuntu to Chromecast
Firstly you need to download Mkchromcast to cast videos and other media to TV.
Download Mkchromcast for Linux
Click the below link to download the Mkchromcast to your Linux based PC.
Download Mkchromecast
The Video casting works on both node and FFmpeg backends. Ensure that you have paired the Chromecast with Mkchromecast using the Mkchromecast tray applet. Do not forget to quit the tray applet before casting a video to Chromecast, else you will get issues out of that.
Now open a new Terminal window and run:
mkchromecast –video -i “/path/to/file.mp4”
If you want, you can specify a backend to process the video.
mkchromecast –video -i “/path/to/file.mp4” –encoder-backend ffmpeg
If you want to cast videos with subtitles, just pass –subtitles flag and point the app to a matching .srt file
mkchromecast –video -i “~/Videos/Example.mkv” –subtitles ~/Videos/Example.srt
To cast videos files that are online using their URL, use the –source-url flag
mkchromecast –source-url http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 -c mp4 –volume –video
It is also possible to cast YouTube videos using this method, but have in mind that the videos will be downloaded first and then it will cast the video to TV.
If you have doubts in downloading and converting youtube videos, check this link youtube converter mp4.
mkchromecast -y https://www.youtube.com/watch?v=NxD_kWK8A5M –video
Read also
- How to Watch Popcorn Time on Chromecast? 2019
- How to Watch Sling TV on Chromecast?
Hope you will now be able to cast your videos, music, or other media content to your TV from a Linux PC. Comment below for doubts or clarifications.
Disclosure: If we like a product or service, we might refer them to our readers via an affiliate link, which means we may receive a referral commission from the sale if you buy the product that we recommended, read more about that in our affiliate disclosure.