[gst-devel] Getting the complete caps from rtph264pay
ScreenName01
lwhlee at hotmail.com
Wed May 27 23:53:22 CEST 2009
Have you tried running gst-launch with the -v option for verbose output?
This should provide you the information needed to set your caps.
Florent THIERY-2 wrote:
>
> 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
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like
> Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
--
View this message in context: http://www.nabble.com/Getting-the-complete-caps-from-rtph264pay-tp23744677p23751475.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list