I encoded several divx files using a guide on another website for FlaskMpeg. Everytime i encoded a file, the audio was horribly out of sync. I fixed this quite easily. I skipped the step that tells the user to enable "Dynamic Range Compression."