Connect with us

Hi, what are you looking for?

Latest

How to Cast Your GNOME Shell Desktop To A Chromecast (With Audio, Wayland / X11 Support)

Forged to TV, a GNOME Shell extension to forged information and extra to Chromecast units (and extra), was up to date not too long ago with help for casting your desktop, with sound, which works with each Wayland and X11. That is finished with the assistance of a helper add-on known as Forged to TV – Desktop Stream Add-on, which not too long ago had its first launch on the GNOME extensions web site.For desktop streaming to work, you want Forged to TV model 14 or newer, which solely helps GNOME Shell 3.36 and three.34 (Ubuntu 20.04 and 19.10, and Fedora 31 and 32 for instance). Which means that this is not out there for older Linux distributions that use older GNOME Shell variations, like Ubuntu 18.04 or Fedora 30.
How to Cast Your GNOME Shell Desktop To A Chromecast (With Audio, Wayland / X11 Support)

This text explains find out how to use Forged to TV (and its helper add-on) to forged your GNOME Shell desktop to a Chromecast system, with sound, which works with each X11 and Wayland. The step-by-step directions are for Debian / Ubuntu / Pop!_OS, Fedora and Arch Linux / Manjaro (the steps needs to be the identical on any GNOME Shell based mostly Linux distribution, however the packages might need completely different names).

Formally, you may stream your Linux desktop to a Chromecast through the use of Google Chrome. Forged to TV has some benefits over Google Chrome for Chromecast desktop streaming although:

  • it is not tied to Google’s browser
  • it streams your desktop with working audio, which does not work on Linux with Google Chrome
  • it helps Wayland, this most likely being the one method to forged your desktop to a Chromecast system from Wayland
  • it has customizable video bitrate and fps
  • it has {hardware} acceleration (VAAPI for Intel/AMD and NVENC for Nvidia graphics)
  • and also you additionally get the choice of displaying or hiding your mouse cursor.

Google Chrome has a few benefits over Forged to TV too: it has a decrease stream delay (Forged to TV at the moment has a delay of about Three seconds), and it really works with desktop environments aside from GNOME Shell. So use whichever answer fits your wants greatest.

Forged to TV can do much more than forged your desktop to a Chromecast. It may additionally forged native footage, video and audio information with optionally available transcoding, GPU-accelerated video encoding for low CPU utilization, subtitles, and extra. Try its mission web page for particulars.

You may also like: Chromecast Extension For Firefox fx_cast 0.0.5 Provides Help For YouTube, Subtitles For Native Media.

Organising Forged to TV for casting your desktop to a Chromecast, in Debian / Ubuntu / Pop!_OS, Fedora or Arch Linux / Manjaro

To make use of Forged to TV to stream your GNOME Shell desktop (model 3.34 or 3.36 solely!) to a Chromecast, you will want to put in Forged to TV model 14 (or newer) and Forged to TV Desktop Add-on, set up some GStreamer plugins, and tweak some PulseAudio settings. That is what you should do intimately, on Debian / Ubuntu, Fedora or Arch Linux / Manjaro.

Utilizing these steps, the entire Forged to TV performance can be enabled, so you will not have simply the power to forged your desktop, but additionally forged video, music and footage out of your GNOME Shell desktop.

Extra methods of streaming to a Chromecast from Linux:

1. Set up the required Forged to TV and Forged to TV – Desktop Add-on dependencies.

Forged to TV extension requires npm and Node.js for some modules, and FFmpeg for transcoding. Forged to TV – Desktop Stream Add-on has some dependencies too: the GStreamer base, good, unhealthy and ugly plugins.

PulseAudio (and pacmd) are additionally required, however these ought to already be put in typically.

Set up the dependencies utilizing:

  • Debian / Ubuntu / Pop!_OS:

sudo apt set up ffmpeg npm nodejs gstreamer1.0-plugins-
You could allow the RPM Fusion repository to put in FFmpeg and a few GStreamer plugins (in case you have not enabled this repository already), then set up the packages:sudo dnf set up https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

