U
    a+d                     @   sR  d Z ddlZddlZddlZeddkr@ejdk r@ejj  dej	d< ddl
mZ dd	lmZ dd
lmZ ddlmZmZmZmZ ddlmZmZ ddlmZmZ ddlmZmZmZ ddlm Z  ddl!m"  m#  m$Z% ddl&m'  m#  m$Z( ddl)m"  m*  m+Z, ddl-m"  m.Z/ ddl0m"  m1  m2Z2 ddl3m4Z4 ddl.m5Z5 zddl6m7Z7 W n e8k
rv   Y nX dD ] Z9e:de9;dd e9f  q|dD ] Z9e:de9;dd e9f  qe4e_4e4e_4zddl<m=Z=m>Z> W n& e8k
r
   dd Z>dd Z=Y nX e>e_>e=e_=zddl?m>Z> W n e8k
rF   dd Z>Y nX e>e_>dS )a  
This file is meant to make it easy to load the main features of
MoviePy by simply typing:

>>> from moviepy.editor import *

In particular it will load many effects from the video.fx and audio.fx
folders and turn them into VideoClip methods, so that instead of
>>> clip.fx( vfx.resize, 2 ) # or equivalently vfx.resize(clip, 2)
we can write
>>> clip.resize(2)

It also starts a PyGame session (if PyGame is installed) and enables
clip.preview().
    NZFFMPEG_BINARY)      1ZPYGAME_HIDE_SUPPORT_PROMPT   )VideoFileClip)ImageSequenceClip)download_webfile)	VideoClip	ImageClip	ColorClipTextClip)CompositeVideoClipclips_array)concatenate_videoclipsconcatenate)	AudioClipCompositeAudioClipconcatenate_audioclips)AudioFileClip)ipython_display)cvsecs)sliders)afx.audio_fadeinafx.audio_fadeoutafx.audio_normalizeafx.volumexztransfx.crossfadeinztransfx.crossfadeoutzvfx.cropz
vfx.fadeinzvfx.fadeoutzvfx.invert_colorszvfx.loopz
vfx.marginzvfx.mask_andzvfx.mask_orz
vfx.resizez
vfx.rotatez
vfx.speedxzVideoClip.%s = %s.)r   r   zafx.audio_loopr   r   zAudioClip.%s = %s)showpreviewc                 O   s   t ddS )z7NOT AVAILABLE : clip.preview requires Pygame installed.&clip.preview requires Pygame installedNImportErrorselfargskwargs r&   2/tmp/pip-unpacked-wheel-0yp4gafk/moviepy/editor.pyr   p   s    r   c                 O   s   t ddS )z4NOT AVAILABLE : clip.show requires Pygame installed.z#clip.show requires Pygame installedNr    r"   r&   r&   r'   r   t   s    r   )r   c                 O   s   t ddS )z8 NOT AVAILABLE : clip.preview requires Pygame installed.r   Nr    r"   r&   r&   r'   r      s    )@__doc__ossysZimageiogetenvversion_infoZpluginsZffmpegdownloadenvironZvideo.io.VideoFileClipr   Zvideo.io.ImageSequenceClipr   Zvideo.io.downloaderr   Zvideo.VideoClipr	   r
   r   r   Z$video.compositing.CompositeVideoClipr   r   Zvideo.compositing.concatenater   r   Zaudio.AudioClipr   r   r   Zaudio.io.AudioFileClipr   Zmoviepy.video.fx.allvideoZfxallZvfxZmoviepy.audio.fx.allaudioZafxZ%moviepy.video.compositing.transitionsZcompositingZtransitionsZtransfxZmoviepy.video.toolsZtoolsZ
videotoolsZmoviepy.video.io.ffmpeg_toolsioZffmpeg_toolsZvideo.io.html_toolsr   r   Zvideo.io.slidersr   r!   methodexecsplitZmoviepy.video.io.previewr   r   Zmoviepy.audio.io.previewr&   r&   r&   r'   <module>   sX   

