how to get the video resolution from pipeline

Fabrizio Dini dini.fabrizio at gmail.com
Wed Feb 7 10:55:00 UTC 2018


Hi there!

I am not an expert, but I had the same problem and maybe this can be of
some help to you. Look here:
http://gstreamer-devel.966125.n4.nabble.com/Detecting-video-stream-resolution-in-appsink-with-GStreamer-1-0-tt4685967.html

Hope that helps!
regards
Fabrizio


On Tue, Feb 6, 2018 at 1:23 PM, zhi <sunzhidev at 163.com> wrote:

> 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
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180207/c6538760/attachment.html>


More information about the gstreamer-devel mailing list