V4l2encoder timestamp expectation

Arindam Biswas send2ari at gmail.com
Wed Feb 28 17:44:24 UTC 2024


Hi All,

For gstreamer v4l2 encoder we send frame numbers instead of actual
timestamp in th output plane

gst_v4l2_buffer_pool_qbuf
 if (frame_number) {
    group->buffer.timestamp.tv_sec = *frame_number;
    group->buffer.timestamp.tv_usec = 0;
  }

But if v4l2 driver (Encoder) need buffer actual timestamps for some reason
how can we send that?

>From the patch below it looks like the frame number is mandated over the
actual timestamp.
v4l2codec: Pass system frame number as timestamp and use it to retrie… ·
GStreamer/gst-plugins-good at bcb3428 · GitHub
<https://github.com/GStreamer/gst-plugins-good/commit/bcb3428ed06e59945dc1c6034f6e68c0e9d3a964>

Thanks
Arindam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20240228/dbdbe017/attachment.htm>


More information about the gstreamer-devel mailing list