# Blender's video and audio don't sync when editing

I imported my video file and for some reason (even though the video is one frame smaller than the audio) the video and audio do not sync after being played back for a certain amount of time. If I were to click on the sequencer and place it at any point in time, the audio and video would start off in sync, but if I were to play it from that point the audio and video would gradually de-sync. Also, the video was recorded in OBS but it plays back well and in sync using VLC.

Here is information about the video file and more info about obs and the video file itself (it was just for testing purposes): https://mega.co.nz/#F!rRcSXCQT!fpjUOjGYzolRO-6zfZgpbA

The easiest way of understanding what I mean would be to listen for the sound of the clicks during the video then pause and start it mid way. You will then hear the video and audio re-sync and start off from where it should have but then gradually de-sync.

• Also you can try this, for multiple strips with different frame rates. youtube.com/watch?v=3SpVpqsvqwM Makes video editing easy again with blender.
– user29276
Aug 7 '16 at 18:10

If they start off in sync at any point when you start playing, and gradually goes out sync, it means you don't have AV Sync turned on in the timeline panel.

• Yep ... that actually does seem to fix whats been happening. There still is the problem of the tracks not being the same length, but I think that deserves a 2nd question. Jan 14 '14 at 17:25
• Did you adjust the frame rate after you imported the av track? That could cause problems. Jan 14 '14 at 19:40
• No that wasn't it :s Jan 14 '14 at 20:29
• The reason why this helps is because on default, blender tries to display every single frame while playing. This means that if your FPS during the playing is even slightly lower than the original footage, the video will get delayed, while the audio continues at the same speed. AV-sync means that blender will skip a frame if the video gets behind on the audio, so it can keep up with it.
– Ezra
Jul 5 '15 at 20:56
• Turning on AV Sync fixed this problem for me, too, but I still wonder if there's a better default behavior. I get that Blender is trying to render every frame of the animation for preview, but that makes the video sequencer feel very broken unless you know exactly where to find that option. Anyway, thanks for showing where it is! Dec 2 '19 at 20:45

In the VSE the video and audio tracks are separated and use different ways to measure length. Video is measured in frames while sound is in seconds.

Adjusting the frame rate of the video will alter the playback length of the video but the audio will always take the same amount of time to play.

As an example a short video at 24 fps needs 2763 frames to play.

By changing the frame rate to 25 fps the video remains at 2763 frames but the audio length extends to 2879 frames to maintain the same length in seconds. This will gradually put the audio out of sync with the video.

You need to make sure that the frame rate in the render settings matches the original frame rate of the video so that it's playback time matches the audio length.

• If only it were that easy. They are both (the editor and the video) set to 60 fps. Jan 13 '14 at 14:21
• It may be the case that the actual footage is not 60fps, but something like 59.94fps, etc. I stumbled upon this question with a footage that says '24fps' in the camera settings, but is actually '23.97fps' when I read metadata in a video player like Media Player Classic. In my case 'A/V sync' only improved it a bit, but it was still going out of sync after some 9 minutes. Sep 4 '14 at 20:02
• @bvukelic And so what did you do to eventually fix it? Jan 20 '15 at 14:51
• @Rexford Sort of, by correcting the frame rate of the whole project (i.e., I'm not sure how you'd fix it if you wanted to keep the frame rate of the project) Jan 20 '15 at 18:37
• @Rexford - audio is a time based medium, it has no record of frames. Video is frame based - it is a collection of frames to be played one after the other. Currently blender is only programmed to play the frames in the video based on the render settings. I think this decision would have been the easiest programming solution when it was created, I believe the VSE was created more as a small convenience rather than considering the best way to handle all video editing needs. Jan 21 '15 at 13:10

I had a lot of difficulty with a similar problem. In particular I had 2 video sources which I recorded with quicktime that had different frame rates. The first one would be synced with the audio but the second one would inevitably not be synced up. I tried various combinations of custom frame rates and frame rate bases but nothing seemed to help. Worse was sometimes the video seemed to by synced with the audio but when I rendered it several hours later I would find it not to be.

What I ended up doing was using a transcoder (http://handbrake.fr/ cross platform mac/windows/ubuntu linux and free) to adjust the frame rates of both video sources to a standard 29.97. This was friendlier to blender and the problems all went away when I set the properties Frame Rate to 29.97 fps before importing to the Video Sequence Editor.

• Unfortunately didn't work for me. What worked was to use Windows 10 built in Video Editor Sep 11 at 7:15

He just dragged out the end of the video snip by grabbing it then dragging, he added speed effect by selecting the strip and then going to Add > Effects Strip.. > Speed Control, then he made sure the box that says "Stretch to input strip length" in checked in the Speed Controls.

By doing this he was able to change the rendering to match the audio file even within a project that had a different FPS

Blender's video and audio don't sync when editing (Solution):

As a new user to blender I experienced the same problem mentioned above and below by swiftsword94:

"I imported my video file and for some reason (even though the video is one frame smaller than the audio) the video and audio do not sync after being played back for a certain amount of time. If I were to click on the sequencer and place it at any point in time, the audio and video would start off in sync, but if I were to play it from that point the audio and video would gradually de-sync."

Solution:

What I realized after being unable to make them sink up properly is 'Preview mode' is not an accurate representation of what the video will play like after it has been rendered when you click the 'Render' drop-down menu and select 'Render Animation'. After the entire video has been rendered the video and audio should sync up perfectly.

Regards,

The accepted answer by @Mike-Pan worked for me, but in 2.82 it's in the bottom left corner at Playback > Sync Mode

Unfortunately, there doesn't seem to be a way to set AV-sync as the default, so I'll have to remember to set that every time I load Blender to do video editing.

I know this is an old question, but the software has changed and I didn't find another Question about this, so I'm posting this here, since I found a somewhat different solution than the existing Answers.

What you'll need to do is to click on the FPS drop-down and select "Custom". This will let you choose some new values One is the standard "FPS" (red arrow) and the other is ":/" (green arrow), whatever that means. It's evidently a modifier to the "FPS" and will take some fiddling around to make it work. These somehow combine to make up the actual "Custom" frame rate (purple arrow).

What I had to do is adjust the two settings until the video and audio were very nearly the same length in the Timeline window. I just kept adjusting things until the video was synced, or at least close enough to not really notice a difference, through the whole video. The original setting for this specific video were at 29.97 FPS, but the video was moving in slow-mo and the audio was just fine. Now the video is moving normally and the audio matches the lip movements and other actions.

• The "/" means a division: the frame rate in integers, divided by something, so that you can get fractional numbers, like 29.97 or 23.98, etc,
– susu
Jan 31 at 1:31
• @susu, good to know! They have plenty of room for a real description, plus a tooltip that should make this more understandable of what that actually means. Jan 31 at 18:27
• You can put a request to make that happen. Please read: what is the place to put feature requests
– susu
Jan 31 at 18:30