VSE: Adding packed sound via python API produces strip with incorrect length #103662
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#103662
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Broken: Blender 3.4.1
Steps to reproduce
#103662.blend
Look in console
It prints
Strip duration is 1
which is incorrect.This is because
BKE_sound_info_get()
does not work correctly with packed sound.Added subscriber: @antoniov
Added subscribers: @mendio, @pepe-school-land
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Hi, can confirm in uploaded file for versions 3.2 and later.
But I'm not able to replicate this from scratch. @antoniov , can you share the python code/command?
Added subscriber: @iss
git bisect points to:
302b04a5a3
@iss ^
VSE: Strip bar is displayed before Offset positionto Regression: VSE: Strip bar is displayed before Offset position@PratikPB2123 The script is complex and it's part of the new version of the
Storypencil
add-on.here an extract
The script is adding a sound strip to a different scene, I mean, there is a VSE scene where you are editing the storyboard and when you switch to the Strip scene (you have one strip for each scene in the VSE), the audio is copied to the Edit scene.
If you need the full script I can provide you, but sure you will need some "training" to use it. Let me know if you need it and I can help you with the test.
Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'
I can confirm there is difference in strip appearance between versions, but I don't think this is actual bug.
Applying following code produced correct result:
One thing that is odd is that in sample file
seq->len
is 1, which seems to produce incorrect end offset and strip ends up inverted. This can happen iffilepath
argument ofnew_sound()
is not valid.Duration of sound strip can be fixed by triggering update via scene FPS property. But the strip is then even more broken than before, but this is bit different issue, see D9997.
@antoniov Can you check if sound file is correct? Or perhaps look at
strip.frame_duration
property during strip execution - it should not be 1.@iss The sound strip looks right in the target scene. If you play it, you get the right sound in the right place. About
duration
, in the UI I can see it's 42, the correct number.Maybe I need to run some type of update to refresh Strip information.... any idea about this? You say
FPS
update the strips... what is your advice, change FPS to something and then back to the right value?EDIT: It looks reload strips fix the issue.
Ah did not realize there are more scenes... So I will try to run the script to reproduce. The issue could be, that the sound is packed.
Correct, but duration in UI is calculated from whole strip duration minus offsets. Internally the strip had duration of 1 frame.
Never used that operator so did not come to my mind, but glad there is solution to fix existing file. Still would like to prevent such issue.
Regression: VSE: Strip bar is displayed before Offset positionto VSE: Adding packed sound via python API produces strip with incorrect lengthChanged status from 'Needs User Info' to: 'Confirmed'