audio scrubbing not working properly #88906

Closed
opened 2021-06-07 04:22:12 +02:00 by Stick · 17 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 462.31

Blender Version
Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: 84da05a8b8
Worked: 2.92

Short description of error
when I scrub through the timeline with audio scrubbing on it doesn't work properly

Exact steps for others to reproduce the error
scrub through frame by frame
Blender_ [C__Users_stick_OneDrive_Documents_blender files_logo 2.8 new.blend] 2021-06-06 22-07-46.mp4

logo 2.8 new.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 462.31 **Blender Version** Broken: version: 2.93.0, branch: master, commit date: 2021-06-02 11:21, hash: `84da05a8b8` Worked: 2.92 **Short description of error** when I scrub through the timeline with audio scrubbing on it doesn't work properly **Exact steps for others to reproduce the error** scrub through frame by frame [Blender_ [C__Users_stick_OneDrive_Documents_blender files_logo 2.8 new.blend] 2021-06-06 22-07-46.mp4](https://archive.blender.org/developer/F10160402/Blender___C__Users_stick_OneDrive_Documents_blender_files_logo_2.8_new.blend__2021-06-06_22-07-46.mp4) [logo 2.8 new.blend](https://archive.blender.org/developer/F10160403/logo_2.8_new.blend)
Author

Added subscriber: @StickMeister125

Added subscriber: @StickMeister125

Added subscribers: @neXyon, @iss

Added subscribers: @neXyon, @iss

@neXyon Should this be confirmed as known issue or bug?

@neXyon Should this be confirmed as known issue or bug?
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

@StickMeister125 , can you comment the audio device you are on (Edit -> Prefernces ->System ->Sound)?
Presently ~4 reports are reported on tracker which looks almost similar.

  • #88887 (Audio causes issues with Playback when PC put to Sleep, Hibernate or when Screensaver appears)
  • #88879 (Choppy audio)
  • #88875 (the video sequencer imported sound will not work when scrubbing through frames)
  • #88876 (Audio Static and Glitches in Blender and other applications on computer, when I play the Blender Timeline.)

(Anyways, I tried with diffrenet Sound API's and I am not able to reproduce this)

@StickMeister125 , can you comment the audio device you are on (`Edit -> Prefernces ->System ->Sound`)? Presently ~4 reports are reported on tracker which looks almost similar. - #88887 (Audio causes issues with Playback when PC put to Sleep, Hibernate or when Screensaver appears) - #88879 (Choppy audio) - #88875 (the video sequencer imported sound will not work when scrubbing through frames) - #88876 (Audio Static and Glitches in Blender and other applications on computer, when I play the Blender Timeline.) (Anyways, I tried with diffrenet Sound API's and I am not able to reproduce this)

I can reproduce this with wasapi. So I could confirm this, I wanted to rather clarify where this report is on range from feature request to bug.

I can reproduce this with wasapi. So I could confirm this, I wanted to rather clarify where this report is on range from feature request to bug.
Joerg Mueller self-assigned this 2021-06-08 22:02:37 +02:00
Member

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

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

I'll look into it!

I'll look into it!
Contributor

Added subscriber: @smanched

Added subscriber: @smanched
Member

Ok, I can't really reproduce this on my setup here, but I have some ideas.

Could you first try to enable caching for the sound strips (you already have strip properties open in the video, where you enabled "Display Waveform"; there under "Source" you'll find "Caching", check that box for all sounds); does that help?

If not, @iss please try this hack, if it helps at all:

diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index 6dd1f66f6b5..6f4234e930e 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -900,6 +900,15 @@ void BKE_sound_stop_scene(Scene *scene)
   }
 }
 
