Field notes · 2026-11-11
WMV from a DVR download has audio that drifts out of sync
A recorder stores footage in a proprietary form and its download tool converts to WMV. After conversion the soundtrack starts acceptable but falls several seconds behind by the end. How can the sync be repaired, and is there a better source file to work from?
Answer
Answered by the Tracewind engineering team.
Progressive drift almost always means bad timestamps or a slight audio/video clock mismatch introduced by the converter, not a codec that suddenly fails halfway. Inspect the WMV with ffprobe -show_streams and note the frame rate, audio sample rate, and whether video is variable-frame-rate.
A practical repair is to rebuild into MP4 while letting the audio resampler follow the video clock: ffmpeg -i file.wmv -c:v libx264 -crf 18 -c:a aac -af aresample=async=1000 -movflags +faststart fixed.mp4. If the reported frame rate is stable, forcing constant frame rate (vsync cfr with the real fps) can also stop the gap growing. Tools such as VirtualDub2 or Avidemux sometimes help by rebuilding a messy index. Avoid stacking multiple lossy converts; fix once from the best available master.
Whenever the recorder’s original export still exists, work from that file instead of the already-converted WMV. Tracewind Player opens many Hikvision and other proprietary recorder exports, skips damaged sections honestly, and can export an A–B clip as a standard MP4 that ordinary editors handle cleanly—often avoiding the drifting WMV path altogether. If a sample still will not open or stays out of sync after remux, send it through https://tracewind.world/demo/ for container analysis.
Where this question came from
The question is paraphrased from a public post on Super User (2026-11); the person who asked it has no link to us. Read the original thread