Video loses sync on export
I recorded a video in AVC HD at 1080P 24 fps. The clip shows 23.98 fps in FCP. I took the microphone audio file and am merging it into my project, because the on-cam mic sucked.
Audio is in stereo at 48kHz. Now, initially, I lost audio sync in the timeline as the video played. By the end of the hour long video, I lost approx. 2 seconds. After converting the audio file multiple times with no solve, I used markers to sync the audio to the video at the beginning and end of the clips, and then used the retime editor to line them up, stretching the audio very slightly. This solved the sync issue in the timeline (however, I admit, it may have not been the "correct" way to solve).
The problem now comes when exporting the file. I've chosen settings to export Video and Audio in H.264, Roles as QT movie. I've also tried format "Apple Devices", H.264. The exporting fps is still at 23.98 and audio is at 48 kHz. The audio loses sync in both cases.
Any idea why the video plays perfectly with the audio in the timeline and loses sync in the exported video?
Thanks very much,
Jeremy