Implementation of Audio-Video Synchronization in Swift

I have a feature requirement: to switch the writer for file writing every 5 minutes, and then quickly merge the last two files. How can I ensure that the merged file is seamlessly combined and that the audio and video information remains synchronized? Currently, the merged video has glitches, and the audio is also out of sync. If there are experts who can provide solutions in this area, I would be extremely grateful.

Hey @Adamo_Chen,

Do you have a focused sample project that demonstrates the synchronization issues you are encountering? (It might also help us better understand what you are attempting to achieve here!)

-- Greg

Implementation of Audio-Video Synchronization in Swift
 
 
Q