VSE importing sound is one frame longer than video #47135

Closed
opened 2016-01-07 17:51:28 +01:00 by Douglas E Knapp · 8 comments

Sabayon KDE fully updated
Nvidia GTX 580

Blender 2,76b

VSE importing sound is one frame longer than video

Add a movie in the VSE

music is 133 frames
Video is 132 frames

VLC movie info

Stream 0
Type video
Codec H264 - MPEG-4 AVC(part 10)(avc1)
Resolution 1440 x1090
Display resolution 1440x1080
Frame Rate:25
Decode Format: Planar 4:2:0 YUV

Stream 1
type: audio
Codec MPEG AAC Audio (mp4a)
Channels Stereo
Sample Rate 48000 Hz
Bits Per sample :32

MAH05658.MP4

MAH05658.MP4

VSE Error.blend

Sabayon KDE fully updated Nvidia GTX 580 Blender 2,76b VSE importing sound is one frame longer than video Add a movie in the VSE music is 133 frames Video is 132 frames VLC movie info Stream 0 Type video Codec H264 - MPEG-4 AVC(part 10)(avc1) Resolution 1440 x1090 Display resolution 1440x1080 Frame Rate:25 Decode Format: Planar 4:2:0 YUV Stream 1 type: audio Codec MPEG AAC Audio (mp4a) Channels Stereo Sample Rate 48000 Hz Bits Per sample :32 MAH05658.MP4 [MAH05658.MP4](https://archive.blender.org/developer/F271924/MAH05658.MP4) [VSE Error.blend](https://archive.blender.org/developer/F271925/VSE_Error.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @DouglasEKnapp

Added subscriber: @DouglasEKnapp

Added subscriber: @slinkeepie

Added subscriber: @slinkeepie

Confirmed with nightly build 7e6d096, Mint 17.3, NVIDIA G92 [GeForce 9800 GT].
According to mediainfo, video length is 5s 280ms, which is exactly 125 + 7 = 132 frames, which is what loads in blender.
It also says the audio is 5s 269ms, so it shouldn't even be rounding up the extra frame really...

Confirmed with nightly build 7e6d096, Mint 17.3, NVIDIA G92 [GeForce 9800 GT]. According to mediainfo, video length is 5s 280ms, which is exactly 125 + 7 = 132 frames, which is what loads in blender. It also says the audio is 5s 269ms, so it shouldn't even be rounding up the extra frame really...

Added subscriber: @mont29

Added subscriber: @mont29

Yeah… if you enable waveform you'll see audio actually ends before end of last frame (as reported by mediainfo & co).

What happens here is that audaspace returns the exact length of the video (not the audio) - 132 frames - but blender ceil() it (because when importing pure audio, there's no guarantee strip is exactly n frames long)… and ceil(132) = 133. Will just apply a (very small) offset here, so that we get ceil(131.999999999999) = 132

Yeah… if you enable waveform you'll see audio actually ends before end of last frame (as reported by mediainfo & co). What happens here is that audaspace returns the exact length of the video (not the audio) - 132 frames - but blender ceil() it (because when importing pure audio, there's no guarantee strip is exactly n frames long)… and `ceil(132) = 133`. Will just apply a (very small) offset here, so that we get `ceil(131.999999999999) = 132`
Bastien Montagne self-assigned this 2016-01-08 09:25:03 +01:00

This issue was referenced by 15faab0082

This issue was referenced by 15faab0082d6de6ba1bb0787798f66f69a53dabe

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' 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
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#47135
No description provided.