[gst-devel] Getting the complete caps from rtph264pay

Florent fthiery at gmail.com
Wed Jun 3 22:36:46 CEST 2009


Hi

> with pygst, you can try set a callback on the pad whose negotiated caps you
> are interested in:
>
> mypad.set_setcaps_function(mypad_src_set_caps)
>
> then you define mypad_src_set_caps:
>
> def mypad_src_set_caps(pad, caps):
>  capstr = caps.to_string()
>  print capstr
>  return TRUE
>
> The callback is called just before the buffer is pushed through the pad, when
> the caps is newly negotiated.

Thanks a lot, this is what i was looking for !

Cheers

FLorent




More information about the gstreamer-devel mailing list