+static void BKE_sound_play_silence()
+{
+  AUD_Sound *silence = AUD_Sound_silence(AUD_RATE_48000);
+  AUD_Sound *limit = AUD_Sound_limit(silence, 0, 2);
+  AUD_Handle_free(AUD_Device_play(sound_device, limit, 0));
+  AUD_Sound_free(limit);
+  AUD_Sound_free(silence);
+}
+
 void BKE_sound_seek_scene(Main *bmain, Scene *scene)
 {
   sound_verify_evaluated_id(&scene->id);
@@ -944,12 +953,14 @@ void BKE_sound_seek_scene(Main *bmain, Scene *scene)
     if (scene->sound_scrub_handle &&
         AUD_Handle_getStatus(scene->sound_scrub_handle) != AUD_STATUS_INVALID) {
       AUD_Handle_setPosition(scene->sound_scrub_handle, 0);
+      BKE_sound_play_silence();
     }
     else {
       if (scene->sound_scrub_handle) {
         AUD_Handle_stop(scene->sound_scrub_handle);
       }
       scene->sound_scrub_handle = AUD_pauseAfter(scene->playback_handle, one_frame);
+      BKE_sound_play_silence();
     }
   }
   else {
Ok, I can't really reproduce this on my setup here, but I have some ideas. Could you first try to enable caching for the sound strips (you already have strip properties open in the video, where you enabled "Display Waveform"; there under "Source" you'll find "Caching", check that box for all sounds); does that help? If not, @iss please try this hack, if it helps at all: ``` diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c index 6dd1f66f6b5..6f4234e930e 100644 --- a/source/blender/blenkernel/intern/sound.c +++ b/source/blender/blenkernel/intern/sound.c @@ -900,6 +900,15 @@ void BKE_sound_stop_scene(Scene *scene) } } +static void BKE_sound_play_silence() +{ + AUD_Sound *silence = AUD_Sound_silence(AUD_RATE_48000); + AUD_Sound *limit = AUD_Sound_limit(silence, 0, 2); + AUD_Handle_free(AUD_Device_play(sound_device, limit, 0)); + AUD_Sound_free(limit); + AUD_Sound_free(silence); +} + void BKE_sound_seek_scene(Main *bmain, Scene *scene) { sound_verify_evaluated_id(&scene->id); @@ -944,12 +953,14 @@ void BKE_sound_seek_scene(Main *bmain, Scene *scene) if (scene->sound_scrub_handle && AUD_Handle_getStatus(scene->sound_scrub_handle) != AUD_STATUS_INVALID) { AUD_Handle_setPosition(scene->sound_scrub_handle, 0); + BKE_sound_play_silence(); } else { if (scene->sound_scrub_handle) { AUD_Handle_stop(scene->sound_scrub_handle); } scene->sound_scrub_handle = AUD_pauseAfter(scene->playback_handle, one_frame); + BKE_sound_play_silence(); } } else { ```

This comment was removed by @iss

*This comment was removed by @iss*

@neXyon Sorry I got a bit confused and I thought, this is #88887 so I was checking issues with hibernation.
So re-checked again:

In #88906#1176760, @neXyon wrote:
Could you first try to enable caching for the sound strips (you already have strip properties open in the video, where you enabled "Display Waveform"; there under "Source" you'll find "Caching", check that box for all sounds); does that help?

Doesn't help

If not, @iss please try this hack, if it helps at all:

This works, but when I minimize and maximize Blender window, audio scrubbing stops until start/stop playback.
It seems to stop working even after some time delay.

@neXyon Sorry I got a bit confused and I thought, this is #88887 so I was checking issues with hibernation. So re-checked again: > In #88906#1176760, @neXyon wrote: > Could you first try to enable caching for the sound strips (you already have strip properties open in the video, where you enabled "Display Waveform"; there under "Source" you'll find "Caching", check that box for all sounds); does that help? Doesn't help > If not, @iss please try this hack, if it helps at all: This works, but when I minimize and maximize Blender window, audio scrubbing stops until start/stop playback. It seems to stop working even after some time delay.
Member

It's a hack, but this behavior is still weird. Can you try D11778 and check if that solves the issue better? That's a more proper fix.

It's a hack, but this behavior is still weird. Can you try [D11778](https://archive.blender.org/developer/D11778) and check if that solves the issue better? That's a more proper fix.
Member

Ok, @iss doesn't have the issue anymore in the current master. @StickMeister125 can you try if you still have the problem in the 3.0 alpha daily build: https://builder.blender.org/download/daily/ ?

Ok, @iss doesn't have the issue anymore in the current master. @StickMeister125 can you try if you still have the problem in the 3.0 alpha daily build: https://builder.blender.org/download/daily/ ?

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. I haven't experienced any similar issues.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. I haven't experienced any similar issues. Thanks again for the report. If the problem persists please open a new report with the required information.
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
5 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#88906
No description provided.