Within the notify::caps callback function try print the caps as below.<br><br>caps = GST_PAD_CAPS (pad);<br>g_print (&quot;Caps = %s\n, gst_caps_to_string (caps));<br><br>Refer the link below for more info:<br><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#gst-pad-get-caps">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#gst-pad-get-caps</a><br>
<br><br><div class="gmail_quote">On Wed, May 27, 2009 at 8:45 PM, Florent <span dir="ltr">&lt;<a href="mailto:fthiery@gmail.com">fthiery@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br>
<br>
I am trying to get the caps provided by rtph264py (as example) to<br>
construct the corresponding sdp file in [1]. I partially manage to get<br>
something:<br>
1) i connect the pad of rtph264pay to caps notification;<br>
2) callback notify_caps prints the caps, by doing get_caps<br>
<br>
    def notify_caps(self, pad, caps):<br>
        caps =  pad.get_caps()<br>
        print caps<br>
<br>
The result is:<br>
application/x-rtp, media=(string)video, payload=(int)[ 96, 127 ],<br>
clock-rate=(int)90000, encoding-name=(string)H264<br>
<br>
I need the other caps (sprops parameter sets, etc...) to build the sdp file.<br>
<br>
How can i get these ? I managed to do so by using an interactive shell<br>
(ipython) through pad.get_negociated_caps(), but i don&#39;t know how to<br>
do this in my application.<br>
<br>
Thanks for any help;<br>
<br>
Florent<br>
<br>
[1] <a href="http://code.google.com/p/gstmanager/source/browse/trunk/gstmanager/bins/rtpencodingbin.py" target="_blank">http://code.google.com/p/gstmanager/source/browse/trunk/gstmanager/bins/rtpencodingbin.py</a><br>
<br>
------------------------------------------------------------------------------<br>
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT<br>
is a gathering of tech-side developers &amp; brand creativity professionals. Meet<br>
the minds behind Google Creative Lab, Visual Complexity, Processing, &amp;<br>
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian<br>
Group, R/GA, &amp; Big Spaceship. <a href="http://p.sf.net/sfu/creativitycat-com" target="_blank">http://p.sf.net/sfu/creativitycat-com</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>