Duplicated audio does not sound the same #83997

Closed
opened 2020-12-20 22:08:06 +01:00 by Hugo Schouppe · 16 comments

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

Blender Version
Broken: version:

  • 2.92.0 Alpha, branch: master, commit date: 2020-12-19 06:25, hash: a5a302bd18
  • 2.91.0
    Worked: (newest version of Blender that worked as expected)

Short description of error
Duplicating the same audio strip several times in a timeline, gives a different sound.

Exact steps for others to reproduce the error

  1. Download the attached blend-file with a sample audio strip.
  2. Duplicate the audio strip a few times.
  3. Render the output and import the mp4-file into Audacity or Blender to see the wave form. They look different.
  4. Check the sound. The exported audio file from Blender sound different.

Rendering the audio only (menu Render > Render audio) and decreasing the accuracy will improve the audio.

test-audio.blend

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38 **Blender Version** Broken: version: - 2.92.0 Alpha, branch: master, commit date: 2020-12-19 06:25, hash: `a5a302bd18` - 2.91.0 Worked: (newest version of Blender that worked as expected) **Short description of error** Duplicating the same audio strip several times in a timeline, gives a different sound. **Exact steps for others to reproduce the error** 1. Download the attached blend-file with a sample audio strip. 2. Duplicate the audio strip a few times. 3. Render the output and import the mp4-file into Audacity or Blender to see the wave form. They look different. 4. Check the sound. The exported audio file from Blender sound different. Rendering the audio only (menu Render > Render audio) and decreasing the accuracy will improve the audio. [test-audio.blend](https://archive.blender.org/developer/F9520125/test-audio.blend)
Author

Added subscriber: @HUSCH

Added subscriber: @HUSCH

Added subscriber: @rjg

Added subscriber: @rjg

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

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

I've tested this only Linux and can't hear any different between the duplicated strips. That the waveform of the export to mp4 may not look exactly like the one from the original .wav file can be due to lossy encoding. Could you please provide a file with the audio duplicated where the strips sound differently? How often did you have to duplicate the audio strip until the issue occurred?

I've tested this only Linux and can't hear any different between the duplicated strips. That the waveform of the export to mp4 may not look exactly like the one from the original .wav file can be due to lossy encoding. Could you please provide a file with the audio duplicated where the strips sound differently? How often did you have to duplicate the audio strip until the issue occurred?

The problem could be the same as #83991.

The problem could be the same as #83991.
Author

I included the original sound-file (bounce.wav), a blend-file with the sound-strip + 2x duplicated. You can hear the difference between the swooshes (but not very clearly). I included also the wave-form of the render (of the three (identical?) soundstrips. You can clearly see that the waveform of all three has small differences. After rendering the audio only, in which case you can set the accuracy (low value = high accuracy), the differences disappear. I included also the Audacity-profile of this audio-only output..

Blendfile
test-audio1.blend1

Audacity profile of rendered (MP4) output
test-audio2-audacity.png

Audacity profile of render audio (AC) output
test-audio1-audacity.png

Sound
Bounce.wav

I included the original sound-file (bounce.wav), a blend-file with the sound-strip + 2x duplicated. You can hear the difference between the swooshes (but not very clearly). I included also the wave-form of the render (of the three (identical?) soundstrips. You can clearly see that the waveform of all three has small differences. After rendering the audio only, in which case you can set the accuracy (low value = high accuracy), the differences disappear. I included also the Audacity-profile of this audio-only output.. Blendfile [test-audio1.blend1](https://archive.blender.org/developer/F9521943/test-audio1.blend1) Audacity profile of rendered (MP4) output ![test-audio2-audacity.png](https://archive.blender.org/developer/F9521942/test-audio2-audacity.png) Audacity profile of render audio (AC) output ![test-audio1-audacity.png](https://archive.blender.org/developer/F9521941/test-audio1-audacity.png) Sound [Bounce.wav](https://archive.blender.org/developer/F9521940/Bounce.wav)

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

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

Thank you for the files, we will investigate.

Thank you for the files, we will investigate.

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

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

After the export the audio is significantly different, before the export they all sound the same to me, but that might just be my ears not picking up subtle differences.

After the export the audio is significantly different, before the export they all sound the same to me, but that might just be my ears not picking up subtle differences.
Author

Yes, you're right. Before the export they sound indeed the same. Perhaps I wanted to hear the difference because I knew about the profiles. So, I did the test and recorded the sound (with volume set to 5) with a microphone. The waveform looks identical in Audacity. So, it's a problem of the render (to video). The render audio can do it right, if accuracy is set low.

Yes, you're right. Before the export they sound indeed the same. Perhaps I wanted to hear the difference because I knew about the profiles. So, I did the test and recorded the sound (with volume set to 5) with a microphone. The waveform looks identical in Audacity. So, it's a problem of the render (to video). The render audio can do it right, if accuracy is set low.

Added subscribers: @neXyon, @tintwotin

Added subscribers: @neXyon, @tintwotin

It could be related to the fixed value of AUD_DEFAULT_BUFFER_SIZE. https://developer.blender.org/diffusion/B/browse/master/extern/audaspace/config/Audaspace.h.in$103
It seems to be the reading-buffer-size which is set too high and cause inaccuracy. Maybe this value should be lowered or exposed so users can set this value manually?

@neXyon Maybe you could have a look at this?

It could be related to the fixed value of AUD_DEFAULT_BUFFER_SIZE. https://developer.blender.org/diffusion/B/browse/master/extern/audaspace/config/Audaspace.h.in$103 It seems to be the reading-buffer-size which is set too high and cause inaccuracy. Maybe this value should be lowered or exposed so users can set this value manually? @neXyon Maybe you could have a look at this?

This issue was referenced by 83ad35cb9c

This issue was referenced by 83ad35cb9c41c7e7df5ff239e5c2232742f4d5b6
Joerg Mueller self-assigned this 2020-12-24 10:43:51 +01:00
Member

That one was a bit harder to find. Running down the wrong rabbit hole, I also found another inaccuracy! :D

@tintwotin While the behavior depends on the size of the mixdown buffer, this is not the precise cause for the bug. During audio rendering, users can actually choose the value manually.

That one was a bit harder to find. Running down the wrong rabbit hole, I also found another inaccuracy! :D @tintwotin While the behavior depends on the size of the mixdown buffer, this is not the precise cause for the bug. During audio rendering, users can actually choose the value manually.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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#83997
No description provided.