<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I've found the problem. <br><br></div>Into videoaggragator, each time a new sink pad arrives, the src pad needs a reconfiguration. There, it also take place a reconfiguration of the bufferpool by means of calling to gst_videoaggregator_do_bufferpool. <br><br></div>The problem was that if the second sink arrives after some buffer has been pushed to the encoder, the reconfiguration provokes buffer drop. An easy (but probably not correct) way to solve this is checking if the pool is already configured each time a new sink arrives, in that case, we do nothing. <br><br></div>Pablo.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-19 12:05 GMT+01:00 Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas.dufresne@collabora.com" target="_blank">nicolas.dufresne@collabora.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le 03/19/2015 04:02 AM, Jean-Michel Hautbois a écrit :<br>
<span class="">> The error observed is that the first buffer provided by the encoder to<br>
> h264parse is not correct. And so, h264parse fails to find NAL, etc.<br>
<br>
</span>Would be useful to verify what it is. Would it be possible that the<br>
first frame is an AVC header of some sort ? That would mean the entire<br>
stream is no byte-stream, in which case the driver is not setting the<br>
right format (we don't implement AVC support at the moment in any of the<br>
v4l2 element).<br>
<br>
Another possibility is that ordering is wrong. Again, driver is suppose<br>
to deal with that, would be nice to check.<br>
<div class="HOEnZb"><div class="h5"><br>
Nicolas<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><span style="color:rgb(153,153,153)"><b>Pablo Anton</b></span><br><br><font size="1">14 rue du Pâtis Tatelin</font><br><font size="1">Bâtiment D</font><br><font size="1">35700 - Rennes</font><br><br><a href="http://www.vodalys.com" target="_blank">http://www.vodalys.com</a><br></div></div>
</div>