untitled
This is a moderated forum. Please refrain from personal attacks, troll baiting and off-color language.
Posts for wanted "warez" or "cracks" will be deleted within 48 hours. Please look elsewhere.
Unsolicited posts advertising "warez" or "crack" sites and information will be deleted.
Keep your comments to a technical gendre. Be gentle .. we were all "newbies" once.
These suggestions reflect the wishes of the majority of this forum's users.
FAQ / SEARCH
 


  << Previous Topic | Next Topic >>Return to Index  

audio sync problem

August 6 2003 at 9:51 AM
KTM  (no login)

 
ok I extracted the audio using virtualdub MP3 freeze and saved it as a wave file ....... then used tmpgenc to hook the video and audio together ..... all good for about the first 17 minutes then its slowly starts to show that audio is ahead of the video and by the end of the movie it really ahead ... so it slowly gets farther and farther apart........ When I made the wave file its 3seconds shorter than the movie file ........ I know in the settings in the sorce range area I can adjust for audio gap ....... dose any one of a formula to figure out where I would need to set it... its in msec (I'm assuming this is milli seconds) anyone got some ideas ......... I would just start trying but man it takes like 12 hours to encode this using best quality and I've already spent like 50 + hour on this movie..... Any help is appreciated!!
Thanks

 
 Respond to this message   
AuthorReply
Jason
(no login)

Re: audio sync problem

August 6 2003, 12:17 PM 

MPEG2VCR has an option under multiplexing where you can adjust audio in the mux and move it forwards or backwards by specified amounts. This would probably fix your problem. You can get a copy (it's not free though) at
http://www.womble.com. If you're going to seriously get into making your own videos, I can't imagine living without a good video editor like MPEG2VCR. Lusifer has reported that it's possible to shrink or expand audio in an audio editor, but I have no idea how to do this. He's had very good results fixing sync problems with this approach.

 
 Respond to this message   
gammer
(no login)

Re: Re: audio sync problem

August 6 2003, 1:13 PM 

TMPGEnc is known for making the audio go outta sync when you use it for multiplexing.

If possible, try using Womble's MPEG2VCR for multiplexing. Its a much better program and I agree with Jason in that it is the "Cats Meow" if you are doing any type of MPEG2 work.

 
 Respond to this message   

(Login luisifer)

Re: Re: Re: audio sync problem

August 6 2003, 11:06 PM 

If the Audio is a Different length than the Video then the only way to fix it is to use a Good audio editor to stretch the audio to the correct the length, when decodeing VBR Mp3 to wav the length changes cuz the data packet size in VBR Mp3 is not constant so it changes length when decompressed..If you can get a Copy of "Sonic Foundry Sound Forge 6" you can load your source AVI file into it and it will let you decompress the audio to wav without changeing the Length and it can stretch or shrink the length of the audio with it and even encode your While AVI file to Mpeg2....

 
 Respond to this message   

(no login)

video audio sync ... general

August 7 2003, 7:35 AM 

The advice above is quite good, and this won't be helpful in the sort term...

One of the things I've figured out recently with my new Canopus EMR unit, is that your "luck" with audio sync begins with your encoding board. Canopus filters and stabilizes the signal so that audio and video stay in synch...ALWAYS, even with old VHS tapes.

All the singing and dancing that I've done in the past to get things to stay in sync, or back into sync, and my current card just does it for me. Even when I transcode now I don't have to worry about new sync issues.

By way of comparison, my DVCII card makes great video, but the audio sync results were unpredictable. Many boards now have got good looking video it seems, but if somebody is talking and the sound is off its ruined.

I realize that isn't a help to you now, but you can take note, and consider for the future that if you intend to do a lot of video encoding then a card that specifically addresses the issue can help a LOT.

Best of luck.
mark


 
 Respond to this message   
Ronny
(no login)

Re: video audio sync ... general

August 7 2003, 8:21 AM 

When I have problems like this I use to split up the movie in parts, let's say 15 minutes each (or as long as needed until it is out if synch again) and try to make video and audio in synch within each part. Then I join them together again. Normally I do this with avisynth and check the results in virtualdub before feeding it to the mpeg2 encoder but it may be possible to adjust this in a good mpeg2 encoder like Womble mpeg2vcr as mentioned above to fix an already encoded file.

Often there is one or two parts of the original movie with bad encoded frames and everything works fine when playing the movie when video and audio is stored in the original avi. But when you demux it you'll find thet the length of video and audio is different because parts of the video is missing (if the audio is longer than the video). So stretching the complete length of the audio won't always help in this case because it will cause bad synch in other parts of the movie. You need to cut out a part of the audio to get everything into synch again. I have seen this somtimes in downloaded movies.

Another case is capturing problems. If you are capturing audio with a soundcard and video with your videocard the two clocks may be not in synch. This will cause the audio and video to get gradually out of synch. You need a capturing software that corrects this problem. I'm using AVI_IO which drops or adds extra frames to compensate. You can also try virtualdubmod/virtualdubsynch to capture and the audio is automatically resampled to keep synch with video. Or use a device that captures both audio and video in the same unit.

These problems may also occur with bad mp3 encoding (I think there is an old mp3 codec that switches the sampling frequency a bit), bad sample rate convertors or something else.

So if stretching audio does not work then try manually syncing of splitted parts and rejoining them again. But this may cause more problems than you solve if you do it in mpeg2. Sometimes cutting and joining will cause synch problems instead of solving them... That is why I try to do this before encoding and by using trim, delayaudio and wavsource commands in avisynth. Perhaps a little bit complicated but I really hate when video and audio is out of synch...

Try finding a part of the video where it is easy to sync audio and video. Lip-movements is most important but it may be easier if there is a door that is closing or a gun shot. Then if you want it really accurate try slowing down the playback. I use avisynth assumefps(5) command to do this. Two days ago I synced a copy of "treasure planet" with this method by looking at a scene where a "frog girl" took some food with her enormous tounge from a spoon. There was two nice sounds there which I could use to synch it. First the "snap" and then the "gulp" sound. The whole movie was in synch after just adjusting this part!

 
 Respond to this message   

(Login luisifer)

Re: Re: video audio sync ... general

August 7 2003, 11:54 AM 

That seems like a long way to go about it...Usually just stretching or shrinking the Audio to the exact length of the Video will make it in sync 90% of the time unless it is one of those files that stays in sync untill it hits a Glitch in the File then it goes out of sync...

 
 Respond to this message   
Jason
(no login)

Re: video audio sync ... general

August 7 2003, 12:05 PM 

Well it's a little too late for you, but just in case there are any other DVC II users out there (I'm still using it)...
http://www.spawn.dk has some info on sync issues with the DVC II. I have never had a sync issue except when recording TV shows. I have digital cable and every now and then, usually in bad weather, my cable company will just seem to drop a frame in transmitting. If this happens, it totally freaks out the DVC II and the audio goes out of sync very badly. Spawn's web site has some suggestions on settings you can try to keep things in sync which might help some people.

 
 Respond to this message   
KTM
(no login)

Re: Re: video audio sync ... general

August 9 2003, 2:46 PM 

OK I oppted to try sonic foundry 6.0 ... I got it .... but now it says an error occured while building a proxy for the stream ..... an error occured while opening a codec ..... I know I must have the right codecs cause it plays just fine .... any ideas ...... I was going to try womble mpeg2vcr but I cant seem to find a copy of it.
Thanks again for helping with this.... I would have givin up but this movie is just to funny and now its pissing me off so its become my mission in life to make it work!!!

 
 Respond to this message   

(Login luisifer)

Re: Re: Re: video audio sync ... general

August 10 2003, 2:05 PM 

Mpeg2VCR is only for editing and Muxing Mpeg files not avi files so it will not help you....

 
 Respond to this message   
Current Topic - audio sync problem
  << Previous Topic | Next Topic >>Return to Index  
Create your own forum at Network54
 Copyright © 1999-2009 Network54. All rights reserved.   Terms of Use   Privacy Statement