Page MenuHome

VSE importing sound is one frame longer than video
Closed, ResolvedPublic


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


Event Timeline

Douglas E Knapp (magickcrow) created this task.
Douglas E Knapp (magickcrow) raised the priority of this task from to Needs Triage by Developer.

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...

Bastien Montagne (mont29) triaged this task as Confirmed, Medium priority.

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