For some reason gstreamer is not included in the HAOS image. As mentioned in ticket #36540 when one tries to use it as media player you end up with the following error:
ERROR (MainThread) [homeassistant.components.hassio] Platform error media_player.gstreamer - No module named 'gi'
Having GStreamer enabled would be extremely helpful to easily get sound in and out of instances running in virtual machines, and to integrate with Snapcast. For example you can setup a hidden snapcast source with the tcp server sink, and mix it with real sources using the meta source to have TTS play over any currently playing media without having to determine or change the source.
Here’s the relevant Snapcast config:
# Internal
source = tcp://0.0.0.0:4953?name=SnapcastTCP&mode=server&codec=null
source = librespot:///usr/local/bin/librespot?name=Spotify-Internal[...]
source = pipe:///var/run/mpd/snapfifo?name=MPD-Internal&codec=null
# External
source = meta://SnapcastTCP/MPD-Internal?name=MusicPlayerDaemon
source = meta://SnapcastTCP/Spotify-Internal?name=Spotify
Hey there,
although this post is a bit ancient by now, I just wanted to emphasize how awesome it would be to have Gstreamer embedded in HAOS.
The GitHub issue mentioned above was unfortunately closed recently, but there’s another one which also offers a “hotfix”.
opened 03:21AM - 02 Jun 22 UTC
integration: gstreamer
### The problem
[See this previous issue for more data:
](https://github.com/h… ome-assistant/core/issues/36540)
When adding a gstreamer media player to the config the following error occurs:
[homeassistant.components.hassio] Platform error media_player.gstreamer - No module named 'gi'
### What version of Home Assistant Core has the issue?
2022.6.0
### What was the last working version of Home Assistant Core?
unknown
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
gstreamer
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/gstreamer
### Diagnostics information
_No response_
### Example YAML snippet
```yaml
media_player:
- platform: gstreamer
pipeline: "audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapcast_gstreamer"
```
### Anything in the logs that might be useful for us?
```txt
ERROR (MainThread) [homeassistant.components.hassio] Platform error media_player.gstreamer - No module named 'gi'
```
### Additional information
Seems that there are some missing components needed for this integration missing from Core, which prevents the integration from working out of the box.
I’d really appreciate it if someone could check in on this issue and probably get it working, because I lack the grasp of how HA works.
Thanks in advance!
Linus