[gst-devel] Getting the complete caps from rtph264pay
Florent
fthiery at gmail.com
Wed May 27 17:15:45 CEST 2009
Hello
I am trying to get the caps provided by rtph264py (as example) to
construct the corresponding sdp file in [1]. I partially manage to get
something:
1) i connect the pad of rtph264pay to caps notification;
2) callback notify_caps prints the caps, by doing get_caps
def notify_caps(self, pad, caps):
caps = pad.get_caps()
print caps
The result is:
application/x-rtp, media=(string)video, payload=(int)[ 96, 127 ],
clock-rate=(int)90000, encoding-name=(string)H264
I need the other caps (sprops parameter sets, etc...) to build the sdp file.
How can i get these ? I managed to do so by using an interactive shell
(ipython) through pad.get_negociated_caps(), but i don't know how to
do this in my application.
Thanks for any help;
Florent
[1] http://code.google.com/p/gstmanager/source/browse/trunk/gstmanager/bins/rtpencodingbin.py
More information about the gstreamer-devel
mailing list