![]() |
VirtualDub delete+append avi's gives sound problem
Hi,
I'm using VirtualDub 1.9.11 to delete the last part of an .avi (Lagarith) and to this shorter made avi I append another .avi (also Lagarith). Then I save the .avi (direct stream copy) and the new .avi has the audio messed up because the audio of the first avi is not removed/deleted. How to fix this? Is this a bug (in this version only)? I tried google, nothing but useless append tips, I also tried with audio on 'full processing mode', but no luck. Thanks I'm not going to save the first avi and then append the two, that is ridiculous unnecessary work. :) |
1 Attachment(s)
Quote:
Ordinarily I do that sort of cut/join with Avisynth, then send the result to VirtualDub or an encoder.. In either case, the files involved have to be exactly the same format, codec, colorspace, etc. Yes, I had two separate saved AVI's, processed in the same way from a capture of a 25-year-old 6-hour EP tape and a bad cable signal. I cut and joined them in VirtualDub, cutting in the middle of the first AVI and then after 275 frames, and cutting about 200 frames into the 2nd AVI, and saved the join as a 3rd AVI. I did that in VirtualDuib and then did it in Avisynth. Same results both ways, with perfect audio sync. The attached mp4 was cut wirth Avisynth. Why did I choose that one? Because I opened up both versions, couldn't tell which was which, and encoded the one I had already opened in my encoder. Avisynth was easier. Code:
GB06=AviSource("E:\Livin\GB\GB06_Liv7C1_ivtc_Q_vd_MVC.avi").Trim(2205,2479) |
Hello Sanlyn,
Thank you for the quick reply. Sorry for the confusion, this is the situation: Got a recording of a show but the sound gets bad (noise) in the middle (halfway). That is recording one. Made a new recording (call it recording two) that starts just before the sound goes bad on the first one so I can stitch them together to get one good recording. Both recordings are AVI with Lagarith and PCM (no compression) for sound (all settings are the same, resolution etc). - Open recording one - Set selection on the last few hundred frames - Hit delete - Choose 'Append AVI segment..' from menu and select recording two - In VirtualDub sound from recording one is not removed causing desync - Saved AVI also sound desync Just tried it in VirtualDub 1.10.4, also desync. I also tried the same 'stitching' as above with smaller/other AVI recordings (with exactly the same settings) and there is no desync. Weird... |
After an hour and a half of trying, I'm unable to replicate your problem. I've even tried wmv videos going back to Windows 95 and used an old Win2000 PC with VirtualDubMod on it. I kept VirtualDub's audio settings at their defaults. Have you tried making the same cuts and joins in Avisynth?
|
On the first recording (where the sound went bad) VirtualDub did crash, maybe the AVI file wasn't closed correctly?
I just tried with avisynth (your script, thanks!) and it works correctly! :) There is still a tiny audio desync in the original recording(s), not from stitching - how can I easily fix that (with avisynth)? |
Avisynth can't fix that particular sync problem.
A file that's crashing VirtualDub definitely has problems. You can use Avisynth to decode the problem file and save it to an intermediate AVI in VirtualDub, and in doing so VirtualDub's audio menu can adjust the audio delay rate on the working file to sync the way it should. |
Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.