View Full Version : how do i replace an audio track?
rudeboymcc
19th February 2003, 10:15
hi. i'm trying to convert a downlaoded avi to mpeg (VCD). when i tried dvd2svcd, the second cd was just black with an error at the top saying there's a corrupted frame. so i opened divfix, but it found no errors.
when i loaded it into virtual dub, it says
"virtual dub had detected an improper VBR audio encoding in the source AVI file and will rewrite the audio header with standard CBR values during processing for better compatibiity. this may introduce up to 11521 ms of skew from the video streem. if this is unacceptable, decompress the *entire* audio stream to an uncompressed WAV file and recompress with a constant bitrate encoder. (bitrate: 132.1 +- 15.7 kbps)."
so i saved the WAV file from virtual dub, and then came to my problem. how am i going to replace the audio in the avi file? i don't want to use tmpeg because that will convert it to mpeg and i think cce does a better job.
also, how do i fix the bad frames in teh video if divfix can't even find them??
hoozdapimp
19th February 2003, 10:50
well this really has nothing to do with dvd2svcd, however here are some things to get you started:
1) open the avi in virtual dub, extract the wav from the avi, and then remux the video with the newly extracted wav (video-->direct stream copy, audio --> wav audio --> select extracted wav file).
2) there are a couple ways to fix bad frames. you can try to download a program off of doom9 that sometimes fixes freeze frames. you can also do this in virtual dub by scanning for bad video frames and then deleting them.
I am moving this thread to an appropriate spot now, as it has nothing to do with dvd2svcd. next time the thread will be closed if it is not on topic.
Belgabor
19th February 2003, 11:38
Originally posted by hoozdapimp
... you can also do this in virtual dub by scanning for bad video frames and then deleting them.
- Use either VDub 1.5.0 or VDubMod CVS 31.1.03 (alternate mode), as VDub/VDubMod 1.4.13 seem to be a bit buggy.
- In VDub this function usually masks the bad frames, aka they won't be dubbed if you save the file, but this was reported to lead to sync issues (though I don't know of this is still the case in 1.5.0).
- In VDubMod you have the option of deleting the frames (they are NOT masked automatically), which shouldn't lead to sync issues (though I don't promise anything if you have vbr audio).
To the original post:
[preaching mode]
What you probably experienced is the wonder of vbr audio, giving you freeze frames that are simply not there (in the video stream). If you want vbr audio, use a container that supports it.
[/preaching mode]
Solution:
1) demux as explained
2) convert to cbr mp3 (e.g. with lame)
3) direct stream copy video stream to new avi (check Audio->No Audio)
4) mux mp3 to avi with VDubMod
If you want to convert to MPEG anyways, consider doing the whole operation in avisynth, aka do steps 1-3, but in step 2 convert to uncompressed wav. Then try the following script:
vid=AVISource("Path_to_AVI_from_step_3")
aud=WAVSource("Path_to_WAV_From_step_2")
AudioDub(vid,aud)
Hope this helps
rudeboymcc
19th February 2003, 13:32
i did exactly as you said, using the same 4 steps and the latest version of vdub and vdubmod. but the output is still out. the audio is 2 seconds before the video.
i don't understand why the two should move. the file i downloaded was perfectly synced.
seen as it seems it moves whenever i try to demux them, should i try encoding it in tmpeg or will it go wrong? becuase vdub mod would hav fixed any errors in the video.
rudeboymcc
19th February 2003, 14:36
k i've sorted it out now. i just added a 1 sec delay to the extracted wav file useing besweet and then remuxed it with the original video. works fine. thanks for the help.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.