Chromecast is a simple but powerful device that lets you stream video, music, images, and other multimedia files to your widescreen TV. Chromecast for Linux lets you stream media from the most popular streaming sites such as YouTube, Netflix, Hulu, and more.
How to use Chromecast for Linux on broadcast media?
You can also stream social media videos like Facebook. Chromecast is primarily used for converting mobile phone racks to TVs. You can stream not only from mobile phones, but also from Windows and Mac. Likewise, you can even stream media to your TV from your Linux computer.
Chromecast replaces SmartTV by offering the same functionality as most smart TVs. With this little gadget, you can turn your regular TV into a smart TV. There are different versions of Chromecast devices available among them.
Chromecast Ultra provides you with very high quality videos, which means you can stream 4K video on your Widescreen TVs. Streaming media files using Chromecast is quite simple. You can convert your favorite video and audio files to your TV from a Linux computer.
Streaming content from Linux to Chromecast requires Mkchromecast. It helps you stream media content to Google streaming devices. The application is based on Python and streams via node.js, ffmpeg or avconv. Mkchromecast uses lossy and lossless audio formats, since ffmpeg, avconv (Linux), or parec (Linux) are installed.
Linux users can also configure ALSA to capture audio. In this article, we’ll provide a guide to converting multimedia content from Linux to a TV using Chromecast.
How to convert a Linux media to Chromecast?
Launching a video from Ubuntu to Chromecast is very easy. Not only for Ubuntu, but for all other versions of Linux. Just follow the steps to convert a Linux media player to your TV using a Chromecast device.
Before you start, the first thing you need to do is download Mkchromecast.
Mkchromecast is a simple desktop program that lets you stream your system. Now, it’s also sending a video on your Google Cast devices like Chromecast.
Video streaming works on both ffmpeg nodes and backends . Make sure you’ve linked your Chromecast to Mkchromecast using the Mkchromecast Tray Applet. Make sure you have left the tray applet before starting any support on Chromecast if you miss this problem, then you could have conflicts and everything would be fucked up.
To convert video from your Linux to Chromecast, you must open a new terminal window and run the following command:
mkchromecast -video -i “/path/to/file.mp4”
You can even specify the backend to process the video if necessary.
mkchromecast -video -i “/path/to/file.mp4” -encoder-backend ffmpeg
If you want to stream videos with subtitles, simply pass the -subtitles flag and point the application to the corresponding .srt file.
mkchromecast -video -i “~ / Videos / Example.mp4” -subtitles ~ / Videos / Example.srt
Want to stream videos from an online source? Then just use the URL, with the -source-url flag:
mkchromecast -source-url http : // commondatastorage . googleapis . com / gtv – videos – bucket / sample / BigBuckBunny . mp4 -c mp4 -volume -video
You can even stream videos available on YouTube, but please note that YouTube videos will be downloaded to your computer and then the local file uploaded to your TV.
mkchromecast -y https : // www . youtube . com / watch ? v = NxD _ kWK8A5M -video