<div dir="ltr"><br><div class="gmail_extra"><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><span class="gmail-"><div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail-m_2190636141062214119quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_2190636141062214119elided-text"><br>
</div></blockquote></div></div></div></span><div dir="auto">I don't know, this is NXP specific. This could be done right before returning from map. Though, in most other drivers, this is done in the driver implicitly.</div><span class="gmail-"><div dir="auto"><br></div></span></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>I am facing similar issues and am only able to reproduce that using imx4l2src with a high framerate (30 fps).<br></div><div>Having a video filtering elememt, I see that only some frames are processed by transform_frame_ip method of vfilter and sometimes even none of them !</div><div><br></div><div>So it means that gstreamer_imx is sometimes not exposing DMA buffers to Gstreamer.</div><div>Am I right ?</div><div>I also tried to flush the mmapped buffer adding a msync right after the mmap but it does not change anything.<br></div><div><br></div><div>What is very curious is that this issue is only reproducible with a tee:</div><div><br></div><div>imx4l2src --<code><font face="arial,helvetica,sans-serif">> imxvpuenc_h264 -> vfillter -> rtph264pay -> udpsink</font></code></div><div><code><font face="arial,helvetica,sans-serif"> |-> tee -> fakesink<br></font></code></div><div><code><br></code></div><div><code></code><br></div><div>We are also able to *fix* the issue adding a videotransform with different caps between the src and the encoder. This workaround will copy the buffer calling prepare_output_buffer of the parent class (gstbasetransform). The fps remains good but the resolution is modified...<br></div><div><br></div><div>I definitely believe that the issue is in gstreamer-imx but we are lacking answers from them.</div><div>So any help or workaround *clean* are welcomed.</div><div><br></div><div>Thanks,</div><div><br></div><div>Eloi<br></div><div><br></div></div></div></div>