I have an MPEG-4 XVID movie file (AVI) with Audio (MP3) thats out-of-sync
can anyone guide me to fixing this?
much appreciated
thanks
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 15 of 15
			
		- 
	
- 
	does it come early or late? and is the delay constant? If it's a constant delay, find the audio shift value in your media player (e.g. +/- keys usually shift the audio) , and use avidemux to enter that audio shift delay 
 
 is it in sync and then gets progressively worse? If it's progressively worsening, it means the audio & video lengths don't match. You could either shrink/expand the audio or video (change fps) to match
 
 are there glitches? glitches can cause desync errors. These are tough, you often have to cut the video into segments and process it manually by section
- 
	thanks... 
 
 the audio starts in sync THEN falls out of sync maybe by about 50ms at end but cant be sure how much....
 
 how could I expand the audio?
 
 
 thanks
- 
	thanks - i will try 
 
 this is too play on TV so may not play 'odd' frame-rate (DivX 7 codec)
 so how do I remove audio then tmux it back in when done?
 
 Format : AVI
 Format/Info : Audio Video Interleave
 File size : 1.35 GiB
 Duration : 1h 57mn
 Overall bit rate : 1646 Kbps
 Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
 Writing library : VirtualDub build 30091/release
 
 Video
 Format : MPEG-4 Visual
 Format profile : Streaming Video@L1
 Format settings, BVOP : Yes
 Format settings, QPel : No
 Format settings, GMC : No warppoints
 Format settings, Matrix : Default
 Muxing mode : Packet Bitstream
 Codec ID : XVID
 Codec ID/Hint : XviD
 Duration : 1h 57mn
 Bit rate : 1540 Kbps
 Width : 624 pixels
 Height : 336 pixels
 Display aspect ratio : 1.857
 Frame rate : 25.000 fps
 Resolution : 8 bits
 Colorimetry : 4:2:0
 Scan type : Progressive
 Bits/(Pixel*Frame) : 0.294
 Stream size : 1.26 GiB (94%)
 Writing library : XviD 50
 
 Audio
 Format : MPEG Audio
 Codec ID : 55
 Codec ID/Hint : MP3
 Duration : 1h 57mn
 Bit rate : 96.0 Kbps
 Channel(s) : 2 channels
 Sampling rate : 22.05 KHz
 Stream size : 80.4 MiB (6%)
 Alignment : Split accross interleaves
 Interleave, duration : 40 ms (1.00 video frame)
 Interleave, preload duration : 500 ms
- 
	you can use audio=>save in avidemux , fix the audio, then remux either with avidemux or avimux-gui . 
 
 If you don't know the exact ratio or numbers, it might be easier to adjust the frame rate of the video by small increments, using avifrate , or vdub .
 
 Here is a guide (scroll down)
 http://www.gromkov.com/faq/faq2004-0064.html
- 
	From what you 've told me, there is no delay at the end. It begins in sync, then gets out of sync. This suggests a mismatch in a/v length 
 
 If your hardware doesn't play "off" video frame rates , the only way to do it is to fix the audio instead of the video
 
 I don't know of any way except by trial and error. Sometimes you can get the ratio from mediainfo (the duration of the video & audio) , but in your file, it is the same. You could use the avifrate with some trial and error , to find the ratio, then use that in audacity. Avifrate is much faster to use, than resampling & re-encoding audio many times for trial and error
- 
	i meant the delay between the audio and video near end so I know how many MS to adjust the length by in audacity... I have the MP3 loaded in AUdacity... is there anyway of playing the full movie fle and finding out the delay near end or is it just GUESS work.... remux then see if it worked? 
- 
	also that guide you linked to is outdated and links to programs no longer work... (AVI FPS CHANGER) 
- 
	You wouldn't change it by 50ms , you would change it by the fraction. So you need to know the durations in ms. e.g. If a video was 60s and audio was 59s , you would stretch the audio by 60/59 
 
 Click the hotlink for avifrate
 https://www.videohelp.com/tools/AVIFrate
 
 EDIT: The links for that guide are working for me. That program is slightly different than the one at videohelp, but the idea is the same
 
 frateadj100.zip
- 
	You can try this in Audacity. Using the 'Change Tempo' effect, click on the Length (Seconds) 'to' box and enter the desired length. Save out in a compatible format for your audio. Add this back in with your video. I use VirtualDub for this and set both video and audio to 'Direct stream copy', and disable/delete the old audio, then save it all with a new filename if you don't want to overwrite the existing file. This will 'mux' your new audio file with your video file. Only takes a short time.   
 
 The hard part is determining the correct length of the audio file to sync with the video file. If the video file is corrupted, then it gets much more complicated as you may have to chop up the video and treat each part separately, then rejoin.  
- 
	You usually can't fix this. It's not a simple issues of stretching audio. Want my help? Ask here! (not via PM!)
 FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS
Similar Threads
- 
  audio sync problem, how to work out progressive audio sync delayBy jolt321 in forum Newbie / General discussionsReplies: 13Last Post: 10th Apr 2012, 22:09
- 
  An app to visually sync audio to video similar to Subtitle Edit visual syncBy cinesimon in forum AudioReplies: 3Last Post: 6th Sep 2011, 08:54
- 
  merging two video clips together + sync-ing? (with examples!)By arthritis in forum Newbie / General discussionsReplies: 2Last Post: 18th Sep 2010, 07:23
- 
  How is YouTube id'ing copyrighted audio immediately?By brassplyer in forum Video Streaming DownloadingReplies: 3Last Post: 8th May 2010, 20:05
- 
  Dj-ing help. How to do it?By foton in forum Newbie / General discussionsReplies: 6Last Post: 11th Sep 2009, 18:10


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			 
			
 Quote
 Quote
 
			 Visit Homepage
				Visit Homepage
			