VSE: Audio and Video doesn't sync in playback #79231

Closed
opened 2020-07-24 13:46:29 +02:00 by Hjalti Hjálmarsson · 11 comments

System Information
Operating system: Linux-5.4.0-7624-generic-x86_64-with-debian-bullseye-sid 64 Bits
Graphics card: Radeon Vega Frontier Edition (VEGA10, DRM 3.35.0, 5.4.0-7624-generic, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.0.4

Blender Version
Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-07-24 10:15, hash: b53c46d760
Worked: (newest version of Blender that worked as expected)

Short description of error
When playing the Video Sequencing Editor, the audio and video doesn't sync

Exact steps for others to reproduce the error
New file
Go to the VSE
Insert a video file with audio (something like a basic AV-sync-test video)
Set playback to AV-Sync
Hit play
The audio is lagging behind by around 2 frames
...if you export the video, the problem does not occur in the exported video

Here is an example with .blend and .mov: #79231-av-sync-vse.zip

**System Information** Operating system: Linux-5.4.0-7624-generic-x86_64-with-debian-bullseye-sid 64 Bits Graphics card: Radeon Vega Frontier Edition (VEGA10, DRM 3.35.0, 5.4.0-7624-generic, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.0.4 **Blender Version** Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-07-24 10:15, hash: `b53c46d760` Worked: (newest version of Blender that worked as expected) **Short description of error** When playing the Video Sequencing Editor, the audio and video doesn't sync **Exact steps for others to reproduce the error** New file Go to the VSE Insert a video file with audio (something like a basic AV-sync-test video) Set playback to AV-Sync Hit play The audio is lagging behind by around 2 frames ...if you export the video, the problem does not occur in the exported video Here is an example with `.blend` and `.mov`: [#79231-av-sync-vse.zip](https://archive.blender.org/developer/F8722968/T79231-av-sync-vse.zip)
Author
Member

Added subscriber: @Hjalti

Added subscriber: @Hjalti

Added subscriber: @dfelinto

Added subscriber: @dfelinto

The test file he was using to test it:
av_sync_24fps.mov

The test file he was using to test it: [av_sync_24fps.mov](https://archive.blender.org/developer/F8722910/av_sync_24fps.mov)
Sybren A. Stüvel self-assigned this 2020-07-27 11:39:08 +02:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I can confirm.

...if you export the video, the problem does not occur in the exported video

When audio-scrubbing there are no sync issues either.

I can confirm. > ...if you export the video, the problem does not occur in the exported video When audio-scrubbing there are no sync issues either.

I have updated the task description with a ZIP containing an example blend file + the above video file. This is what happens on my computer when I play it back:

#79231-av-sync-vse-master-bfeb94ecccbf9222e.mp4

I have updated the task description with a ZIP containing an example blend file + the above video file. This is what happens on my computer when I play it back: [#79231-av-sync-vse-master-bfeb94ecccbf9222e.mp4](https://archive.blender.org/developer/F8722971/T79231-av-sync-vse-master-bfeb94ecccbf9222e.mp4)

Added subscriber: @ZedDB

Added subscriber: @ZedDB

@Hjalti Could you give these sound settings a try?

image.png

On my machine this seems to fix the issue.

@Hjalti Could you give these sound settings a try? ![image.png](https://archive.blender.org/developer/F8723018/image.png) On my machine this seems to fix the issue.

Just a general update, we tried and it seems like we got good sync if we switched to SDL with a mixing buffer of <=512.

OpenAL is locked to a minimum of 1024 under the hood.

Just a general update, we tried and it seems like we got good sync if we switched to SDL with a mixing buffer of <=512. OpenAL is locked to a minimum of 1024 under the hood.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

The issue was resolved by switching to better performing audio settings (see #79231#986004).

@ZedDB also did a test with the JACK backend, and that performed perfectly as well. These kind of sync issues is exactly what JACK was meant to resolve, so it's a good thing to keep supporting it.

The issue was resolved by switching to better performing audio settings (see #79231#986004). @ZedDB also did a test with the JACK backend, and that performed perfectly as well. These kind of sync issues is exactly what JACK was meant to resolve, so it's a good thing to keep supporting it.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#79231
No description provided.