I am trying to fix an audio stream which drifts out slowly every 300-700 ms or so. I tried 23.976 > 25.000 speedup, but it doesn't work. The source video and the encoded video are both at 29.970, but the audio is slower for the encoded video. I re-encoded the video at 23.976, but still the same. I am pretty sure 25.000 fps won't solve as Vdub shows 24.981 or so to sync the audio and video. I even tried time wrap with video duration/audio duration percentage, but that doesn't help either.
It's in sync for the first 40 seconds or so, but then slowly start delaying.
Video Duration: 4718 s [01:18:38]
Audio Duration: 4725 s [01:18:45]
Ratio: 4718/4725 = 0.99851
Any idea how to use the Vdub's Interleaving per MS/Frame feature to fix this?
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 24 of 24
Thread
-
-
It's probably easier to change the audio length. You could use VD to demux the audio or save it out as a WAV and then use Audacity to adjust the length, then add it back with the video using VD. If needed, you could also adjust the pitch if it's off too far.
That's the method I use most times.
And welcome to our forums. -
Will making the lengths same fix the problem? I tried with some other audio file, but it didn't work. It was in sync in the beginning and the end, but the middle parts were OOS.
-
You could try this, I use this for DV captures
Method 1 (after DV AVI capture)
- Open AVI in VirtualDUB
- Go to video - Framerate and then select adjust audio/video framerate
- Save AVI (video: direct stream copy and audio: direct stream copy)
Or try to stretch the audio to the video file. I use Vegas for thatThe flag once raised will never fall! -
I already tried the framerate method, but no luck. It says Video is at 23.976 and 23.976 for adjusting as well.
Stretching the audio? I want to shrink it and speed it up, not no idea how to calculate the speed up %. -
I meant shrinking
You can try Syncview to calcute the delay, I did it manualy if it is 300ms late put that number in (if it's late use negative)
Then you can use Hypercube time stretcher (you can use negative numbers for shrinking) I've never try that, Vdub and vegas worked for me.
With Hypercube you can put a time and delay from that moment so far I seen.
Or Vegas go to the end and zoom in to the end and press ctrl+mouse moving to right/left for shrinking or stretching.The flag once raised will never fall! -
Hypercube time stretcher crashes on loading the AVI and WAV files. How does Vdub work for you? Could you please explain in a bit detailed manner?
-
I am confused by your description of the problem. Are you saying that the audio is drifting in and out of sync across the running the time of the clip, with the sync being out by between 300 and 700 ms each time it drifts ?
Or are you saying it drifts out of sync slowly over the duration of the clip until it is out by somewhere between 300 and 700 ms ?Read my blog here.
-
Lately I'm capturing VHS tapes trough my camcorder (firewire passtrough), the format is 25.000 FPS PAL
How futher in the video, how more out of sync.
So I load the video file in Vdub and this method
Method 1 (after DV AVI capture)
- Open AVI in VirtualDUB
- Go to video - Framerate and then select adjust audio/video framerate
- Save AVI (video: direct stream copy and audio: direct stream copy)
And it works, I dont know how it does but it does the job.
Here is another method, I dont use it but maybe it works for you if the audio is constant 300ms out of sync
Method 2 (constant audio sync)
- open in Syncview
- look/analyse the sync in ms
- copy the correct ms
- open VirtualDub go to audio-interleaved and under past the positive or negative ms.
If you know exactly the audio sync in ms you can past step 1 to 3The flag once raised will never fall! -
The step 4 in method 2 is for Preload audio box or the delay audio by a constant ms?
@guns1inger: It gradually gose out of sync. There is a scene where it suddenly delays itself by 10 sec. So I split the video there, sync the beginning and now I trying to sync the rest which goes OOS as the video plays.
EDIT
SyncView gave me fluctuations in the system sync error between -27ms to 10ms. I think I need to make Vdub's Interlaving > preload x ms every x ms or x frames work. Just can't calculate the correct value. -
delay audio by constant ms, if the audio plays 5 sec late constant you use -5sec.
the scene with 10 sec delay, you can split as you say and use this method, later you can make that one video again.
But for the rest if goes slowly out of sync?The flag once raised will never fall! -
Yes, I did -9800ms constant delay and it's in sync for the first 1 min. Actually the gradual delay is so small initially, it's hard to differentiate until 1 mins x secs as the delay increases.
I had just added "SyncView gave me fluctuations in the system sync error between -27ms to 10ms. I think I need to make Vdub's Interlaving > preload x ms every x ms or x frames work. Just can't calculate the correct value." -
I have never used it before, so please bear with me. I used examine to play audio and video in slow motion. It pauses after 5 secs and shows -15 to -21 ms as the sync error. I guess, somewhere between is the amount of gradual delay?
Now, let's say a number between 15 and 20 -> 17 is the amount, how do I get "x" in preload every "x" frames? -
Don't look at the sync error, It doesn't give good results (in my experience).
Look in slowmotion and then you have to feel and play with the ms.
Look and exame what you think is right, if you think 3ms late, that fill -3ms and watch again, it's better? > try -4ms.
So bassicly you have to play with the ms and dont look to the sync error
I dont know about preload, I've never used that.
EDIT: What video is it, a TV card capture?
Maybe this would work VirtualDub Sync, it fixes the dropped frames. I've never tried it but the people are positive
It would be easierThe flag once raised will never fall! -
So you mean I note the sync delay every few seconds according to the difference between lip movement and audio playback?
It's actually a dubbed movie. Video is from the DVD5 release, and audio is from from a previous encode with poor video quality. For some weird reason, the encode was at 29.970 with duplicate frames and the audio was in-sync. I tried the new video at both 29.970 and 23.975, but it gradually went OOS in both. Don't how the encoder synced it.
VirtualDub Sync doesn't seem to have any specific or "new" features. How is this better than the VdubMod or the original release? -
This is an actual issue with all versions of virtualdub / mod and the audio will always end up drifting during preview, it is not meant as a video player.
Should the video play in other players without this audio drift then you do not need to correct this but merely correct the audio starting point, either earlier or later.
Syncview (cough) and goldwave can cure issues where audio dose not match the videos time length.
However, if you are indeed dealing with true audio drift then you could use audacity to modify the frequency then use vdub to swap audio for the modified audio.
Have a look at cooledit pro here > https://forum.videohelp.com/topic78178.html -
For the trick with CoolEdit, I have Adobe Auditions. I tried the speed up, but as I don't know the original speed at which the audio is playing. I used the following calculations, but it was now faster than the video:
Step 1: Audio 1 > 4161s x 23.976 = 110723 Frames
Step 2: Audio new > 110723fr / 25.000 = 4428.95 s
Now, 25.000 was just a logical guess, but it didn't work. Any way of computing the precise fps for the step 2? -
I only have a little experience with audio syncing, wich VirtualDub did the job with method 1. And that was a DV PAl 25 fps file.
And one with the exact the same audio file as the DV AVI but with less noise I get that in sync it took 3 days (strechting shrinking cutting etc)
I wish I could help you outThe flag once raised will never fall! -
as Vdub shows 24.981 or so to sync the audio and video.
if you wanted to re-encode the audio and lose quality, you could do it in audacity too. I think it uses %change, so 1.0 - 0.9985185 = 0.0014815 or 0.14815%
if the audio & video durations now match, and the sync is ok at the beginning, then you have other problems like glitches or desync points, which means you have to process this in segments, or the audio isn't even the proper version (e.g. director's cut or maybe a different scene added etc...) -
You're dropping frames.
http://www.digitalfaq.com/guides/video/capture-dropped-frames.htmWant my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS
Similar Threads
-
Audio suddenly drifting out of sync
By dubmunkey in forum Software PlayingReplies: 9Last Post: 13th Aug 2010, 07:46 -
Problem with audio gradually going out of sync in ts file (captured video)
By shadowofanubis6 in forum Newbie / General discussionsReplies: 0Last Post: 28th Feb 2010, 11:12 -
Audio drifting when merging Sony .m2ts files in tsMuxeR
By jaholmes in forum Authoring (Blu-ray)Replies: 2Last Post: 28th Sep 2009, 12:02 -
Audio goes out of sync gradually
By TheDavo in forum DVD RippingReplies: 11Last Post: 10th Aug 2009, 14:01 -
Video and audio gradually go out of sync?
By BuriedInSmoke81 in forum RestorationReplies: 25Last Post: 2nd Dec 2008, 06:27