Hello again,<br>
<br>
I got a big problem: The callback for have-data and handoffs did not work.<br>
Here is my code for the have-data cb:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">static gboolean cb_have_data_video (GstPad *pad, GstMiniObject *mini_obj, gpointer user_data)
<br>
{<br>
video_frames++;<br>
if (video_frames == 0){<br>
}<br>
<br>
if(!mini_obj){ <br>
}else{<br>
if (mini_obj==NULL){<br>
}else{<br>
if (video_frames == 25){ <br>
g_print("\n have data video\n");<br>
if (!GST_IS_OBJECT (mini_obj))<br>
g_print("mini_obj is not an object");<br>
else<br>
g_print(" name object miniobject %s |",gst_object_get_name(mini_obj));<br>
<br>
g_print("name object pad %s ", gst_object_get_name(pad));<br>
}<br>
}<br>
}<br>
return TRUE; <br>
}</blockquote>
<div><br>
I connect to a pad my cb :<br>
gst_pad_add_buffer_probe (pad, G_CALLBACK (cb_have_data_video), NULL);<br>
</div><br>
And I always get on output "mini_obj is not an object".<br>
I got the same error with my handoff signal, the GstBuffer * is not a gstBuffer.<br>
<br>
Why this is bugged?<br>
Thanks for your help,<br>
<br>
Erwan Masson<br><br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Erwan Masson</b> <<a href="mailto:masson.erwan1@gmail.com">masson.erwan1@gmail.com</a>>
<br>Date: 6 avr. 2007 16:33<br>Subject: Taking a frame<br>To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br><br></span>Hello,<br> I am trying Gstreamer since a few weeks, and I would like to grab some info on raw video frames.
<br><br>First
I try to use pngenc to grab frame, but I only be able to grab the first
frame, and with a notify-caps signal, I took some info(width, height,
framerate).
<br><br>After a few search, I find typefind Element, which help me to find some info, with have-type signal.<br><br>But now, I am not able to retrieve any frame. How I do to retrieve frame please?<br><br>Thanks for your help.
<br><span class="sg"><br>Erwan Masson<br>
</span>