Audio strips sometimes are evaluated incorrectly #37362

Closed
opened 2013-11-07 23:59:06 +01:00 by Carlo Andreacchio · 11 comments

%%%--- Operating System, Graphics card ---
Windows 7, x64, gtx 580

- Blender version with error, and version that worked ---

r60958

- Short description of error ---

We have a few 5-10 minute sequences with multiple audio strips (on different channels) fading in and out at certain times (animation of volume 0-1)... Sometimes, certain audio strips (not all) will either glitch up, or not play anything for their entirety.. the audio strips are around 30-50 meg wav files. Usually not all the audio strips glitch up, but only select ones.

This problem is also noticed in the mixdown option.. if the sequence has been messed up, the mixdown option will also reflect this.

I believe it has something to do with jumping to different frames during playback (by clicking on the sequencer view whilst it is playing back) and animation on the volume control.

Saving the file at frame 1, restarting blender and doing a mixdown from there usually fixes it.

If required, I can make an example blend file and upload it to a external host, the file will be quite large.

Carlo
%%%

%%%--- Operating System, Graphics card --- Windows 7, x64, gtx 580 - Blender version with error, and version that worked --- r60958 - Short description of error --- We have a few 5-10 minute sequences with multiple audio strips (on different channels) fading in and out at certain times (animation of volume 0-1)... Sometimes, certain audio strips (not all) will either glitch up, or not play anything for their entirety.. the audio strips are around 30-50 meg wav files. Usually not all the audio strips glitch up, but only select ones. This problem is also noticed in the mixdown option.. if the sequence has been messed up, the mixdown option will also reflect this. I believe it has something to do with jumping to different frames during playback (by clicking on the sequencer view whilst it is playing back) and animation on the volume control. Saving the file at frame 1, restarting blender and doing a mixdown from there usually fixes it. If required, I can make an example blend file and upload it to a external host, the file will be quite large. Carlo %%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Can confirm it is still present in r61196%%%

%%%Can confirm it is still present in r61196%%%

%%%Joerg, feels like checking this one?%%%

%%%Joerg, feels like checking this one?%%%
Member

%%%Sounds like the animation cache gets out of sync, can you please try hitting the "Update Animation Cache" button next time this happens and see if it helps? You can find it in the properties window -> Scene -> Audio panel.%%%

%%%Sounds like the animation cache gets out of sync, can you please try hitting the "Update Animation Cache" button next time this happens and see if it helps? You can find it in the properties window -> Scene -> Audio panel.%%%

%%%Hi Joerg,

The 'Update Animation Cache' under the scene tab doesnt help at all. the only way to reset it is to reopen the file.

It is most noticeable during actual volume animation, so when the volume is changing from 0-1, if i am clicking around then click in the center of it, usually it glitches up then.%%%

%%%Hi Joerg, The 'Update Animation Cache' under the scene tab doesnt help at all. the only way to reset it is to reopen the file. It is most noticeable during actual volume animation, so when the volume is changing from 0-1, if i am clicking around then click in the center of it, usually it glitches up then.%%%
Member

%%%Hi,

the reason is that the animation system doesn't update the rna values anymore if the value actually didn't change. This results in the audio animation cache not being updated, so this bug appeared. The audio cache has a value for each frame and it's 0 if the data was never set and this results in a volume of 0 where there shouldn't be. To find the location of the problem: set a breakpoint is rna_squencer.c:628, then add a sound sequence in the sequencer, add a single keyframe and hit the "update animation cache" button in the props -> scene -> audio panel. The problematic line then is anim_sys.c:1343, that's where it checks if the value actually changed.

The change in the animation system not to update the rna makes sense, but this destroys the functionality of the audio cache as we can see here. Question now is how to fix this...

stay tuned%%%

%%%Hi, the reason is that the animation system doesn't update the rna values anymore if the value actually didn't change. This results in the audio animation cache not being updated, so this bug appeared. The audio cache has a value for each frame and it's 0 if the data was never set and this results in a volume of 0 where there shouldn't be. To find the location of the problem: set a breakpoint is rna_squencer.c:628, then add a sound sequence in the sequencer, add a single keyframe and hit the "update animation cache" button in the props -> scene -> audio panel. The problematic line then is anim_sys.c:1343, that's where it checks if the value actually changed. The change in the animation system not to update the rna makes sense, but this destroys the functionality of the audio cache as we can see here. Question now is how to fix this... stay tuned%%%

%%%Thanks for the update Joerg. Seems like this is needing more then a small quick fix.%%%

%%%Thanks for the update Joerg. Seems like this is needing more then a small quick fix.%%%
Member

%%%Yeah it was more. Fixed in revision 61239. After the start if the cursor is in the middle of a sound and you place it before that, but after the fade in, it might play silence still, but this can be fixed by the update animation button now or by just moving the cursor to the beginning and playing back from there!%%%

%%%Yeah it was more. Fixed in revision 61239. After the start if the cursor is in the middle of a sound and you place it before that, but after the fade in, it might play silence still, but this can be fixed by the update animation button now or by just moving the cursor to the beginning and playing back from there!%%%
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

%%%Thanks for the update, will test when the buildbot has been updated.%%%

%%%Thanks for the update, will test when the buildbot has been updated.%%%

%%%Just tested the latest buildbot, works as expected. thanks for the fix!%%%

%%%Just tested the latest buildbot, works as expected. thanks for the fix!%%%
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
3 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#37362
No description provided.