Skip to content

Instantly share code, notes, and snippets.

View jonasl's full-sized avatar

Jonas Larsson jonasl

  • San Francisco, CA
View GitHub Profile
@jonasl
jonasl / gst_fullscreen_wayland.py
Created November 12, 2019 19:31
Fullscreen GTK window with GStreamer glimagesink on Wayland
import gi
gi.require_version('Gdk', '3.0')
gi.require_version('GObject', '2.0')
gi.require_version('Gst', '1.0')
gi.require_version('GstGL', '1.0')
gi.require_version('GstVideo', '1.0')
gi.require_version('Gtk', '3.0')
from gi.repository import Gdk, GObject, Gst, GstGL, GstVideo, Gtk
Gst.init(None)