AVI XVid header is skewed, resulting in audio problems, even on recode.

Posted on 2008-10-29
Last Modified: 2013-11-13

I've got an xvid encoded avi that has a bad header. When viewing the avi on a standalone machine, the video pauses after a given amount of time and can't be bypassed.
I've opened the file in VirtualDubMod (latest version) to try to fix, and got an error message saying the VBR header is incorrect, and that a fix will cause up to 2450ms skew. It also says to demux wav file if this is unacceptable.
I've demuxed the wav, and tried to fix, but it's still got the skew. Seems like the audio portion has been stretched or something (resulting in sync at the start of the avi, and out of sync by 2s at the end).

Are there any easy fixes to these problems? it seems to occur with all the avi files I get from this source. I've looked around for batch fix programs to fix the previous files, but nothing has turned up that works.

Any help would be grateful.

Question by:jbuzzard
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Author Comment

ID: 22830695
BTW, for the record. The AVI file is created by a video card streaming out of a video camera. The AVI file is then recoded to XVid and sent to me. I've posted a similar question on another forum, and they denied it because they thought that it was from an illegal source. I assure you it is not.

LVL 22

Expert Comment

ID: 22835706
If it's a digital video camera why is it streamed via a video card. It should be sent via Firewire or USB2.
YOu shouldn't have any sync problems if you capture it this way.

Author Comment

ID: 22837494
It's an analogue camera.
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 22

Expert Comment

ID: 22837612
I don't know what you can do with your existing videos. There's a couple of AVI sync fix programmes floating around the net.
There's a couple of tools here:

For further captures, you video card may be letting you down. Another method is to stream the analogue camera via the analogue A/V inputs, and then capture the video via Firewire or USB.
Try choosing AVI DV as the capture format or MPEG-2.
LVL 22

Accepted Solution

fredshovel earned 500 total points
ID: 22837645
<For further captures, you video card may be letting you down. Another method is to stream the analogue camera via the analogue A/V inputs, and then capture the video via Firewire or USB.
Try choosing AVI DV as the capture format or MPEG-2.>

Sorry, this is supposed to read " via the analogue A/V inputs OF A DIGITAL CAMERA"\

Or alternatively try one of those boxes that does the A/D conversion in the box and then streams it into the PC via firewire or USB.

Author Closing Comment

ID: 31511115
Thanks for your help - the video card was not syncing properly with the sound input. I got a soundblaster XFi, and it's now working fine. I've tried to use the syncing programs, but not much luck.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DVD won't play using VLC 12 82
copying mp4 filename to title 4 181
EXPENSIVE Microphone being used on a PC has low output!!!??!!?? Audacity 13 99
streaming to a tv 13 69
I have a Synology DS212+ NAS.  These are not only great for backup and normal NAS stuff, but also for delivering media throughout your home or LAN via DLNA.  I copied my whole audio collection from iTunes over to the box, but couldn't figure out how…
In this article, I'll explain how to setup a Plex Media Server ( on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question