Renegotiate GstVaapiDecode src caps

Danny Cullen Danny.Cullen at datapath.co.uk
Tue Nov 21 13:46:53 UTC 2017


Hello,

I am using a GstURIDecodeBin to access an HTTP MJPEG IP video source.  The source sends the first few frames as 800x600 (a black splash screen) JPEG images and then sends the live data as 352x288.

When the first frame is decoded I link a GstVaapiPostproc element with the GstURIDecodeBin and the vaapipostproc sink caps are negotiated with the vaapidecode elements src caps as 800x600.

When the JPEG images change size, the sink caps of the vaapidecode element receive a GST_EVENT but this does not propagate to any of the downstream elements.

I’m assuming that the sink of the vaapipostproc element would need to renegotiate with the src of the vaapidecode element?  Is that correct?

I have connected a notify::caps signal handler to the sink pad of the vaapidecode element however I’m not sure of the best way of getting the downstream elements to renegotiate.  What is the best way of achieving this?

Thanks in advance,

Danny

Danny Cullen
Software Team Leader
[Datapath]<http://www.datapath.co.uk/>
Bemrose House, Bemrose Park, Wayzgoose Drive, Derby, DE21 6XQ, United Kingdom
T: +44 (0)1332 294 441 |  www.datapath.co.uk<http://www.datapath.co.uk>
[Fx4 wall controller (www.datapath.co.uk/fx4)]<http://ow.ly/a4cH300zbGd>
Datapath Ltd.  Registered Number: 1609392.  Registered in England at Bemrose House, Bemrose Park, Wayzgoose Drive, Derby. DE21 6XQ.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171121/2cc62a79/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image7ef3c6.JPG
Type: image/jpeg
Size: 5394 bytes
Desc: image7ef3c6.JPG
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171121/2cc62a79/attachment-0002.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image2ff1f1.JPG
Type: image/jpeg
Size: 46566 bytes
Desc: image2ff1f1.JPG
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171121/2cc62a79/attachment-0003.jpe>


More information about the gstreamer-devel mailing list