Linux - Audio Mixdown - flac audio isnt created correctly #52488

Closed
opened 2017-08-22 07:53:43 +02:00 by Carlo Andreacchio · 17 comments

System Information
Linux x64
Blender Version
Broken: b94a433ca3

Short description of error
flac audio generation isnt generated cleanly

Exact steps for others to reproduce the error

  1. Open attached blend file
  2. export audio flac
  3. add this flac file back into blender
  4. notice how it is 0 frames long
  5. repeat on windows
  6. flac file is correct length and read correctly.
    bug.blend
**System Information** Linux x64 **Blender Version** Broken: b94a433ca34 **Short description of error** flac audio generation isnt generated cleanly **Exact steps for others to reproduce the error** 1. Open attached blend file 2. export audio flac 3. add this flac file back into blender 4. notice how it is 0 frames long 5. repeat on windows 6. flac file is correct length and read correctly. [bug.blend](https://archive.blender.org/developer/F721054/bug.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @candreacchio

Added subscriber: @candreacchio

Added subscribers: @neXyon, @mont29

Added subscribers: @neXyon, @mont29
Joerg Mueller was assigned by Bastien Montagne 2017-08-26 15:49:18 +02:00

The export seems to be working OK, it’s the import back into Blender that is broken somehow. Note that reading generated .flac in player (like default gnome one) does work.

@neXyon this is probably one for you?

The export seems to be working OK, it’s the import back into Blender that is broken somehow. Note that reading generated .flac in player (like default gnome one) does work. @neXyon this is probably one for you?

Loading windows created flacs back in on Linux blender are correct length

There's also another bug which may or may not be related that FLAC creation stops early on long sequences (20-30k frames). Will report it as a separate bug if it's not related

Loading windows created flacs back in on Linux blender are correct length There's also another bug which may or may not be related that FLAC creation stops early on long sequences (20-30k frames). Will report it as a separate bug if it's not related
Member

I can't reproduce this bug. Can you tell me which distribution and version you are on and how you get blender? Official builds, distribution builds or self built? I guess it's a faulty ffmpeg version that causes this, probably not much we can do.

I can't reproduce this bug. Can you tell me which distribution and version you are on and how you get blender? Official builds, distribution builds or self built? I guess it's a faulty ffmpeg version that causes this, probably not much we can do.

Ubuntu 17,04
Official build bot - b94a433ca3
Self built - e476298084 (this just reports an error loading the flac, not same error as above)

Ubuntu 17,04 Official build bot - b94a433ca3 Self built - e476298084 (this just reports an error loading the flac, not same error as above)
Member

Added subscriber: @Sergey

Added subscriber: @Sergey
Member

Ok I can reproduce the bug with a buildbot build, but it's not a debug build, so it's hard to track down the error. @Sergey can you help? Which linux is the buildbot running and which ffmpeg/libsndfile version? Is it a self built one? Can I get it somehow?

Ok I can reproduce the bug with a buildbot build, but it's not a debug build, so it's hard to track down the error. @Sergey can you help? Which linux is the buildbot running and which ffmpeg/libsndfile version? Is it a self built one? Can I get it somehow?
Member

I just saw that the buildbots build without libsndfile, so the cause could/should be ffmpeg. Do you build with libsndfile @candreacchio ?

I just saw that the buildbots build without libsndfile, so the cause could/should be ffmpeg. Do you build with libsndfile @candreacchio ?

@neXyon, buildbot/release environment was silently ignoring sndfile. Making tweaks now to enable it back (as per blender_full.cmake).

Buildbot is based on Debian Jessie, with sndfile installed from repository, ffmpeg is 3.2.1. if enabling sndfile doesn't solve the issue i can share all self-compiled libraries from /opt/lib if you'd like.

@neXyon, buildbot/release environment was silently ignoring sndfile. Making tweaks now to enable it back (as per blender_full.cmake). Buildbot is based on Debian Jessie, with sndfile installed from repository, ffmpeg is 3.2.1. if enabling sndfile doesn't solve the issue i can share all self-compiled libraries from /opt/lib if you'd like.
Member

Thanks @Sergey ! With libsndfile disabled I can reproduce the error with ffmpeg.

Then I tried blender2.8 where everything works, since the new audaspace uses newer ffmpeg API. Now we have a few options:

  1. We do nothing since it will be fixed with 2.8 and 2.79 official should be working since it uses libsndfile.
  2. I can backport from 2.8 and we drop the old ffmpeg code, releasing the new one with 2.79 (would drop support for older ffmpeg versions, don't know how old though... so far nobody reported problems with building the 2.8 ffmpeg audaspace code).
  3. I shoot myself, because ffmpeg...

What's your suggestion @Sergey ?

Thanks @Sergey ! With libsndfile disabled I can reproduce the error with ffmpeg. Then I tried blender2.8 where everything works, since the new audaspace uses newer ffmpeg API. Now we have a few options: 1. We do nothing since it will be fixed with 2.8 and 2.79 official should be working since it uses libsndfile. 2. I can backport from 2.8 and we drop the old ffmpeg code, releasing the new one with 2.79 (would drop support for older ffmpeg versions, don't know how old though... so far nobody reported problems with building the 2.8 ffmpeg audaspace code). 3. I shoot myself, because ffmpeg... What's your suggestion @Sergey ?

@neXyon, let me finish getting buildbot up and running again (stupid nvcc crashes on sm20/sm21 kernels, keeps time to get past that to get fresh builds). If the new buildbot will work, i think we can consider the issue as resolved.

We definitely don't want you to shoot yourself!

@neXyon, let me finish getting buildbot up and running again (stupid nvcc crashes on sm20/sm21 kernels, keeps time to get past that to get fresh builds). If the new buildbot will work, i think we can consider the issue as resolved. We definitely don't want you to shoot yourself!
Member

Hey @Sergey I just checked the build bots, while the 64 bit linux builds still fail, I checked both 32 and 64 bit and they now both have WITH_CODEC_SNDFILE as ON. So we can consider this resolved?

Hey @Sergey I just checked the build bots, while the 64 bit linux builds still fail, I checked both 32 and 64 bit and they now both have WITH_CODEC_SNDFILE as ON. So we can consider this resolved?

@neXyon, think so. Will try to get buildsbots running later today.

@neXyon, think so. Will try to get buildsbots running later today.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

@neXyon, all buildbots should be up, and both 2.79 and latest buildbots are supposed to have sndfile enabled. So think the issue can be considered fully resolved now.

@neXyon, all buildbots should be up, and both 2.79 and latest buildbots are supposed to have sndfile enabled. So think the issue can be considered fully resolved now.
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#52488
No description provided.