Skip to content

Video editing with Python

Fix invalid call to audio.preview instead of audio.audiopreview

osaajanie25729aff95d
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py
index 4e44e04c..4ff16b8d 100644
--- a/moviepy/video/VideoClip.py
+++ b/moviepy/video/VideoClip.py
@@ -615,7 +615,7 @@ class VideoClip(Clip):
audio_flag = threading.Event()
# launch the thread
audiothread = threading.Thread(
- target=self.audio.preview,
+ target=self.audio.audiopreview,
args=(audio_fps, audio_buffersize, audio_nbytes, audio_flag, video_flag),
)
audiothread.start()