sudo dnf set up ffmpeg gstreamer1-plugins{base,good,bad-free,ugly}sudo pacman -S ffmpeg npm nodejs gst-plugins-
2. Set up the optionally available dependencies.

There are some optionally available dependencies too. Whereas to make use of {hardware} accelerated recording with Nvidia drivers (NVENC) you need not set up any further package deal as a result of it is already out there within the GStreamer1-plugins-bad package deal (it relies upon in case your Linux distributions allows this although, it won’t be out there), for VAAPI (Intel/AMD) you should set up the GSttreamer1-vaapi package deal:

  • Debian / Ubuntu / Pop!_OS:

sudo apt set up gstreamer1.0-vaapisudo dnf set up gstreamer1-vaapisudo pacman -S gstreamer-vaapi
It is essential to consider that the GStreamer implementation of {hardware} acceleration (each VAAPI and NVENC) is “form of experimental”, notes the Forged to TV Desktop Add-on wiki, and utilizing it’d crash GNOME Shell. I didn’t attempt utilizing {hardware} acceleration in my check of streaming my GNOME Shell 3.36 desktop to a Chromecast, as a result of my Nvidia graphics would not help NVENC.

So in case your desktop crashes otherwise you’re not in a position to forged your desktop to a Chromecast whereas utilizing {hardware} acceleration, disable it (Forged to TV preferences -> Add-ons > Desktop -> {Hardware} acceleration: None).

On Debian / Ubuntu, there’s yet another optionally available dependency. The GStreamer plugins haven’t got the fdkaac and faac AAC audio encoders enabled by default, with solely voaacenc being out there, which is fairly outdated. For higher audio streaming on Debian / Ubuntu you need to use the FFmpeg GStreamer plugin (which in current Debian / Ubuntu variations is utilizing FFmpeg, regardless of libav being within the package deal identify), which supplies help for avenc_aac AAC audio encoding. Set up this package deal:

sudo apt set up gstreamer1.0-libav
3. Set up Forged to TV and Forged to TV Desktop Stream Add-on.

The extensions can be found on the GNOME Shell extensions web site. You might set up Forged to TV, adopted by Forged to TV Desktop Stream Add-on, through the use of GNOME Software program, if it permits putting in GNOME Shell extensions in your Linux distributions.

Or you may comply with the directions from the GNOME wiki to combine GNOME Shell with Google Chrome and Firefox, after which you’ll set up GNOME Shell extensions utilizing these 2 internet browser. After following these directions, go to the Forged to TV extension web page from the GNOME Shell extensions web site and click on the OFF button within the higher right-hand aspect nook of the net web page to put in it. Then do the identical for the Forged to TV – Desktop Stream Add-on.

The extensions set up isn’t finished at this level, as you should set up some npm modules. You will must open the Forged to TV preferences.

I must make an necessary word right here. The Forged to TV v14 launch notes point out {that a} bug in GNOME Shell 3.36.1 prevents opening the extension preferences from the GNOME system menu (“Forged settings”). This does not occur for me on Ubuntu 20.04 with GNOME Shell 3.36.1 although, most likely due to some patch that will get this to work, however in case you stumble onto this subject on one other Linux distribution, open the Forged to TV preferences through the use of the brand new GNOME Extensions app (launched with GNOME 3.36).

How to Cast Your GNOME Shell Desktop To A Chromecast (With Audio, Wayland / X11 Support)

Within the Forged to TV preferences, swap to the Modules tab and click on Set up npm modules on the backside of the window (screenshot above). Do that after putting in each Forged to TV and Forged to TV Desktop Add-on, as each require putting in some npm modules.

4. Allow streaming your desktop with audio to the Chromecast.

There are two necessities for getting the GNOME Shell desktop streaming to Chromecast units to work with audio.

The primary is to pick out an AAC plugin that is out there in your system, within the Forged to TV extension preferences. To see which AAC GStreamer plugins can be found in your system, use (you do not want all, one is sufficient):

