
    i]                     >    d dl mZ d dlmZ d dlmZ e	 	 dd       Zy)    )requires_duration)concatenate_videoclips)	ImageClipNc                 *   |dk(  r| j                   |z
  }||| j                   z
  }|dk7  r| j                  d|      gng }| j                  |      j                  |      g}|| j                   k7  r| j                  |      gng }t	        ||z   |z         S )a   Momentarily freeze the clip at time t.

    Set `t='end'` to freeze the clip at the end (actually it will freeze on the
    frame at time clip.duration - padding_end seconds).
    With ``duration``you can specify the duration of the freeze.
    With ``total_duration`` you can specify the total duration of
    the clip and the freeze (i.e. the duration of the freeze is
    automatically calculated). One of them must be provided.
    endr   )durationsubclipto_ImageClipset_durationr   )cliptfreeze_durationtotal_durationpadding_endbeforefreezeafters           U/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/moviepy/video/fx/freeze.pyr   r      s     	%xMMK'(4==8%&Tdll1Q F"//@AF"#dmm"3T\\!_"E!&6/E"9::    )r   NNr   )moviepy.decoratorsr   %moviepy.video.compositing.concatenater   moviepy.video.VideoClipr   r    r   r   <module>r      s(    0 H - ;?; ;r   