AC3-5.1 audio

Ive been downloading many movies with the ac3-5.1 and when i convert the files from avi to mp4(using dvd video soft converter) for my iphone the audio is badly unsynced on both the phone and comp. which program can i use to permanently change the delay in audio so it syncs up again.

I do believe virtualdubmod.

Or AVIDeMux.