@decorator.decorator
def audio_video_fx(f, clip, *a, **k):
 if hasattr(clip, 'audio'):
  newclip = clip.copy()
  if (clip.audio is not None):
   newclip.audio = f(clip.audio, *a, **k)
  return newclip
 else:
  return f(clip, *a, **k)

@ decorator . decorator def audio_video_fx ( f , clip , * a , ** k ) : if hasattr ( clip , 'audio' ) : newclip = clip . copy ( ) if ( clip . audio is not None ) : newclip . audio = f ( clip . audio , * a , ** k ) return newclip else : return f ( clip , * a , ** k )
use an audio function on a video/audio clip this decorator tells that the function f can be also used on a video clip .