Unable to retrieve the video-sink

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Mar 1 10:55:16 UTC 2018


On Wed, 2018-02-28 at 21:42 +0400, Abu Abdullah wrote:

> after many trials, I'm still getting errors in the sort of:
> E/GLib: gst_base_sink_get_last_sample: assertion 'GST_IS_BASE_SINK
> (sink)' failed
> 
> sender pipeline is:
>  gst-launch-1.0 fdsrc ! h264parse ! rtph264pay pt=96
> config-interval=10 ! multiudpsink clients=192.168.1.21:5009
> 
> 
> receiver pipeline is:
> udpsrc port=5009 ! application/x-rtp,payload=96 ! rtph264depay !
> avdec_h264 ! videoconvert ! autovideosink name=mysink sync=false

The problem might be that autovideosink is a GstBin, which then
internally adds the "real sink" as child element. If you want to use
the last-sample property you will have to get to the real bin, or you
use a suitable video sink element for your platform, like glimagesink
or so.

Cheers
 -Tim


More information about the gstreamer-android mailing list