This application relates to the field of
data synchronization technology and discloses a method,
system, device, and medium for multi-camera
timestamp synchronization. The method includes: embedding a physical world
timestamp generated by a hardware
clock synchronized based on the Precise
Time Protocol (PTP) into the
Network Abstraction Layer (NAL) unit of the Supplemental Enhancement Information (SEI) of an H.265
encoder as the global master time reference for multi-camera collaborative acquisition; adding a device ID field to the embedded SEI
timestamp of each camera; subsequently, each camera performs video acquisition and encoding to obtain a video
stream;
parsing the SEI timestamp with the device ID from the video
stream to establish a frame-level
global time reference; extracting the SEI timestamps of each camera for real-time
verification; if the
verification passes, it is determined that the multi-cameras have achieved frame-level synchronization; a data
loader reads a dataset in a specified format, parses and extracts the SEI timestamps from the dataset, compensates for
time drift caused by
system scheduling delays, and outputs synchronized data. This application improves the synchronization accuracy of timestamps.