<p dir="ltr"></p>
<p dir="ltr">Le 20 sept. 2016 3:17 PM, "Iván Aponte" <<a href="mailto:ivan.aponte@gmail.com">ivan.aponte@gmail.com</a>> a écrit :<br>
><br>
> So why does the DTS is correct ? Also I tried with the PTS but sometimes it skips a frame and then send it way later.</p>
<p dir="ltr">The PTS is quite accurate moment of when the capture started or finished. It is provided buy the Linux kernel driver.</p>
<p dir="ltr">Check your code, since the PTS is always the same as the DTS when produced by v4l2src. The only way I see to break this, is to set do-timestamp=true, this is wrong and should not be set this way.<br></p>
<p dir="ltr">>  <br>
><br>
> On Tue, Sep 20, 2016 at 8:28 AM Nicolas Dufresne <<a href="mailto:nicolas.dufresne@gmail.com">nicolas.dufresne@gmail.com</a>> wrote:<br>
>><br>
>> Le lundi 19 septembre 2016 à 22:43 +0000, Iván Aponte a écrit :<br>
>> > Hello, <br>
>> ><br>
>> > I have a pipeline that is something like this <br>
>> ><br>
>> ><br>
>> > v4l2--->omxh264enc -->queue --> mp4mux --> filesink<br>
>> ><br>
>> > If I put a probe in the queue sink I notice that every buffer comes<br>
>> > with a duration 0.016666 seconds even though my source is 12 fps<br>
>> > which is more like 0.083333 seconds each frame. If I put a<br>
>> > videotestsrc it does output buffers with the duration if 0.083333<br>
>> > seconds.  Why is this ?<br>
>><br>
>> Camera firmware or driver reduce the framerate based on the light<br>
>> condition. This change is dynamic and is not reported through the Linux<br>
>> kernel API. In GStreamer, the duration is speculated from the negotiate<br>
>> framerate (in your case 60 fps). Hence, you cannot trust the duration.<br>
>> There is an element called videorate that has the capabilities to<br>
>> adjust those from the timestamp to be perfect.<br>
>><br>
>> ><br>
>> > Regards, <br>
>> ><br>
>> > Ivan <br>
>> > -- <br>
>> > Iván Aponte<br>
>> > +58 412 2774713<br>
>> > _______________________________________________<br>
>> > gstreamer-devel mailing list<br>
>> > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>> > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
> -- <br>
> Iván Aponte<br>
> +58 412 2774713<br></p>