-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'AudioClip' object has no attribute 'preview' #2289
Comments
Just tried and audiopreview seems to work with latest version (2.1.2), can you confirm (also I just lost hearing in my left ear and my dog is howling in the corner of the room...). |
Hi, I'm having the same issue with the latest version too (2.1.2). I'm following the "MoviePy in 10 minutes" tutorial so everything should be up to date as I installed the dependencies today. |
The MoviePy in 10 minutes tutorial does not include any usage of preview on audio clip, only on video clip. If you want to preview an audio clip you can use the function audiopreview |
@OsaAjani looking at the tracelog I got the that error too, which might be caused by an ffplay version.
The problem is that ffplay no longer have This causes
However, as the tracelog says, there is another problem.
The first problem can be solved by rewriting
Of course not the most elegant solution, as older ffplay still uses |
Okay, the. I will take a look as soon as I can we have :) |
Expected Behavior
I expect to hear the audio on preview
Actual Behavior
I get this error
AttributeError: 'AudioClip' object has no attribute 'preview'
Steps to Reproduce the Problem
I use the code straight from the documentation moviepy.audio.AudioClip.AudioClip
Specifications
Additional Notes
I also tried the audiopreview() method on the AudioClip and I get this traceback
The text was updated successfully, but these errors were encountered: