some stuff I picked up from :Gtk4paintablesink blackscreen in pure C
and https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html