hi,

This problem has been bothering me for awhile now. Everytime i play avi files at my windows media player, there will be some point where the audio will not be synchronized with the video. This happens for like a couple of minutes then goes back to normal then happens again.

Can anyone pls help me with this problem? Do i need to download a certain codec?

Dani AI

Generated

Intermittent audio drift like this is usually caused by one of three things: a problem in the file/container (bad timestamps, poor interleaving, VBR audio or variable frame rate), conflicting or wrong DirectShow codecs/filters used by Windows Media Player, or a system/driver issue (audio driver, sample‑rate mismatch, CPU spikes or power‑saving throttling). As described, the symptom (audio slips for a minute then returns) fits any of those. and have already pointed at codecs and audio decoders — the steps below focus on diagnosing which of those tracks is the real cause and how to fix it safely.

Diagnosis checklist

  1. Test the same AVI in another player (VLC or MPC‑HC). If the alternate player stays in sync, the file is fine and WMP/codec filters are the likely culprit. If alternate player also drifts, the AVI is probably malformed.
  2. Inspect the file (use MediaInfo or a similar tool) for variable frame rate or VBR audio and note audio sample rate (44.1 vs 48 kHz).
  3. In Windows sound Playback device properties -> Advanced: set the default format to match the file and disable “Allow applications to take exclusive control” and any audio enhancements. In WMP, turn off crossfading/volume leveling.
  4. Check drivers and power settings: update the audio driver, chipset drivers, and use a High Performance power plan to avoid throttling during playback.
  5. Check DirectShow filter order (GraphStudio/GraphEdit or a codec-tweak tool) and remove duplicate/conflicting decoders rather than piling on more codec packs. Create a restore point before codec changes.

If the AVI is the problem, remuxing usually fixes timestamps. A simple ffmpeg command that regenerates presentation timestamps:

ffmpeg -fflags +genpts -i input.avi -c copy output.mkv

Cautions: avoid installing multiple overlapping codec packs; uninstall conflicting codecs cleanly and keep changes reversible. If none of the above resolves the drift, the file may need re‑encoding or replacement.

Recommended Answers

All 2 Replies

Gennerally the Divx codec is the best one for avi's. If the divx codec for media player doesn't work, try it in the divx player.

You might want to download the AC3 filter pack

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.