iOS 14: copying videos from the Photos app using AVAssetExportSession resulting in audio getting out of sync. The audio track start time is off by ~0.09 sec. On iOS 13, while there is a lag, it's only ~0.04 sec, which is virtually unnoticeable. Is anyone else experiencing this issue and is there a solution?
iOS 14: copying videos from the Photos app using AVAssetExportSession resulting in audio getting out of sync
Please file a bug report using the feedback assistant. We would not expect the audio and video to be out of sync on any iOS release, and certainly would not expect the problem to get worse from release to release. Please include at least an example of a source file with which you see the problem, and ideally include a sample app we can build & run to reproduce the issue.
Hi there, Thanks for your response. We've already filed a bug report on 11/13/2020 titled "iOS 14: copying videos using AVExportSession resulting in audio getting out of sync". We'll add a sample app and media file.
I found that it was actually using the AVComposition that was causing the syncing issues. When inspecting the individual audio and video tracks, I saw consistently that the audio track was shorter than the video track, creating a "blip" or offset syncing issue at the loop boundary of the video. Would love to know if there was ever any resolution on this!
We filed a bug report, but haven't heard back.
It appears that the issue should be fixed in an upcoming software update.
Oh great! Fingers crossed!
I'm happy to report that the issue seems to have been fixed in iOS 14.5 beta 7!