gst-inspect-1.Zero fdkaac
gst-inspect-1.Zero faac
gst-inspect-1.Zero avenc_aac
gst-inspect-1.Zero voaacenc
In case you get “No such aspect or plugin” as output, e.g. on Ubuntu:$ gst-inspect-1.Zero faac
No such aspect or plugin ‘faac’
Which means the plugin isn’t out there so you may’t use it within the Forged to TV settings to stream your desktop with audio to a Chromecast.

If as a substitute you get some output, like this:

$ gst-inspect-1.Zero avenc_aac
Manufacturing facility Particulars:
Rank none (0)
Lengthy-name libav AAC (Superior Audio Coding) encoder
Klass Codec/Encoder/Audio
Description libav aac encoder
Creator Wim Taymans <[email protected]>, Ronald Bultje <[email protected]>

Plugin Particulars:
Title libav
Description All libav codecs and codecs (system set up)
Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstlibav.so
Model 1.16.2
License LGPL
Supply module gst-libav
Binary package deal GStreamer libav Plugins (Ubuntu)
Origin URL https://launchpad.web/distros/ubuntu/+supply/gst-libav1.0
……..
Which means that explicit plugin is obtainable in your system and you may choose it from the Forged to TV extension preferences (Add-ons -> Desktop -> Audio encoder). Additionally allow Stream with audio for casting your desktop with audio:

How to Cast Your GNOME Shell Desktop To A Chromecast (With Audio, Wayland / X11 Support)

On Debian and Ubuntu, fdkaac and faac usually are not out there in GStreamer, that is why I beneficial putting in gstreamer1.0-libav, to have the ability to use avenc_aac. On Arch Linux / Manjaro, each fdkaac and faac needs to be out there after putting in the GStreamer base, good, unhealthy and ugly plugins so use a type of. On Fedora, after putting in the GStreamer plugins you must have fdkaac as out there, so use that.

In case you do not select an out there AAC encoder within the Forged to TV preferences, casting your desktop to a Chromecast will fail (you will not even get video casting). If for no matter purpose you have no AAC encoder out there in your system, disable audio streaming (out there within the Forged to TV preferences) to at the very least get desktop streaming to work.

And the second requirement wanted for casting your GNOME Shell desktop to a Chromecast with audio is to vary the PulseAudio /and so on/pulse/default.pa configuration with any textual content editor as root, for instance Gedit (Textual content Editor), the default GNOME textual content editor:

gedit admin:///and so on/pulse/default.pa
and alter the road containing:load-module module-stream-restore
to:load-module module-stream-restore restore_device=false
Save the file, and restart PulseAudio:pulseaudio -k
Native audio sink choice in GJS is deliberate for a future Forged to TV Desktop Add-on, however till then you should use this handbook tweak of the PulseAudio configuration file.

5. Forged your GNOME Shell desktop to a Chromecast system.

How to Cast Your GNOME Shell Desktop To A Chromecast (With Audio, Wayland / X11 Support)

 

How to Cast Your GNOME Shell Desktop To A Chromecast (With Audio, Wayland / X11 Support)

Now you may forged your Linux GNOME Shell desktop to a Chromecast. From the GNOME Shell system menu develop the Forged Media merchandise, then click on on Desktop.

When you begin casting your desktop to the Chromecast system, see a yellow-orange dot (it implies that the GNOME Shell built-in display recorder is lively), in addition to the Forged to TV distant on the highest panel – from there you may cease casting your desktop by urgent the cease button (this is not proven till you begin casting).

cast to tv gnome shell extension,chromecast linux desktop,cast to tv extension,mkchromecast,chromecast gnome extension,gnomecast,ubuntu screencast to tv,cast to tv npm modules not installed

You May Also Like

Hosting

Introduction In previous articles we have talked about images of dockers, the origin and functioning of dockers and the dockers’ hub. In this document...

Latest

Linux desktops are good in many ways, but like Windows they are not known as the most efficient battery. This does not mean that...

Latest

The United States Supreme Court has indicated that it will finally solve a problem that has been causing legal problems for almost two decades:...

Hosting

To secure your AWS assets, follow these AWS Identity and Access Management (IAM) guidelines. Locking the Root User Access Key for AWSAccount You use...