Two IMX415 cameras achieve frame synchronization based on timestamps

IMX415 + GL3008 + GMSL + Jetson Orin NX, where IMX415 refers to two cameras. The two cameras can simultaneously perform synchronized frame preview and save video files, support post-read of the two saved video files, and provide an interface for algorithms to edit and splice the saved video files through timestamps. Frame synchronization is achieved via timestamps.

How should this be implemented? Can you give me a demonstration?

Have reference to MMAPI sample code like syncStereo.

Hi ShaneCCC,

I encountered this error while trying to implement the function of simultaneous preview and video saving using MMAPI. I have made multiple attempts, but I still haven’t been able to fix this error.

CONSUMER: Got EOS, exiting...

CONSUMER: Done.

PREVIEW CONSUMER: No more frames. Cleaning up.

CONSUMER: Got EOS, exiting...

CONSUMER: Done.

PREVIEW CONSUMER: Done.

(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 277)

(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 350)

(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)

(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 379)

(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)

(Argus) Error EndOfFile:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)

PRODUCER: Done -- exiting.

Error generated. /usr/src/jetson_multimedia_api/argus/samples/utils/GLContext.cpp, cleanup:198 Unable to destroy context (error 0x3001)

************************************

Total Profiling Time = 0 sec

************************************