Hi I have a great problem with some divx because I tried a lot of ways to encode but audio was always out of synch!
example
I have a divx with these features: video
640x352 24.700 fps 1:30:26 sec Divx Pro 5.0.5 codec
audio
48000 KHz 1(Mono) Fraunofher Mpeg layer 3
I want convert it to dvdr PAL (25fps) or holding 24.700 as framerate
It doesn't matter because my dvd player read also the stones.
I tried a lot of ways but audio was always out of synch.
1 I open video file with Vdub and it doesn't give me the VBR error, I set audio to full processing mode, in compression I set no compression PCM
and I uncompress the audio in a file WAV
2 I open the video file I set audio to no audio and video to direct stream copy and I save the avi with no audio
now....I reopen Vdub
as video file I put that with no audio
as audio I put the wav I saved before but
when I go to see framerate there is a difference of about 1.260 framerate and when I see the output preview with Vdub the audio is terribly out of synch..............
what can I do? I'm going crazy![]()
![]()
![]()
Why extracting audio from Vdub gives problem of synch?
I tried to change framerate to 25 and convert the audio to 25 with Besweet but nothing changes
I tried also to put the original avi synch in CCE but it doesn't accept framerate different from 23.976 25.
My original divx is perfectly synch and there is no bad frames
Someone could help me possibly with CCE because I always use this program...
many thanks
![]()
![]()
![]()
+ Reply to Thread
Results 1 to 16 of 16
-
-
i didnt read ur whole question but i had the same problem for several weeks that audio was out of sync. i didnt make any dvds but svcds but i used virtual dub as well. first u need virtual dub mp3freeze which helps in the most cases to sync the audio except with xvid avis. i use avi2dvd which is a lot easier and u dont have to extract audio etc. bloody job. it does it all for u. i always set audio and video to direct stream but i dont extract audio. i keep it together. if after encoding i still experience non-sync audio i use TMPgenc tools under file>tools>de-multiplex (check the edit for further details) to extract audio from the mpeg. u have to guess the gap between audio and video and then try for urself. it was nearly always 2 secs with me. funny....!?!? hope it helped u...
greetzkazaa rules... -
Sometimes you just have a corrupted source. I recently found a decent fix for this. It requires AVISynth, and a small bit of patience, but I was able to fix a corrupt MPEG using the process.
The input was an SVCD MPEG, which had either corrupt video or audio (doesn't matter which). I opened this in DVD2AVI, and created a D2V project file, and demuxed the audio to MPA. The audio, I converted from MPA to WAV in BeSweet. The video (project file), I opened in AVISynth.
The trick, was to break the movie up into smaller bits. This way, a gradual sync loss, due to corruption, can be fixed by adjusting the input over the course of the movie. To do this, the script would look like so:
LoadPlugin("mpeg2dec.dll")
video=Mpeg2Source("dvd2avi.d2v")
audio=WavSource("audioinput.WAV")
AudioDub(video,audio)
clip1=Trim(0,10000)
clip2=Trim(10001,20000)
clip3=Trim(20001,30000)
clip4=Trim(30001,40000)
clip5=Trim(40001,50000)
clip6=Trim(50001,0)
At this point, I would start with Clip1, playing the input to guage if the audio was delayed, or fast. You do this by setting Clip1 as the output for the script like so:
LoadPlugin("mpeg2dec.dll")
video=Mpeg2Source("dvd2avi.d2v")
audio=WavSource("audioinput.WAV")
AudioDub(video,audio)
clip1=Trim(0,10000)
clip2=Trim(10001,20000)
clip3=Trim(20001,30000)
clip4=Trim(30001,40000)
clip5=Trim(40001,50000)
clip6=Trim(50001,0)
Clip1
Save and play back the AVS script in MediaPlayer (or whatever AVI player you use). The TRIM command is used to segment your AVI into smaller parts. The TRIM command syntax looks like this:
Trim( clip,startframe,endframe )
Specifying 0 for the startframe will indicate "from the beginning". Specifying 0 for the endframe will indicate "to the end".
The command to delay the audio, looks like this:
DelayAudio(clip,seconds)
The number of seconds can be a decimal value (ex: .5 ), or a negative value (ex: -1.3 )
You use this to sync up the audio to each CLIP variable you've defined. It looks somewhat complicated, but it's rather easy. It took me about 15 minutes to fix a bad SVCD MPEG this way> The way you implement each fix to the CLIP variable, is to plug the DelayAudio command directly into the "CLIPx=" Line, like so:
LoadPlugin("mpeg2dec.dll")
video=Mpeg2Source("dvd2avi.d2v")
audio=WavSource("audioinput.WAV")
AudioDub(video,audio)
clip1=DelayAudio( Trim(0,10000), -.5 )
clip2=Trim(10001,20000)
clip3=Trim(20001,30000)
clip4=Trim(30001,40000)
clip5=Trim(40001,50000)
clip6=Trim(50001,0)
Clip1
Once I've finished with Clip1, I just change the last line of the script to the next clip to work on (Clip2 in this case), save it, and repeat the process. The reason this works, is because your effectively splitting up your movie into 6 distinct parts (in this example). The audio is syned to each CLIP, and can be skewed individually for each CLIP. Once you've finished with all of your CLIP fixes, you then combine all of them into one output stream like so:
LoadPlugin("mpeg2dec.dll")
video=Mpeg2Source("dvd2avi.d2v")
audio=WavSource("audioinput.WAV")
AudioDub(video,audio)
clip1=DelayAudio( Trim(0,10000), -.3 )
clip2=DelayAudio( Trim(10001,20000), -.5 )
clip3=DelayAudio( Trim(20001,30000), -.9 )
clip4=DelayAudio( Trim(30001,40000), -1 )
clip5=DelayAudio( Trim(40001,50000), -1.1 )
clip6=DelayAudio( Trim(50001,0), -1.3 )
clip1++clip2++clip3++clip4++clip5++clip6
Because each clip is considered distinct, when you fix each CLIP, it doesn't affect the audio skew in the other CLIP's. When joined back together, the adjustements you did to each CLIP is retained, and your output is fixed as a result. Note, that I just used 10000 frames as an example. You can make your clip sizes as big, or as little as you like. The smaller you make them, the more CLIP's you'll need, but the finer your control over the audio skew as a result.Impossible to see the future is. The Dark Side clouds everything... -
thanks for reply...
@tommybs
What is Avi2Dvd? Is it the same Dvd2Svcd?
I didn't find anything about that program...
Which is the home page?
@DjRumpy
Isn't there an easier way?
May I do the same thing with Vdub? cutting avi and getting synch every segment?
thank you -
rspike12, no, not that I can think of. Audio sync problems can either be easy to fix, or difficult. If it's easy, you can simply stretch, or shrink your audio to fit the length of your video file. Sometimes this actually works. If it doesn't, then your will have to do a little work. Your other option is to simply get a better source file
Impossible to see the future is. The Dark Side clouds everything... -
http://www.dvd2svcd.org/ thats is it combines so many programs and is so much easier to use than TMPGenc in terms of functionality! quality is just the same!!! get it ... and read this guide https://www.videohelp.com/forum/userguides/111846.php
hope it helped, well it did for me
tommybskazaa rules... -
tommybs, DVD2SVCD won't fix audio sync problems inherent in the source file. It's a general conversion tool, which automates the process for you, using many of these same apps in the background. It doesn't really apply to this problem.
Impossible to see the future is. The Dark Side clouds everything... -
that wasnt what io said!!! i said encode the avi using dvd2svcd to mpeg!!! and then load these mpegs in TMPGenc and (de)multiplex them and stretch the audio! that worked for me on most Xvid files!!!
kazaa rules... -
tommybs, I'm aware of what it does. The fact that the framerate changes on the saved AVI indicates a problem with the source file. No automated program is going to give an easy fix. You post could lead rspike12 to believe this could fix his sync problem, when it most likely will not. The program your suggesting will convert AVI to MPEG, but it doesn't handle corrupted source any better than the method rspike12 is already using. It will also lose sync if the source has a problem.
rspike12, you mean as soon as you open your new AVI (without audio), the framerate has changed?
I tried to change framerate to 25 and convert the audio to 25 with Besweet but nothing changes
I tried also to put the original avi synch in CCE but it doesn't accept framerate different from 23.976 25.Impossible to see the future is. The Dark Side clouds everything... -
Is the audio the only problem? Nothing is wrong with the video? Did you capture this file? What are some of your system specs?
The reasons I ask this is because my built in soundcard (C-Media) acts funky when I capture and have the audio set to 48000khz. If I try to capture at that rate, the audio sounds sped up and is not in sync with the video. So, I have to capture audio at 44100khz and unsample or remux it to 48000khz. If I do it that way, everything is fine and in sync.
I don't know if that will help or not, but it seems like a similar problem.
Also, I've read that Virtual Dub has a problem with Fraunofher. I'll try to find the information. Do you use the Nimco codec pack? I believe that that pack has a bad Fraunhofer codec. Try to get Fraunhofer Mp3 Pro codec.
Mythos -
I hadn't heard about his Fraunhofer bug. I also use this codec with VDub without issue. I would bet it's more of a Nimo Codec pak issue, rather than Fraunhofer itself. Let me know if you find anything Mythos.
Impossible to see the future is. The Dark Side clouds everything... -
woooooaaa getting a bit complicated here
i NEVER have sync prob because the method i use is very similar to a guide that is part of dvdrhelp
1st i get a decompresser, (quite a few peeps have said after they have decompressed the avi, everythings fine)
2. decompress the avi
(when decompressing, what it does is decompress the whole avi sound file and creates a new one if your film was called centuryfox.avi a new one will be called centuryfox_pcm.avi it doesnt delete the old one, incase you just want to put it on a data cd)
3. now load the _pcm avi into vdub and do the usual wav saveing, i also convert to 44100 and click high quality aswell,
4. in tmpgenc select same fps as vdub said, load the _pcm file as the video and the saved wav as the audio and do yer usual stuff, i also click error protection in the audio tab, (if doing svcd, already ticked)
then to see if its outta sync only encode a small part near the end
if its ok, then its sorted, if its still out then youve come across a prob that ive never had, anyone else help
p.s. does the avi play fine in mediaplayer? -
You shouldn't have to save a new avi. Not all AVI's are corrupt. You should take steps only if your output has probelms. I wouldn't do it as a general rule on every AVI. If you have a corrupt source, then saving it as an uncompressed AVI will do nothing to resolve the problem.
p.s. does the avi play fine in mediaplayer?
This audio sync problem could be a simple PAL/NTSC conversion issue. I haven't heard back from rspike as to how far out of sync the audio is. If it's only a few seconds, it's like due to a corrupt source file. If it's off by minutes, then it's probably a PAL/NTSC conversion issue for the audio.Impossible to see the future is. The Dark Side clouds everything... -
I've looked, but couldn't find anything on Fraunhofer being at fault. It has been several months since I had read that, so that news could be invalidated with a newer version. I did do some searching, and most people recommend using the Pro version of Fraunhofer instead of the standard version. The only complaints I saw when I typed "Fraunhofer bug" on Google was from 2000.
The bug I read about had something to do with a codec and Virtual Dub. That may have also been fixed because I read this around the time the newest Virtual Dub was out in November.
Mythos -
thanks to everybody for replies
@DJRumpy
I tried another method with virtual dub with the Interleaving option.
I change the value in audio skew correction and I make a preview with virtualdub and finally I get the avi sync....
the problem is that at the beginning of the avi video comes before audio and at the end audio comes before video....so I try that:
I make three segmented avi (segmented when I see a loss of synch) of my original avi and I synch audio and video for each one....I saved the three new synch avi and then I have to append every segment to get my full avi....right?
but when I append the three segmented AVI I lose again the synch....
WHY?
What's wrong in this method?
thanks -
I have one other idea. Did you read my first post here about my audio problem if I capture at 48000? It may not apply to your situation, but I have to capture at 44100 and convert to 48000. See if you can try a lower audio rate, check it to see if it is sync and then remux to the desired audio rate and check again.
Did you also try any of the framerate tabs in Virtual Dub where it says change framerate to keep audio in sync or something like that?
Hope that helps.
Mythos
Similar Threads
-
audio not in synch
By ak.premkumar in forum Newbie / General discussionsReplies: 0Last Post: 23rd Jul 2010, 10:51 -
Out of synch audio
By Maxwellbest in forum Video ConversionReplies: 4Last Post: 20th Jan 2008, 10:33 -
Audio At strat in Synch , along of Movie Lost Synch with Video !!!!!
By p_samimi in forum AudioReplies: 9Last Post: 12th Jan 2008, 23:47 -
audio synch
By Usagi in forum DVD RippingReplies: 5Last Post: 28th Dec 2007, 19:11 -
Audio goes out of synch
By Semaphoric in forum Authoring (DVD)Replies: 3Last Post: 27th Sep 2007, 22:01