Cinematic Extended/Cinematic stabilization AV Sync with AVAssetWriter

When using AVCaptureVideoDataOutput/AVCaptureAudioDataOutput & AVAsset writer to record video with cinematic extended video stabilization, the audio lags video upto 1-1.5 seconds and as a result in the video recording, video playback is frozen in the last 1-1.5 seconds. This does not happen when using AVCaptureMovieFileOutput. I want to know if this can be fixed or there is a workaround to synchronize audio/video frames? How does AVCaptureMovieFileOutput handle it?

Hello, any update about this issues? I have same problem!

Cinematic Extended/Cinematic stabilization AV Sync with AVAssetWriter
 
 
Q