The present disclosure relates to the technical field of videos, and provides a video synchronization method and apparatus, an electronic device, and a storage medium. The method comprises: measuring a
reference frame synchronization signal by using a
master clock, and calculating a first frequency multiple between a video
clock of a video interface and the
master clock on the basis of the measurement result; generating two frequency multiples closest to the first frequency multiple, and generating a first adjustment
clock and a second adjustment
clock of different frequencies on the basis of the two frequency multiples; generating a first target
synchronization signal of the
master clock and a second target
synchronization signal of the video clock on the basis of the
reference frame synchronization
signal and a video parameter of the video interface; comparing the phase of the first target synchronization
signal with the phase of the second target synchronization
signal; and switching, on the basis of the comparison result, the video clock to the first adjustment clock or the second adjustment clock when a switchable moment is reached, so that a first
frame synchronization signal generated on the basis of the master clock is synchronized with a second
frame synchronization signal of the video clock, and the first
frame synchronization signal is synchronized with the
reference frame synchronization signal. The present disclosure can achieve complete synchronization between video data of a plurality of video interfaces.