Reading streaming video frame by frame
omer.tal
jacklawi at gmail.com
Thu Nov 19 10:00:23 UTC 2020
Hello again,
So your issue was the return type of the callback:
//signal handling function
static GstFlowReturn new_sample (GstElement *sink, CustomData *data){
printf("Hello\n");
printf("frame signal\n");
GstSample *sample;
GstBuffer *buf;
g_signal_emit_by_name(sink,"pull_sample",&sample);
buf=gst_sample_get_buffer(sample);
// printf("%c\n",buf[0]);
if(sample){
gst_sample_unref(sample);
return GST_FLOW_OK;
}
return GST_FLOW_ERROR;
}
Hope this works for you. I've tested your program with a sample pipeline and
it worked for me.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list