def speedx(clip, factor=None, final_duration=None):
 if final_duration:
  factor = ((1.0 * clip.duration) / final_duration)
 newclip = clip.fl_time((lambda t: (factor * t)), apply_to=['mask', 'audio'])
 if (clip.duration is not None):
  newclip = newclip.set_duration(((1.0 * clip.duration) / factor))
 return newclip

def speedx ( clip , factor = None , final_duration = None ) : if final_duration : factor = ( ( 1.0 * clip . duration ) / final_duration ) newclip = clip . fl_time ( ( lambda t : ( factor * t ) ) , apply_to = [ 'mask' , 'audio' ] ) if ( clip . duration is not None ) : newclip = newclip . set_duration ( ( ( 1.0 * clip . duration ) / factor ) ) return newclip
returns a clip playing the current clip but at a speed multiplied by factor .