Hi,
I am using libargus(JP4.6.4) to sync two imx477. I tried to create capture session with two devices and use two EGLStream process each image separately. I aquired frame and got metadata of each image from each EGLStream by using:
// get frame
CUresult r =
cuEGLStreamConsumerAcquireFrame(&m_connection, &m_resource, &m_stream, timeout);
cuGraphicsResourceGetMappedEglFrame(&m_frame, m_resource, 0, 0);
// Get capture meta data
UniqueObj<EGLStream::MetadataContainer> metadataContainer(
EGLStream::MetadataContainer::create(
EGL_NO_DISPLAY, m_iEGLOutputStream->getEGLStream()));
I let two camera capturing a same clock in the screen. I set the frame duration as 100ms(10fps) and apparently two images are not aligned because I saw the time difference in two image is larger than one frame duration(100ms or 200ms), while they have same timestamp from their metadata.
What may cause this kind of difference? How can I aligned images from two streams and get the right timestamp?