Unable to retrieve the video-sink

Abu Abdullah falcon.sheep at gmail.com
Fri Mar 2 04:37:26 UTC 2018


thanks for the hint but it still gives me the same result. streaming
is OK but getting the sample failed.

 i tried as well to use 'gst_app_sink_pull_sample' without success:
 E/GLib: gst_app_sink_try_pull_sample: assertion 'GST_IS_APP_SINK
(appsink)' failed

i have created basic example based on tutorial-3 in :
https://github.com/Abu-Abdullah/MyApplication/blob/master/app/src/main/jni/player.c

the problem is in gst_native_snapshot

the client pipeline is
"udpsrc port=5009 !
application/x-rtp,payload=96,media=video,clock-rate=90000,encoding-name=H264,a-framerate=40,width=640,height=480
! rtph264depay ! avdec_h264 ! videoconvert ! glimagesink name=mysink"

and the server is rpi:
raspivid -n -vf -hf -fl -t 0 -g 5 -ih -ex sports -w 640 -h 480 -b 0
-fps 40 -md 0 -sh 0 -co 0 -br 50 -sa 0 -rot 180 -ss 0 -cd H264 -awb
auto -qp 0 -pf high -o - | gst-launch-1.0 fdsrc ! h264parse !
rtph264pay pt=96 config-interval=10 ! multiudpsink
clients=192.168.1.21:5009



On Thu, Mar 1, 2018 at 2:55 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> 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
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-android


More information about the gstreamer-android mailing list