Skip to content
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: 'AudioFileClip' object has no attribute 'is_mask' #2290

Closed
DarkRedman opened this issue Dec 16, 2024 · 1 comment
Closed
Labels
bug Issues that report (apparent) bugs.

Comments

@DarkRedman
Copy link

Expected Behavior

Instantiating an AudioFileClip should works, as I realize my error after copying and pasting some vfx instead of afx for an AudioFileClip

Actual Behavior

I get this error AttributeError: 'AudioFileClip' object has no attribute 'is_mask'

After my realization I rather expect an error that says we can apply vfx on an AudioClip

Steps to Reproduce the Problem

from moviepy import AudioFileClip, afx, vfx

audio_clip = AudioFileClip(music_path).with_effects([afx.AudioNormalize(), afx.MultiplyVolume(0.8), vfx.FadeIn(fade_time), vfx.FadeOut(fade_time)])

Specifications

  • Python Version: 3.12.7
  • MoviePy Version: 2.1.1
  • Platform Name: Linux
  • Platform Version: 6.6.63-1-MANJARO
@DarkRedman DarkRedman added the bug Issues that report (apparent) bugs. label Dec 16, 2024
@OsaAjani
Copy link
Collaborator

Well you try to use video effect on an audio only clip, you should use AudioFadeIn/Out instead. I think we an close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs.
Projects
None yet
Development

No branches or pull requests

2 participants