Can no longer link gtksink within my pipeline?

pisymbol . pisymbol at gmail.com
Tue Oct 1 20:01:23 UTC 2019


On Tue, Oct 1, 2019 at 3:30 PM pisymbol . <pisymbol at gmail.com> wrote:

> I am trying to display live video to the screen using gtksink. On Ubuntu
> 16.04 this worked. But when I move gstreamer to 1.14 or higher it fails.
>
> Pipeline:
>
> nvarguscamerasrc maxperf=true sensor-id=0 ! video/x-raw(memory:NVMM),
> width=(int)3840, height=(int)2160, framerate=(fraction)30/1 ! nvvidconv !
> video/x-raw(memory:NVMM), width=(int)3840, height=(int)2160,
> format=(string)I420 ! videoconvert name=videoconvert
>
> I am trying to link videoconvert to gtksink. I do so using a ghostpad like
> this:
>
> self.playerBin = Gst.parse_bin_from_description(pipeline, False)
> self.vc = self.playerBin.get_by_name("videoconvert")
>
> self.playerPipeline = Gst.Pipeline()
> gtksink = Gst.ElementFactory.make('gtksink', None)
> gtksink.set_property("sync", False)
> self.ghostpad = Gst.GhostPad.new("sink", self.vc.get_static_pad('src'))
> self.playerBin.add_pad(self.ghostpad)
> self.playerPipeline.add(gtksink)
> self.playerPipeline.add(self.playerBin)
> self.playerPipeline.link(gtksink) <---- this fails
> self.pack_start(gtksink.props.widget, True, True, 0)
> ... some bus stuff ...
>
> But this now fails with "No valid pad found to link gtksink0' etc. What
> changed to cause this breakage? Again, this used to work. Am I doing it
> wrong?
>
>
Not that this works via gst-launch-1.0:

gst-launch-1.0 nvarguscamerasrc maxperf=true sensor-id=0 !
'video/x-raw(memory:NVMM), width=(int)3840, height=(int)2160,
framerate=(fraction)30/1' ! nvvidconv ! gtksink

And that pops up a video! I've tried shorting my pipeline to the above and
linking nvvidconv to gtksink but dice. Both nvvidconv and gtksink do BGRx
so they should be compatible, right?

-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191001/109948f5/attachment-0001.html>


More information about the gstreamer-devel mailing list