Including identity element
Mayank Agarwal
mayank77fromindia at gmail.com
Mon Apr 6 06:32:39 PDT 2015
Hi,
I have taken gstreamer tutorial 2 and adding identity element in following way:
g_object_set(data.sink, "signal-handoffs",true,NULL);
g_signal_connect(data.sink, "handoff",
G_CALLBACK(handoff), pipe);
and in the handoff implementation i want to calculate frame rate from timestamp
how can im implement handoff callback to get timestamp info:
handoff(GstElement *object,
GstBuffer *arg0,
GstPad *arg1,
gpointer user_data)
{
GstPipe *pipe;
printf("handoff : %p\n", arg0);
gst_buffer_ref(arg0);
/* how can i recover timestamp info here and any other video quality params*/
}
Regards
Mayank
More information about the gstreamer-devel
mailing list