Simple GStreamer display example
Posted: Monday 22nd August 2022 1:38pm
I have a need to have the video output of a GStreamer pipeline rendered to a DrawingBox or similar control on a Gambas form. I've taken a look at some of the media examples, but I'm not sure I'm understanding the paradigm yet. The simple example pipeline I'm testing with:
I'd like the media to be rendered to a drawing area element on the Gambas form (not autovideosink popup). From some examples I've looked at this seems like it's possible, but I'm not understanding out to pass the reference to the drawing area to the MediaPipeline control. From examples I see I can make a pipeline maybe with something like:
But how to link the output to a form element isn't clear to me.
Any advice/guidance welcomed! Thank you.
Code: Select all
gst-launch-1.0 videotestsrc is-live=true horizontal-speed=1 ! autovideosink
Code: Select all
oPipeline= New MediaPipeline
oMC = New MediaControl(oPipeline, "videotestsrc is-live=true horizontal-speed=1")
Any advice/guidance welcomed! Thank you.