Blender Git Loki

Git Commits -> Revision ded68fb

Revision ded68fb by Sebastian Parborg (master)
August 16, 2021, 13:10 (GMT)
VSE: Fix audaspace not reading ffmpeg files with start offset correctly

The duration and start time for audio strips were not correctly read in
audaspace.

Some video files have a "lead in" section of audio that plays before the
video starts playing back. Before this patch, we would play this lead in
audio at the same time as the video started and thus the audio would not
be in sync anymore.

Now the lead in audio is cut off and the duration should be correctly
calculated with this in mind.

If the audio starts after the video, the audio strip is shifted to
account for this, but it will also lead to cut off audio which might not
be wanted. However we don't have a simple way to solve this at this
point.

Differential Revision: https://developer.blender.org/D11917

Commit Details:

Full Hash: ded68fb10275c9f9a66e7019171b83cab0e9485d
Parent Commit: 6df81dd
Lines Changed: +197, -62

20 Modified Paths:

/extern/audaspace/bindings/C/AUD_Special.cpp (+2, -0) (Diff)
/extern/audaspace/bindings/C/AUD_Types.h (+1, -0) (Diff)
/extern/audaspace/include/fx/VolumeReader.h (+1, -1) (Diff)
/extern/audaspace/include/IReader.h (+6, -0) (Diff)
/extern/audaspace/plugins/ffmpeg/FFMPEGReader.cpp (+56, -24) (Diff)
/extern/audaspace/plugins/ffmpeg/FFMPEGReader.h (+17, -0) (Diff)
/extern/audaspace/src/fx/VolumeReader.cpp (+1, -1) (Diff)
/source/blender/blenkernel/BKE_sound.h (+7, -2) (Diff)
/source/blender/blenkernel/intern/sound.c (+7, -5) (Diff)
/source/blender/editors/space_sequencer/sequencer_add.c (+10, -6) (Diff)
/source/blender/editors/space_sequencer/sequencer_draw.c (+6, -4) (Diff)
/source/blender/imbuf/IMB_imbuf.h (+5, -0) (Diff)
/source/blender/imbuf/intern/anim_movie.c (+21, -6) (Diff)
/source/blender/imbuf/intern/IMB_anim.h (+1, -0) (Diff)
/source/blender/makesdna/DNA_sound_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_sequencer_api.c (+3, -2) (Diff)
/source/blender/sequencer/intern/sound.c (+6, -1) (Diff)
/source/blender/sequencer/intern/strip_add.c (+39, -7) (Diff)
/source/blender/sequencer/intern/strip_time.c (+3, -1) (Diff)
/source/blender/sequencer/SEQ_add.h (+4, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021