<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 6, 2019 at 9:12 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><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"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 6 juill. 2019 08 h 10, pisymbol . <<a href="mailto:pisymbol@gmail.com" target="_blank">pisymbol@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 5, 2019 at 7:36 PM pisymbol . <<a href="mailto:pisymbol@gmail.com" rel="noreferrer" target="_blank">pisymbol@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 4, 2019 at 11:44 PM Vinod Kesti <<a href="mailto:vinodkesti@yahoo.com" rel="noreferrer" target="_blank">vinodkesti@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">pisymbol<br>
<br>
It may be source giving wrong delta.<br>
<br>
What is a source in your pipeline<br>
Do similar analysis immediately after the source. That would give you some<br>
Idea.<br>
</blockquote><div><br></div><div>Vinod that is a great question. I am going to exactly that. Will report back.</div><br></div></div></blockquote><div><br></div><div>[<br>    {<br>        "delta": 0,<br>        "frame": 0,<br>        "timestamp": 710794680<br>    },<br>    {<br>        "delta": 31127306,<br>        "frame": 1,<br>        "timestamp": 741921986<br>    },<br>    {<br>        "delta": 8828365,<br>        "frame": 2,<br>        "timestamp": 750750351<br>    },<br>    {<br>        "delta": 21636578,<br>        "frame": 3,<br>        "timestamp": 772386929<br>    },<br>    {<br>        "delta": 32609730,<br>        "frame": 4,<br>        "timestamp": 804996659<br>    },<br>    {<br>        "delta": 33260030,<br>        "frame": 5,<br>        "timestamp": 838256689<br>    },<br>    {<br>        "delta": 32897792,<br>        "frame": 6,<br>        "timestamp": 871154481<br>    },</div><div>...</div><div><br></div><div>So it's slightly better. But notice frame 2 and 3 have some kinda weird buf.pts timestamps before it starts to level out to about 30fps. The source is nvcamerasrc (i.e. nvcamerasrc (bunch of options) ! identity ..).<br></div><div><br></div><div>Is this just some kind of pipeline jitter?</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">This looks like frame drops. GStreamer uses a push back model. So what I imagine here is that nvcamsrc produced a buffer, push which simply get queued. Then it produces a second buffer, but this time it's block for a certain amount of time (about 2-3 frames, probably initialization time, NVidia stuff is know for having long alloc/init time). In parallel to that, the capture HW ends up reusing that current buffer, because it might not have any other to capture in, so buffers are effectively being dropped. </div><div dir="auto"><br></div><div dir="auto">This is one a the wide variety of possibilities. Without traces from nvcamsrc and it's code, we are limited to guessing.</div></div></blockquote><div><br></div><div>Let me ask NVidia directly since you maybe right: This may have more to do with the hardware and their plugin than gstreamer itself.</div><div><br></div><div>One thing I also noticed using nvcamerasrc is that when I use max-file-duration of 10s I don't get 300 frames per capture file (I seem to be off anywhere from 30-50 frames during each rollover despite my pipeline fixed at 30fps).</div><div><br></div><div>Not sure yet what this is all about either.<br></div><div><br></div><div>-aps<br></div></div></div>