how to get the video resolution from pipeline

zhi sunzhidev at 163.com
Tue Feb 6 12:23:16 UTC 2018


Hi guys,


I am newbin to gstreamer, and want to know how to get the video resolution (width,height) from pipeline as below:


GstElement *pipeline = gst_parse_launch("rtspsrc name=src latency=0 ! decodebin name=dec ! appsink name=sink", &error);


when receiving the video data from appsink (new-sample), i need to know the resolution of video go ahead!


I have tried to research the signal of decodebin, and don't know how to do.


thanks in advance
-zhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180206/76ca577c/attachment.html>


More information about the gstreamer-devel mailing list