detecting the stream property (video dimensions) changes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

detecting the stream property (video dimensions) changes

Ugur
Hi,

What is the proper way to detect the changes on the incoming stream properties. The incoming realtime stream can change it’s dimensions while the pipeline is running. How can i get notified about these changes?

Thanks,
Ugur

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: detecting the stream property (video dimensions) changes

Olivier Crête-3
Hi,

On Tue, 2016-09-13 at 18:32 -0400, Uğur Bozkaya wrote:
> What is the proper way to detect the changes on the incoming stream
> properties. The incoming realtime stream can change it’s dimensions
> while the pipeline is running. How can i get notified about these
> changes?

When the resolution changes, the "caps" describing the stream change.
You can hook up to a pad after the parser (or the decoder) using
g_signal_connect (pad, "notify::caps, ...); and your callback will be
called when the caps change, you can then read the "caps" property to
find the latest ones and check if the things that interest you have
changed.

--
Olivier Crête
[hidden email]
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel