To get video format from sink pad info
Liu Xin
liuxin8166 at hotmail.com
Wed Jan 3 08:22:48 UTC 2018
hi all,
I'm writing my own video plugin, which should support 2 types of input video format (I420, UYVY). The initialization (internal memory allocation, configuration, etc...) for these 2 types of format are seperated, so need to be told by a format parameter from caps negotiation with upstream element. Now my question is: when does the caps negotiation take place? So that I can place my internal initialization after it.
At first I put my init function intuitively in the state change function, to be precise, the READY TO PAUSED transition part. Then I found that caps negotiation finishes much later than READY-TO-PAUSED transition, even later than the PAUSED-TO-PLAYING transition.
BTW, when I say "caps negotiation finishes", I mean when my element get the GST_EVENT_CAPS.
Any help would be much appreciated.
Thanks,
Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180103/6a6295b2/attachment.html>
More information about the gstreamer-devel
mailing list