I split video and audio from an mp4 using
ffmpeg -i orig.mp4 -an -c copy orig_video.mp4
ffmpeg -i orig.mp4 -vn -c copy orig_audio.aac
I subsequently merge again using
ffmpeg -i orig_video.mp4 -i orig_audio.aac -c copy orig_rejoined.mp4
The problem is, in the rejoined mp4, audio and video are out of sync. The video was recorded with my android phone. I also converting the video to a constant framerate, but this didn't change anything. Any ideas? What I want to do in the end is replace the audio by a mic recording, which is automatically aligned. I want to do this using moviepy, however this uses ffmpeg under the hood, introducing this strange alignment bug.