<div dir="ltr">So I've done some more digging and it turns out this problematic source sets ends up with a cap of `framerate=0/1` before videorate, then after videorate the framerate is also 0/1. (While other sources will have framerate=25/1, then framerate=15/1). This still doesn't explain why videorate doesn't respect my `max-rate` setting. <div><br></div><div>I trying to add a capsfilter to my pipeline with framerate=15/1, but that seems to blow up with not-negotiated at the appsrc counterintuitively. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 7, 2022 at 2:12 PM Nimi Wariboko Jr. <<a href="mailto:nimiwaribokoj@gmail.com">nimiwaribokoj@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">Hi,<div><br></div><div>I'm developing an application with gstreamer 1.16.2 (Ubuntu 20 LTS) and I have a pipeline the starts with NAL units fed into an AppSrc, then to h264parse, then nvv4l2decoder, and then videorate to a final AppSink with `sync=false`. On the video rate element I've set:</div><div><br></div><div>     videorate.set_property("drop-only", true);<br>     videorate.set_property("max-rate", 15);<br>     videorate.set_property("skip-to-first", true);<br>     videorate.set_property("average-period", 3 * 1_000_000_000);<br></div><div><br></div><div>And what I expect to see is a consistent rate of frames at 15fps. In my test bed, for streams that are 25fps I get 15fps as expected. However I have one camera that is 20fps and for some reason:</div><div><br></div><div>1. I am seeing an FPS that varies from 18-19fps.</div><div>2. There is considerable lag in the stream from real time. After a couple hours the videorate stream is behind the original stream.</div><div><br></div><div>The properties in the documentation aren't clear how these pieces work and most examples online exclusively use the capsfilter. Any reason why I could be seeing this behavior? </div><div><br></div><div>Thanks</div></div>
</blockquote></div>