Usually to save hard disk space I convert downloaded files from say a 640x400 resolution MPG, AVI or WMV to a 320x240 standard DIVX encoded AVI file and usually the conversion takes place without a hitch but sometimes the audio of some files just lag in a progressive manner, to say it's starts ok but loses sync as the video progresses so that by the time the video is finished the video and the audio are one mile away from each other! So what is the procedure to fix this. I do have VirtualDubMod and VirtualDub as well, so I have the tools but would like to know how to fix this particular type of audio lag using the programs I mentioned before. I know they are used for this stuff but not the correct way to use them to fix this so any help would be greatly appreciated Thank you!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 16 of 16
Thread
-
-
progressive desync usually means different lengths of video & audio
there are many guides and ways to attempt a fix. Here is one guide, skip to the 2nd situation:
http://www.gromkov.com/faq/faq2004-0064.html
The other possibility is that your source file has a variable frame rate (VFR), if you search , this topic has been addressed here several times as well. Only certain containers (e.g. mp4, mkv, wmv) support this, so if you source was AVI for example, it most definitely is not VFR -
Thanks I've downloaded the programs there and basically most of them do separately what VirtualDubMod and VirtualDub do as a one package deal.
I've used the programs there and the VirtualDubMod, VirtualDub programs to no avail, either the audio skips too far ahead or lags if I skew it and saving the audio file separately and re-merging it latter on has not worked at all. So I truly am out of ideas here! -
I don't think you understand.
It's NOT a skew correction (like in vdub), that is for constant delay scenario. (That just shifts the audio +/- delay). Here the duration is the same, and you can fix it with a skew, or audio delay +/- (in this example below you can shift the audio right 1 segment to make it line up)
Code:_vvv aaa
e.g.
Code:vvvvvvv aaaaa
audio 99sec
In this scenario you would stretch the audio by 100/99 to match in an audio editor (e.g. audition, soundforge, audacity). You could also slow the video by 99/100 in this example, that would work as well. The last program in that link can adjust the frame rate. Did you try it or follow the instructions?
You can sometimes determine the audio & video length with mediainfo (view=>text) but it is sometimes incorrect if the video is damaged
The other possibility is that you have glitches/desynch points that throw the audio off at each glitch - you would have to process the video in segements or cut out the offending section. In this case you have to take each "good" section, apply the skew (audio shift) correction then join, you could do that with vdub or avidemux
And I have to ask the Capt. Obvious question(s): is your original source file in sync? And how did you convert it? -
It's likely that it's reporting it incorrectly (e.g. just reading the header info, but the actual video & audio data might be different, or damaged).
The bitrate has nothing to do with sync issues.
Instead of fixing it, another option would be to try another converting method. You haven't given enough information. If you don't feel like answering the questions that were already asked I can't help you.
1) Is the original file in sync
2) Any glitches in the original file
3) What format is the original file? (avi, mkv etc...)
4) How did you convert it
5) Any glitches in the converted file?
6) When does the desync occur? -
Originally Posted by poisondeathray
Originally Posted by poisondeathray
Originally Posted by poisondeathray
Originally Posted by poisondeathray
Originally Posted by poisondeathray
Originally Posted by poisondeathray -
Open the AVI in Virtualdub > go to the last frame and note the time of the video.
Open the audio in Goldwave and check to see if the audio length matches the video.
If not, use the Time Warp feature under Effects to make the audio the same length as the video.
Save the audio ( mp3 ? ) and under audio in Virtualdub > click "audio from other file" and select the file that you saved with Goldwave.
If the audio is still out of sync after using Goldwave then use the audio interleave feature in Virtualdub. You have to experiment until you get it right. -
When you say "glitches", is there a distinct video and audio discrepancy at a certain point in time?
If so, and if you want to salvage what you have, you have to process it in segments.
Identify ALL the glitch points. There will be an audio offset at each point in the encoded video (usually about -200ms or so). These will accumulate over time (i.e. about -400ms after 2 glitches, etc....)
Cut it up in vdub or avidemux into "good" sections. Fix each segment by using the skew correction in vdub or audio shift in avidemux. Then join them all
If the audio & video don't match in duration for each "good" section you have to stretch/shrink either the video or audio to match as described earlier -
Originally Posted by PunkMaister
Just load the original AVI file in VirtualDub, resize with its filters, save as a new AVI?
Or do the same with AviDemux, which I find very stable for such conversions.
That doesn't help much with fixing what you've got now though.
As the sync seems not to smoothly vary, if you can find where there are jumps, try cutting it into segments (with Avidemux or VD). Then you may be able to skew each segment back into sync, and finally rejoin.
If you need to stretch the time, you can demux the audio to WAVE and use a sound editor. -
Originally Posted by poisondeathray
-
Originally Posted by AlanHK
-
Originally Posted by PunkMaister
Intermediate conversions take quite long time, and lose quality needlessly. -
Ive sometimes found a few files to seem like they are out of sync on my PC but it was WMP that was at fault . I use VLC now .
For my backups , I use (as mentioned above) AviDemux to convert to Xvid as my Son deck plays them , I keep the resolution and drop the bitrate .
If you want to correct the files and its a linear out of sync fault , just note certain points at the start and end and then stretch/shrink in Audacity (or whatever) . Ive changed quite a few music videos to a cd based soundtrack from old VHS captures and even 0.1s is really noticeable on lip sync , you`ll need the time down to milliseconds . -
Originally Posted by PunkMaister
Similar Threads
-
How to fix audio synch problem in AVI file
By vertical in forum Newbie / General discussionsReplies: 153Last Post: 20th Aug 2021, 07:45 -
Oops, converted home video file is massive, how to fix?
By grathan in forum Newbie / General discussionsReplies: 5Last Post: 6th Mar 2012, 11:26 -
Audio/video Out of Synch in Converted AVI File
By Novice20 in forum Video ConversionReplies: 1Last Post: 31st Aug 2011, 03:10 -
Is it possible to fix a sync issue on a converted file (mp4)
By AndyD in forum AudioReplies: 3Last Post: 23rd May 2009, 22:28 -
No audio in converted file
By seaneroni in forum ffmpegX general discussionReplies: 5Last Post: 27th Apr 2009, 23:25