I am using PyGObject to run Gstreamer pipelines from python.
I need to set properties of some of my GStreamerElements, for example, the profiles property of the rtspclientsink element.
I am using the <element>.set_property(name, val) PyGObject equivalent of the GObject set_property function.
However, in this particular case, val is a flag, GstRTSPProfile. I was wondering how I might import and instantiate this flag as a python type such that I can set this property without having to just use an integer.
This is how I am importing Gstreamer:
import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstBase', '1.0')
from gi.repository import GObject, Gst, GstBase
Importing GstRTSPProfile from gi.repository does not work. I'm not able to access GstRTSPProfile from Gst or GstBase either.