<html>
<head>
<!-- Template generated by  on 07:31:28 Wednesday, 22 November 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css">P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
</head>
<body>
<div style="font-family:Tahoma;font-size:10pt"><font style="font-family:Tahoma"><font style="font-size:10pt">Thanks for the reply Victor.<br>
<br>
The issue is that the live video (352x288) appears in the top left corner of the output buffer from vaapidecode, so the input to the postproc element is part live/part garbage data.<br>
<br>
I think what I need to do is to get all the downstream elements to renegotiate their caps back upstream so that the sink caps on the vaapidecode element are then correct and the decoded MJPEG data entirely fills a 352x288 buffer rather than being "placed" inside
 the original 800x600 buffer?<br>
<br>
Is that corrent?<br>
<br>
My approach at the moment is to unlink the vaapipostproc from the uridecodebin and relink which should renegotiate the caps?  I can do that when I get the notify::caps signal on the src pad of the vaapidecode element.<br>
<br>
Unless there is a more dynamic method?<br>
<br>
Thanks,<br>
<br>
Danny<br>
<br>
> On Tue, 21 Nov 2017 at 13:46, Danny Cullen wrote:<br>
> > Hello,<br>
> ><br>
> > I am using a GstURIDecodeBin to access an HTTP MJPEG IP video source.<br>
> > The source sends the first few frames as 800x600 (a black splash<br>
> > screen) JPEG images and then sends the live data as 352x288.<br>
> ><br>
> > When the first frame is decoded I link a GstVaapiPostproc element with<br>
> > the GstURIDecodeBin and the vaapipostproc sink caps are negotiated<br>
> > with the vaapidecode elements src caps as 800x600.<br>
> ><br>
> > When the JPEG images change size, the sink caps of the vaapidecode<br>
> > element receive a GST_EVENT but this does not propagate to any of the<br>
> > downstream elements.<br>
> ><br>
> > I’m assuming that the sink of the vaapipostproc element would need to<br>
> > renegotiate with the src of the vaapidecode element?  Is that correct?<br>
><br>
> It is tricky since vaapipostproc resize the frame, thus there's no need to renegotiate because resizing is assumed.<br>
><br>
> ><br>
> > I have connected a notify::caps signal handler to the sink pad of the<br>
> > vaapidecode element however I’m not sure of the best way of getting<br>
> > the downstream elements to renegotiate.  What is the best way of achieving this?<br>
><br>
> I guess that's is a way to workaround this in your case.<br>
><br>
> ><br>
> > Thanks in advance,<br>
> ><br>
> > Danny<br>
> ><br>
</font></font></div>
<br>
<table class="ImprintUniqueIDTable" style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="HEIGHT: 51px; LINE-HEIGHT: 20px"><font style="font-family:Corbel;font-size:12pt;color:#17365D;font-weight:bold;">Danny Cullen</font><br>
<font style="font-family:Corbel;font-size:10pt;color:#17365D;">Software Team Leader</font></td>
</tr>
<tr>
<td style="HEIGHT: 90px"><a href="http://www.datapath.co.uk/" target=""><img width="200" height="56" style="border: 0px Solid ; " src="cid:image757443.JPG@46530b02.4785eb5d" alt="Datapath"></a></td>
</tr>
<tr>
<td style="HEIGHT: 35px; LINE-HEIGHT: 20px"><font style="font-family:Corbel;font-size:10pt;color:#002060;">Bemrose House, Bemrose Park, Wayzgoose Drive</font><font style="font-family:Corbel;font-size:10pt;color:#002060;">,
</font><font style="font-family:Corbel;font-size:10pt;color:#17365D;">Derby</font><font style="font-family:Corbel;font-size:10pt;color:#17365D;">,
</font><font style="font-family:Corbel;font-size:10pt;color:#17365D;">DE21 6XQ</font><font style="font-family:Corbel;font-size:10pt;color:#17365D;">,
</font><font style="font-family:Corbel;font-size:10pt;color:#17365D;">United Kingdom</font><br>
<font style="font-family:Corbel;font-size:10pt;color:#17365D;">T: </font><font style="font-family:Corbel;font-size:10pt;color:#17365D;">+44 (0)1332 294 441</font><font style="font-family:Corbel;font-size:10pt;color:#17365D;"> |
</font> <span style="font-family:Corbel;font-size:10pt;color:#0070C0;text-decoration:underline;"><a href="http://www.datapath.co.uk" title="" target="" style="font-family:Corbel;font-size:10pt;color:#0070C0;text-decoration:underline;"><span style="font-family:Corbel; font-size:10pt; color:#0070C0; text-decoration:underline;">www.datapath.co.uk</span></a></span><font style="font-family:Corbel;font-size:10pt;color:#0070C0;text-decoration:underline;"> </font></td>
</tr>
<tr>
<td style="HEIGHT: 119px"><a href="http://ow.ly/a4cH300zbGd" target=""><img align="Middle" src="cid:image7c6d8d.JPG@fc30e129.44b3ed0c" title="Fx4 wall controller (www.datapath.co.uk/fx4)" alt="Fx4 wall controller (www.datapath.co.uk/fx4)"></a></td>
</tr>
<tr>
<td style="HEIGHT: 20px"><font color="#bfbfbf" size="1" face="Corbel">Datapath Ltd.  Registered Number: 1609392.  Registered in England at Bemrose House, Bemrose Park, Wayzgoose Drive, Derby. DE21 6XQ.</font></td>
</tr>
<tr>
<td style="HEIGHT: 21px"></td>
</tr>
</tbody>
</table>
<br>
<div style="font-family:Tahoma;font-size:10pt"><font style="font-family:Tahoma"><font style="font-size:10pt">_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>
</font></font></div>
</body>
</html>