About the timestamp of video encoder

Hi zcs,
By combining tv_sec and tv_usec

@@ -77,7 +77,7 @@ encoder_capture_plane_dq_callback(struct v4l2_buffer *v4l2_buf, NvBuffer * buffe
         abort(ctx);
         return false;
     }
-
+printf("[%d]dqB timestamp [%lds%ldus] \n", v4l2_buf->index, v4l2_buf->timestamp.tv_sec, v4l2_buf->timestamp.tv_usec);
     // GOT EOS from encoder. Stop dqthread.
     if (buffer->planes[0].bytesused == 0)
     {

You can get the order, although the unit is incorrect. For 30fps, please set ‘-fps 300 1’ as a quick workaround.