
    g                     H    d dl mZ d dlmZ d dlmZ e G d de             Zy)    )	dataclass)Clip)Effectc                   >    e Zd ZU dZdZeed<   dZeed<   dedefdZ	y)MultiplySpeeda   Returns a clip playing the current clip but at a speed multiplied by ``factor``.

    Instead of factor one can indicate the desired ``final_duration`` of the clip, and
    the factor will be automatically computed. The same effect is applied to the clip's
    audio and mask if any.
    Nfactorfinal_durationclipreturnc                       j                   r!d|j                  z   j                   z   _        |j                   fdddg      }|j                  +|j	                  d|j                  z   j                  z        }|S )zApply the effect to the clip.g      ?c                 "    j                   | z  S )N)r   )tselfs    g/var/www/it7/html/youtubeDownloader/venv/lib/python3.12/site-packages/moviepy/video/fx/MultiplySpeed.py<lambda>z%MultiplySpeed.apply.<locals>.<lambda>   s    dkkAo     maskaudio)apply_to)r	   durationr   time_transformwith_duration)r   r
   new_clips   `  r   applyzMultiplySpeed.apply   sy    -0C0CCDK&&%0A ' 
 ==$--cDMM.ADKK.OPHr   )
__name__
__module____qualname____doc__r   float__annotations__r	   r   r    r   r   r   r      s0     FE NE $ 4 r   r   N)dataclassesr   moviepy.Clipr   moviepy.Effectr   r   r!   r   r   <module>r%      s)    !  ! F  r   