Video editing with Python
Refactor doc + add media for testing and doc + some polishing
osaajani2153fd855853
diff --git a/Dockerfile b/Dockerfileindex d3b168e1..60dae47d 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,7 +1,7 @@FROM python:3-# Install numpy using system package manager-RUN apt-get -y update && apt-get -y install ffmpeg imagemagick+# Install ffmpeg to get ffplay using system package manager+RUN apt-get -y update && apt-get -y install ffmpeg# Install some special fonts we use in testing, etc..RUN apt-get -y install fonts-liberation@@ -13,8 +13,5 @@ RUN apt-get install -y locales && \ENV LC_ALL C.UTF-8ADD . /var/src/moviepy/-#RUN git clone https://github.com/Zulko/moviepy.git /var/src/moviepy-RUN cd /var/src/moviepy/ && pip install .[optional]+RUN cd /var/src/moviepy/ && pip install .-# modify ImageMagick policy file so that Textclips work correctly.-RUN sed -i 's/none/read,write/g' /etc/ImageMagick-6/policy.xmldiff --git a/docs/_static/code/getting_started/moviepy_10_minutes/trailer.py b/docs/_static/code/getting_started/moviepy_10_minutes/trailer.pynew file mode 100644index 00000000..5cbb7db7--- /dev/null+++ b/docs/_static/code/getting_started/moviepy_10_minutes/trailer.py@@ -0,0 +1,211 @@+# Lets import moviepy, lets also import numpy we will use it a some point+from moviepy import *+import numpy as np+++#################+# VIDEO LOADING #+#################+# We load our video+video = VideoFileClip("./resources/bbb.mp4")+++#####################+# SCENES EXTRACTION #+#####################+# We extract the scenes we want to use++# First the characters+intro_clip = video.with_subclip(1, 11)+bird_clip = video.with_subclip(16, 20)+bunny_clip = video.with_subclip(37, 55)+rodents_clip = video.with_subclip('00:03:34.75', '00:03:56') # we can also use string notation with format HH:MM:SS.uS+rambo_clip = video.with_subclip('04:41.5', '04:44.70')+++#####################+# SCENES PREVIEWING #+#####################+# Now, lets have a first look at our clips+# Warning: you need ffplay installed for preview to work+# We set a low fps so our machine can render in real time without slowing down+intro_clip.preview(fps=20)+bird_clip.preview(fps=20)+bunny_clip.preview(fps=20)+rodents_clip.preview(fps=20)+rambo_clip.preview(fps=20)+++##############################+# CLIPS MODIFICATION CUTTING #+##############################+# Well, looking at the rodent scene it is a bit long isn't?+# Let's see how we modify the clip with one of the many clip manipulation method starting by with_*+# in that case by removing of the clip the part between 00:06:00 to 00:10:00 of the clip, using with_cutout+rodents_clip = rodents_clip.with_cutout(start_time=4, end_time=10)++# Note: You may have noticed that we have reassign rodents_clip, this is because all with_* methods return a modified *copy* of the+# original clip instead of modifying it directly. In MoviePy any function starting by with_* is out-place instead of in-place+# meaning it does not modify the original data, but instead copy it and modify/return the copy++# Lets check the result+rodents_clip.preview(fps=10)++############################+# TEXT/LOGO CLIPS CREATION #+############################+# Lets create the texts to put between our clips+font = "./resources/font/font.ttf"+intro_text = TextClip(font=font, text="The Blender Foundation and\nPeach Project presents", font_size=50, color='#fff', text_align="center")+bird_text = TextClip(font=font, text="An unlucky bird", font_size=50, color='#fff')+bunny_text = TextClip(font=font, text="A (slightly overweight) bunny", font_size=50, color='#fff')+rodents_text = TextClip(font=font, text="And three rodent pests", font_size=50, color='#fff')+revenge_text = TextClip(font=font, text="Revenge is coming...", font_size=50, color='#fff')+made_with_text = TextClip(font=font, text="Made with", font_size=50, color='#fff')++# We will also need the big buck bunny logo, so lets load it and resize it+logo_clip = ImageClip('./resources/logo_bbb.png').resized(width=400)+moviepy_clip = ImageClip('./resources/logo_moviepy.png').resized(width=300)+++################+# CLIPS TIMING #+################+# We have all the clips we need, but if we was to turn all thoses clips into a single one with composition (we will see that during next step)+# all our clips would start at the same time and play on top of each other, which is obviously not what we want.+# To fix that, we need to say when a clip should start and stop in the final clip.+# So, lets start by telling when each clip must start and end with appropriate with_* methods+intro_text = intro_text.with_duration(6).with_start(3) # Intro for 6 seconds, start after 3 seconds+logo_clip = logo_clip.with_start(intro_text.start + 2).with_end(intro_text.end) # Logo start 2 second after intro text and stop with it+bird_clip = bird_clip.with_start(intro_clip.end) # Make bird clip start after intro, duration already known+bird_text = bird_text.with_start(bird_clip.start).with_end(bird_clip.end) # Make text synchro with clip+bunny_clip = bunny_clip.with_start(bird_clip.end) # Make bunny clip follow bird clip+bunny_text = bunny_text.with_start(bunny_clip.start + 2).with_duration(7)+rodents_clip = rodents_clip.with_start(bunny_clip.end)+rodents_text = rodents_text.with_start(rodents_clip.start).with_duration(4)+rambo_clip = rambo_clip.with_start(rodents_clip.end - 1.5)+revenge_text = revenge_text.with_start(rambo_clip.start + 1.5).with_duration(4)+made_with_text = made_with_text.with_start(rambo_clip.end).with_duration(3)+moviepy_clip = moviepy_clip.with_start(made_with_text.start).with_duration(3)+++########################+# CLIPS TIMING PREVIEW #+########################+# Lets make a first compositing of thoses clips into one single clip and do a quick preview to see if everything is synchro++quick_compo = CompositeVideoClip([intro_clip, intro_text, logo_clip, bird_clip, bird_text, bunny_clip, bunny_text, rodents_clip,+ rodents_text, rambo_clip, revenge_text, made_with_text, moviepy_clip])+quick_compo.preview(fps=10)+++######################+# CLIPS POSITIONNING #+######################+# Now that we have set the timing of our different clips, we need to make sure they are in the right position+# We will keep things simple, and almost always set center center for every texts+bird_text = bird_text.with_position(('center', 'center'))+bunny_text = bunny_text.with_position(('center', 'center'))+rodents_text = rodents_text.with_position(('center', 'center'))+revenge_text = revenge_text.with_position(('center', 'center'))++# For the logos and intro/end, we will use pixel position instead of center+top = intro_clip.h // 2+intro_text = intro_text.with_position(('center', 200))+logo_clip = logo_clip.with_position(("center", top))+made_with_text = made_with_text.with_position(('center', 300))+moviepy_clip = moviepy_clip.with_position(('center', 360))++# Lets take another look to check positions+quick_compo = CompositeVideoClip([intro_clip, intro_text, logo_clip, bird_clip, bird_text, bunny_clip, bunny_text, rodents_clip,+ rodents_text, rambo_clip, revenge_text, made_with_text, moviepy_clip])+# quick_compo.preview(fps=10)+++################################+# CLIPS TRANSITION AND EFFECTS #+################################+# Now that our clip are timed and positionned, lets add some transition to make it more natural+# To do so we use the with_effects method and the video effects in vfx+# We call with_effects on our clip and pass him an array of effect objects to apply+# We'll keep it simple, nothing fancy just cross fading+intro_text = intro_text.with_effects([vfx.CrossFadeIn(1), vfx.CrossFadeOut(1)])+logo_clip = logo_clip.with_effects([vfx.CrossFadeIn(1), vfx.CrossFadeOut(1)])+bird_text = bird_text.with_effects([vfx.CrossFadeIn(0.5), vfx.CrossFadeOut(0.5)])+bunny_text = bunny_text.with_effects([vfx.CrossFadeIn(0.5), vfx.CrossFadeOut(0.5)])+rodents_text = rodents_text.with_effects([vfx.CrossFadeIn(0.5), vfx.CrossFadeOut(0.5)])++# Also add cross fading on video clips and video clips audio+# See how video effects are under vfx and audio ones under afx+intro_clip = intro_clip.with_effects([vfx.FadeIn(1), vfx.FadeOut(1), afx.AudioFadeIn(1), afx.AudioFadeOut(1)])+bird_clip = bird_clip.with_effects([vfx.FadeIn(1), vfx.FadeOut(1), afx.AudioFadeIn(1), afx.AudioFadeOut(1)])+bunny_clip = bunny_clip.with_effects([vfx.FadeIn(1), vfx.FadeOut(1), afx.AudioFadeIn(1), afx.AudioFadeOut(1)])+rodents_clip = rodents_clip.with_effects([vfx.FadeIn(1), vfx.CrossFadeOut(1.5), afx.AudioFadeIn(1), afx.AudioFadeOut(1.5)]) # Just fade in, rambo clip will do the cross fade+rambo_clip = rambo_clip.with_effects([vfx.CrossFadeIn(1.5), vfx.FadeOut(1), afx.AudioFadeIn(1.5), afx.AudioFadeOut(1)])+rambo_clip = rambo_clip.with_effects([vfx.CrossFadeIn(1.5), vfx.FadeOut(1), afx.AudioFadeIn(1.5), afx.AudioFadeOut(1)])++# Effects are not only for transition, they can also change a clip timing or apparence+# To show that, lets also modify the Rambo-like part of our clip to be in slow motion+# PS : We do it for effect, but this is one of the few effects that have a direct shortcut, with_multiply_speed+# the others are with_multiply_volume, resized, croped and rotated+rambo_clip = rambo_clip.with_effects([vfx.MultiplySpeed(0.5)])++# Because we modified timing of rambo_clip with our MultiplySpeed effect, we must re-assign the following clips timing+made_with_text = made_with_text.with_start(rambo_clip.end).with_duration(3)+moviepy_clip = moviepy_clip.with_start(made_with_text.start).with_duration(3)++# Let's have a last look at the result to make sure everything is working as expected+quick_comp = CompositeVideoClip([intro_clip, intro_text, logo_clip, bird_clip, bird_text, bunny_clip, bunny_text,+ rodents_clip, rodents_text, rambo_clip, revenge_text, made_with_text, moviepy_clip])+quick_comp.preview(fps=10)+++###############+# CLIP FILTER #+###############+# Lets finish by modifying our rambo clip to make it sepia++# We will start by defining a function that turn a numpy image into sepia+# It takes the image as numpy array in entry and return the modified image as output+def sepia_fitler(frame: np.ndarray):+ # Sepia filter transformation matrix+ # Sepia transform works by applying to each pixel of the image the following rules+ # res_R = (R * .393) + (G *.769) + (B * .189)+ # res_G = (R * .349) + (G *.686) + (B * .168)+ # res_B = (R * .272) + (G *.534) + (B * .131)+ #+ # With numpy we can do that very efficiently by multiplying the image matrix by a transformation matrix+ sepia_matrix = np.array([[0.393, 0.769, 0.189],+ [0.349, 0.686, 0.168],+ [0.272, 0.534, 0.131]])++ # Convert the image to float32 format for matrix multiplication+ frame = frame.astype(np.float32)++ # Apply the sepia transformation+ # .T is needed because multiplying matrix of shape (n,m) * (m,k) result in a matrix of shape (n,k)+ # what we want is (n,m), so we must transpose matrix (m,k) to (k,m)+ sepia_image = np.dot(frame, sepia_matrix.T)++ # Because final result can be > 255, we limit the result to range [0, 255]+ sepia_image = np.clip(sepia_image, 0, 255)++ # Convert the image back to uint8 format, because we need integer not float+ sepia_image = sepia_image.astype(np.uint8)++ return sepia_image++# Now, we simply apply the filter to our clip by calling image_transform, which will call our filter on every frame+rambo_clip = rambo_clip.image_transform(sepia_fitler)++# Let's see how our filter look+rambo_clip.preview(fps=10)+++##################+# CLIP RENDERING #+##################+# Everything is good and ready, we can finally render our clip into a file+final_clip = CompositeVideoClip([intro_clip, intro_text, logo_clip, bird_clip, bird_text, bunny_clip, bunny_text,+ rodents_clip, rodents_text, rambo_clip, revenge_text, made_with_text, moviepy_clip])+final_clip.write_videofile("./result.mp4")\ No newline at end of filediff --git a/docs/_static/code/getting_started/quick_presentation/basic_example.py b/docs/_static/code/getting_started/quick_presentation/basic_example.pynew file mode 100644index 00000000..aecafef8--- /dev/null+++ b/docs/_static/code/getting_started/quick_presentation/basic_example.py@@ -0,0 +1,20 @@+# Import everything needed to edit video clips+from moviepy import *++# Load example.mp4 and extract only the subclip from 00:00:50 to 00:00:60+clip = VideoFileClip("example.mp4").subclip(50, 60)++# Reduce the audio volume to 80% of his original volume+clip = clip.multiply_volume(0.8)++# Generate a text clip. You can customize the font, color, etc.+txt_clip = TextClip("My Holidays 2013", fontsize=70, color='white')++# Say that you want it to appear for 10s at the center of the screen+txt_clip = txt_clip.with_position('center').with_duration(10)++# Overlay the text clip on the first video clip+video = CompositeVideoClip([clip, txt_clip])++# Write the result to a file (many options available!)+video.write_videofile("result.webm")diff --git a/docs/_static/code/user_guide/compositing/CompositeAudioClip.py b/docs/_static/code/user_guide/compositing/CompositeAudioClip.pynew file mode 100644index 00000000..67e293d2--- /dev/null+++ b/docs/_static/code/user_guide/compositing/CompositeAudioClip.py@@ -0,0 +1,14 @@+from moviepy import *++# We load all the clips we want to compose+aclip1 = AudioFileClip("example.wav")+aclip2 = VideoFileClip("example2.wav")+aclip3 = VideoFileClip("example3.wav")++# All clip will play one after the other+concat = concatenate_audioclips([aclip1, aclip2, aclip3])++# We will play aclip1, then ontop of it aclip2 after 5s, and the aclip3 on top of both after 9s+compo = CompositeAudioClip([aclip1.multiply_volume(1.2),+ aclip2.with_start(5), # start at t=5s+ aclip3.with_start(9)])\ No newline at end of filediff --git a/docs/_static/code/user_guide/compositing/CompositeVideoClip.py b/docs/_static/code/user_guide/compositing/CompositeVideoClip.pynew file mode 100644index 00000000..195038e7--- /dev/null+++ b/docs/_static/code/user_guide/compositing/CompositeVideoClip.py@@ -0,0 +1,9 @@+from moviepy import *+# We load all the clips we want to compose+clip1 = VideoFileClip("example.mp4")+clip2 = VideoFileClip("example2.mp4").with_subclip(50,60)+clip3 = VideoFileClip("example3.mp4")++# We concatenate them and write theme stacked on top of each other, with clip3 over clip2 over clip1+final_clip = CompositeVideoClip([clip1,clip2,clip3])+final_clip.write_videofile("final_clip.mp4")\ No newline at end of filediff --git a/docs/_static/code/user_guide/compositing/concatenate.py b/docs/_static/code/user_guide/compositing/concatenate.pynew file mode 100644index 00000000..69d24102--- /dev/null+++ b/docs/_static/code/user_guide/compositing/concatenate.py@@ -0,0 +1,10 @@+from moviepy import VideoFileClip, concatenate_videoclips++# We load all the clips we want to concatenate+clip1 = VideoFileClip("example.mp4")+clip2 = VideoFileClip("example2.mp4").with_subclip(50,60)+clip3 = VideoFileClip("example3.mp4")++# We concatenate them and write the result+final_clip = concatenate_videoclips([clip1,clip2,clip3])+final_clip.write_videofile("final_clip.mp4")\ No newline at end of filediff --git a/docs/_static/code/user_guide/compositing/crossfadein.py b/docs/_static/code/user_guide/compositing/crossfadein.pynew file mode 100644index 00000000..3c02f948--- /dev/null+++ b/docs/_static/code/user_guide/compositing/crossfadein.py@@ -0,0 +1,19 @@+from moviepy import *++# We load all the clips we want to compose+clip1 = VideoFileClip("example.mp4")+clip2 = VideoFileClip("exampl2.mp4").with_subclip(50,60)++# Clip2 will be on top of clip1 for 1s+clip1 = clip1.with_end(6)+clip2 = clip2.with_start(5)++# We will add a crossfadein on clip2 for 1s+# As the other effects, transitions are added to Clip methods at runtime+clip2 = clip2.crossfadein(1)++++# We write the result+final_clip = CompositeVideoClip([clip1, clip2])+final_clip.write_videofile("final_clip.mp4")\ No newline at end of filediff --git a/docs/_static/code/user_guide/compositing/juxtaposing.py b/docs/_static/code/user_guide/compositing/juxtaposing.pynew file mode 100644index 00000000..10cdf2ff--- /dev/null+++ b/docs/_static/code/user_guide/compositing/juxtaposing.py@@ -0,0 +1,14 @@+from moviepy import VideoFileClip, clips_array, vfx++# We will use the same clip and transform it in 3 ways+clip1 = VideoFileClip("example.mp4").fx(vfx.margin, 10) # add 10px contour+clip2 = clip1.fx(vfx.mirror_x) # Flip horizontaly+clip3 = clip1.fx(vfx.mirror_y) # Flip verticaly+clip4 = clip1.resize(0.60) # downsize to 60% of original++# The form of the final clip will depend of the shape of the array+# We want our clip to be our 4 videos, 2x2, so we make an array of 2x2+final_clip = clips_array([[clip1, clip2], [clip3, clip4]])+final_clip = final_clip.resize(width=480) # We resize the resulting clip to have the dimensions we want++final_clip.write_videofile("final_clip.mp4")\ No newline at end of filediff --git a/docs/_static/code/user_guide/compositing/with_position.py b/docs/_static/code/user_guide/compositing/with_position.pynew file mode 100644index 00000000..71185db1--- /dev/null+++ b/docs/_static/code/user_guide/compositing/with_position.py@@ -0,0 +1,30 @@+from moviepy import *++# We load all the clips we want to compose+background = VideoFileClip("example2.mp4").with_subclip(0, 10)+title = TextClip("./example.ttf", text="Big Buck Bunny", font_size=80, color="#fff", text_align="center", duration=3)+author = TextClip("./example.ttf", text="Blender Foundation", font_size=40, color="#fff", text_align="center", duration=3)+copyright = TextClip("./example.ttf", text="© CC BY 3.0", font_size=20, color="#fff", text_align="center", duration=3)+logo = ImageClip("./example2.png", duration=3).resize(height=50)++# We want our title to be at the center horizontaly and start at 25% of the video verticaly+# We can set as "center", "left", "right", "top" and "bottom", and % relative from the clip size+title = title.with_position(("center", 0.25), relative=True)++# We want the author to be in the center, 30px under the title+# We can set as pixels+top = background.h * 0.25 + title.h + 30+left = (background.w - author.w) / 2+author = author.with_position((left, top))++# We want the copyright to be 30px before bottom+copyright = copyright.with_position(("center", background.h - copyright.h - 30))++# Finally, we want the logo to be in the center, but to drop as time pass+# We can do so by setting position as a function that take time as argument, a lot like make_frame+top = (background.h - logo.h) / 2+logo = logo.with_position(lambda t: ('center', top + t*30))++# We write the result+final_clip = CompositeVideoClip([background, title, author, copyright, logo])+final_clip.write_videofile("final_clip.mp4")\ No newline at end of filediff --git a/docs/_static/code/user_guide/compositing/with_start.py b/docs/_static/code/user_guide/compositing/with_start.pynew file mode 100644index 00000000..525fad17--- /dev/null+++ b/docs/_static/code/user_guide/compositing/with_start.py@@ -0,0 +1,19 @@+from moviepy import *++# We load all the clips we want to compose+clip1 = VideoFileClip("example.mp4")+clip2 = VideoFileClip("example2.mp4").with_subclip(50,60)+clip3 = VideoFileClip("example3.mp4")++# We want to stop clip1 after 6s+clip1 = clip1.with_end(6)++# We want to play clip2 after 5s+clip2 = clip2.with_start(5)++# We want to play clip3 at the end of clip2, and so for 3 seconds only+clip3 = clip3.with_start(clip2.end).with_duration(3) # Some times its more practical to modify the duration of a clip instead of his end++# We write the result+final_clip = CompositeVideoClip([clip1,clip2,clip3])+final_clip.write_videofile("final_clip.mp4")\ No newline at end of filediff --git a/docs/_static/code/user_guide/effects/custom_effect.py b/docs/_static/code/user_guide/effects/custom_effect.pynew file mode 100644index 00000000..21fda2b0--- /dev/null+++ b/docs/_static/code/user_guide/effects/custom_effect.py@@ -0,0 +1,31 @@+from moviepy import VideoClip+from moviepy.decorators import requires_duration+++# Here you see a decorator that will verify if our clip have a duration+# MoviePy offer a few of thoses that may come handy when writing your own effects+@requires_duration+def progress_bar(clip: VideoClip, color: tuple, height: int = 10) :+ """+ Add a progress bar at the bottom of our clip++ Parameters+ ----------++ color: Color of the bar as a RGB tuple+ height: The height of the bar in pixels. Default = 10+ """++ # Because we have define the filter func inside our global effect,+ # it have access to global effect scope and can use clip from inside filter+ def filter(get_frame, t) :+ progression = t / clip.duration+ bar_width = int(progression * clip.w)++ # Showing a progress bar is just replacing bottom pixels on some part of our frame+ frame = get_frame(t)+ frame[-height:, 0:bar_width] = color++ return frame++ return clip.transform(filter, apply_to='mask')\ No newline at end of filediff --git a/docs/_static/code/user_guide/effects/image_transform.py b/docs/_static/code/user_guide/effects/image_transform.pynew file mode 100644index 00000000..d0427d84--- /dev/null+++ b/docs/_static/code/user_guide/effects/image_transform.py@@ -0,0 +1,10 @@+from moviepy import VideoFileClip+import numpy++my_clip = VideoFileClip("example.mp4")++def invert_green_blue(image: numpy.ndarray) -> numpy.ndarray :+ return image[:,:,[0,2,1]]+++modified_clip1 = my_clip.time_transform(invert_green_blue)\ No newline at end of filediff --git a/docs/_static/code/user_guide/effects/modify_copy_example.py b/docs/_static/code/user_guide/effects/modify_copy_example.pynew file mode 100644index 00000000..68e00b4b--- /dev/null+++ b/docs/_static/code/user_guide/effects/modify_copy_example.py@@ -0,0 +1,20 @@+# Import everything needed to edit video clips+from moviepy import *++# Load example.mp4+clip = VideoFileClip("example.mp4")++# This does nothing, as multiply_volume will return a copy of clip which you will loose immediatly as you dont store it+# If you was to render clip now, the audio would still be at full volume+clip.multiply_volume(0.1)++# This create a copy of clip in clip_whisper with a volume of only 10% the original, but does not modify the original clip+# If you was to render clip right now, the audio would still be at full volume+# If you was to render clip_whisper, the audio would be a 10% of the original volume+clip_whisper = clip.multiply_volume(0.1)++# This replace the original clip with a copy of it where volume is only 10% of the original+# If you was to render clip now, the audio would be at 10%+# The original clip is now lost+clip = clip.multiply_volume(0.1)+diff --git a/docs/_static/code/user_guide/effects/time_transform.py b/docs/_static/code/user_guide/effects/time_transform.pynew file mode 100644index 00000000..ad0ed320--- /dev/null+++ b/docs/_static/code/user_guide/effects/time_transform.py@@ -0,0 +1,13 @@+from moviepy import VideoFileClip+import math++my_clip = VideoFileClip("example.mp4")++# You can define a function the classical way+def accel_x3(time: float) -> float :+ return time * 3++modified_clip1 = my_clip.time_transform(accel_x3)++# Of you can also use lambda function+modified_clip2 = my_clip.time_transform(lambda t: 1 + math.sin(t))\ No newline at end of filediff --git a/docs/_static/code/user_guide/effects/transform.py b/docs/_static/code/user_guide/effects/transform.pynew file mode 100644index 00000000..0765a482--- /dev/null+++ b/docs/_static/code/user_guide/effects/transform.py@@ -0,0 +1,15 @@+from moviepy import VideoFileClip+import math++my_clip = VideoFileClip("example.mp4")++def scroll(get_frame, t):+ """+ This function returns a 'region' of the current frame.+ The position of this region depends on the time.+ """+ frame = get_frame(t)+ frame_region = frame[int(t):int(t)+360,:]+ return frame_region++modified_clip1 = my_clip.transform(scroll)\ No newline at end of filediff --git a/docs/_static/code/user_guide/effects/using_effects_fx.py b/docs/_static/code/user_guide/effects/using_effects_fx.pynew file mode 100644index 00000000..1fba61f5--- /dev/null+++ b/docs/_static/code/user_guide/effects/using_effects_fx.py@@ -0,0 +1,11 @@+from moviepy import VideoFileClip+from moviepy import vfx, afx++myclip = VideoFileClip("example.mp4")+myclip = myclip.fx(vfx.resize, width=460) # resize clip to be 460px in width, keeping aspect ratio++# fx method return a copy of the clip, so we can easily chain them+myclip = myclip.fx(vfx.multiply_speed, 2).fx(afx.multiply_volume, 0.5) # double the speed and half the audio volume++# because effects are added to Clip at runtime, you can also call them directly from your clip as methods+myclip = myclip.multiply_color(0.5) #dDarken the clip\ No newline at end of filediff --git a/docs/_static/code/user_guide/effects/using_with_methods.py b/docs/_static/code/user_guide/effects/using_with_methods.pynew file mode 100644index 00000000..422fb5ff--- /dev/null+++ b/docs/_static/code/user_guide/effects/using_with_methods.py@@ -0,0 +1,6 @@+from moviepy import VideoFileClip+from moviepy import vfx, afx++myclip = VideoFileClip("example.mp4")+myclip = myclip.with_end(5) # stop the clip after 5 sec+myclip = myclip.without_audio() # remove the audio of the clipdiff --git a/docs/_static/code/user_guide/loading/AudioArrayClip.py b/docs/_static/code/user_guide/loading/AudioArrayClip.pynew file mode 100644index 00000000..1350401b--- /dev/null+++ b/docs/_static/code/user_guide/loading/AudioArrayClip.py@@ -0,0 +1,32 @@+import numpy as np+from moviepy import *++# We want to play those notes+notes = {'A': 440, 'B': 494, 'C': 523, 'D': 587, 'E': 659, 'F': 698}++note_duration = 0.5+total_duration = len(notes) * note_duration+sample_rate = 44100 # Number of samples per second++note_size = int(note_duration * sample_rate)+total_size = note_size * len(notes)++def make_frame (t, note_frequency) :+ return np.sin(note_frequency * 2 * np.pi * t)++# We generate all frames timepoints+times = np.linspace(0, total_duration, total_size)++# We make an array of size N*1, where N is the number of frames * total duration+audio_array = np.zeros((total_size, 2))+i = 0+for note, frequency in notes.items() :+ for _ in range(note_size) :+ audio_array[i][0] = make_frame(times[i], frequency)+ i += 1++# Create an AudioArrayClip from the audio samples+audio_clip = AudioArrayClip(audio_array, fps=sample_rate)++# Write the audio clip to a WAV file+audio_clip.write_audiofile('result.wav', fps=44100)\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/AudioClip.py b/docs/_static/code/user_guide/loading/AudioClip.pynew file mode 100644index 00000000..f402ba8b--- /dev/null+++ b/docs/_static/code/user_guide/loading/AudioClip.py@@ -0,0 +1,8 @@+from moviepy import *+import numpy as np++# Producing a sinewave of 440 Hz -> note A+make_frame_audio = lambda t: np.sin(440 * 2 * np.pi * t)++# AUDIO CLIPS+clip = AudioClip(make_frame_audio, duration=3)\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/AudioFileClip.py b/docs/_static/code/user_guide/loading/AudioFileClip.pynew file mode 100644index 00000000..96e824c0--- /dev/null+++ b/docs/_static/code/user_guide/loading/AudioFileClip.py@@ -0,0 +1,6 @@+from moviepy import *+import numpy as np++# Works for audio files, but also videos file where you only want the keep the audio track+clip = AudioFileClip("example.mp3")+clip.write_audiofile('./result.mp3')diff --git a/docs/_static/code/user_guide/loading/ColorClip.py b/docs/_static/code/user_guide/loading/ColorClip.pynew file mode 100644index 00000000..2fab5fed--- /dev/null+++ b/docs/_static/code/user_guide/loading/ColorClip.py@@ -0,0 +1,4 @@+from moviepy import *++myclip = ColorClip(size=(200, 100), color=(255, 0, 0), duration=1) # Color is passed as a RGB tuple+myclip.write_videofile('result.mp4', fps=1) # We really dont need more than 1 fps do we ?diff --git a/docs/_static/code/user_guide/loading/DataVideoClip.py b/docs/_static/code/user_guide/loading/DataVideoClip.pynew file mode 100644index 00000000..74175d2c--- /dev/null+++ b/docs/_static/code/user_guide/loading/DataVideoClip.py@@ -0,0 +1,23 @@+from moviepy import *+import numpy as np++# Dataset will just be a list of colors as RGB+dataset = [+ (255, 0, 0),+ (0, 255, 0),+ (0, 0, 255),+ (0, 255, 255),+ (255, 0, 255),+ (255, 255, 0),+]++# The function make frame take data and create an image of 200x100 px fill with the color+def make_frame (data) :+ frame = np.full((100, 200, 3), data, dtype=np.uint8)+ return frame++# We create the DataVideoClip, and we set FPS at 2, making a 3s clip (because len(dataset) = 6, so 6/2=3)+myclip = DataVideoClip(data=dataset, data_to_frame=make_frame, fps=2)++# Modifying fps here will change video FPS, not clip FPS+myclip.write_videofile("result.mp4", fps=30)\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/ImageClip.py b/docs/_static/code/user_guide/loading/ImageClip.pynew file mode 100644index 00000000..5bdea2c5--- /dev/null+++ b/docs/_static/code/user_guide/loading/ImageClip.py@@ -0,0 +1,9 @@+from moviepy import *+import numpy as np++# Random RGB noise image of 200x100+noise_image = np.random.randint(low=0, high=255, size=(100, 200, 3))++myclip1 = ImageClip("example.png") # You can create it from a path+myclip2 = ImageClip(noise_image) # from a (height x width x 3) RGB numpy array+myclip3 = VideoFileClip("./result.mp4").to_ImageClip(t='00:00:05') # Or load videoclip and extract frame at a given timediff --git a/docs/_static/code/user_guide/loading/ImageSequenceClip.py b/docs/_static/code/user_guide/loading/ImageSequenceClip.pynew file mode 100644index 00000000..05de0b66--- /dev/null+++ b/docs/_static/code/user_guide/loading/ImageSequenceClip.py@@ -0,0 +1,14 @@+from moviepy import *++# A clip with a list of images showed for 1 second each+myclip = ImageSequenceClip(["example.png", "example2.png", "example3.png"], durations=1)+print('Clip duration: {}'.format(myclip.duration)) # 3 images, 1 seconds each, duration = 3+print('Clip fps: {}'.format(myclip.fps)) # 3 seconds, 3 images, fps is 3/3 = 1++# This time we will load all images in the dir, and instead of showing theme for X seconds, we will define FPS+myclip2 = ImageSequenceClip("./example_img_dir", fps=30)+print('Clip duration: {}'.format(myclip.duration)) # fps = 30, so duration = nb images in dir / 30+print('Clip fps: {}'.format(myclip.fps)) # fps = 30++myclip.write_gif("result.gif") # the gif will be 3 sec and 1 fps+myclip2.write_gif("result2.gif") # the gif will be 30 fps, duration will vary based on number of images in dir\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/TextClip.py b/docs/_static/code/user_guide/loading/TextClip.pynew file mode 100644index 00000000..a9ddca4d--- /dev/null+++ b/docs/_static/code/user_guide/loading/TextClip.py@@ -0,0 +1,17 @@+from moviepy import *++font="./example.ttf"++# First we use as string and let system autocalculate clip dimensions to fit the text+# we set clip duration to 2 secs, if we do not, it got an infinite duration+txt_clip1 = TextClip(font=font, text="Hello World !", font_size=30, color="#FF0000", bg_color="#FFFFFF", duration=3) # Red++# This time we load text from a file, we set a fixed size for clip and let the system find best font size,+# allowing for line breaking+txt_clip2 = TextClip(font=font, filename="./example.txt", size=(500, 200), bg_color="#FFFFFF", method="caption", color=(0, 0, 255, 127)) # Blue with 50% transparency++# we set duration, because by default image clip are infinite, and we cannot render infinite+txt_clip2 = txt_clip2.with_duration(3)++txt_clip1.write_videofile("result1.mp4", fps=24) # ImageClip have no FPS either, so we must defined it+txt_clip2.write_videofile("result2.mp4", fps=24)\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/UpdatedVideoClip.py b/docs/_static/code/user_guide/loading/UpdatedVideoClip.pynew file mode 100644index 00000000..e35dc0f7--- /dev/null+++ b/docs/_static/code/user_guide/loading/UpdatedVideoClip.py@@ -0,0 +1,56 @@+from moviepy import *+import numpy as np+import random++# Imagine we want to make a video that become more and more red as we repeat same face on coinflip in a row+# because coinflip are done in real time, we need to wait until a winning row is done to be able+# to make the next frame.+# This is a world simulating that. Sorry, it's hard to come up with examples...+class CoinFlipWorld :++ def __init__(self, fps) :+ """+ FPS is usefull because we must increment clip_t by 1/FPS to have UpdatedVideoClip run with a certain FPS++ """+ self.clip_t = 0+ self.win_strike = 0+ self.reset = False+ self.fps = fps++ def update(self) :+ if self.reset :+ self.win_strike = 0+ self.reset = False++ print('strike : {}, clip_t : {}'.format(self.win_strike, self.clip_t))+ print(self.win_strike)++ # 0 tails, 1 heads, this is our simulation of coinflip+ choice = random.randint(0, 1)+ face = random.randint(0, 1)++ # We win, we increment our serie and retry+ if choice == face :+ self.win_strike += 1+ return++ # Different face, we increment clip_t and set reset so we will reset on next update.+ # We dont reset immediately because we will need current state to make frame+ self.reset = True+ self.clip_t += 1 / self.fps++ def to_frame(self) :+ red_intensity = 255 * (self.win_strike / 10) # 100% red for 10 victories and more+ red_intensity = min(red_intensity, 255)++ # A 200x100 image with red more or less intense based on number of victories in a row+ return np.full((100, 200, 3), (red_intensity, 0, 0), dtype=np.uint8)+++world = CoinFlipWorld(fps=5)++myclip = UpdatedVideoClip(world=world, duration=10)+# We will set FPS to same as world, if we was to use a different FPS, the lowest from world.fps and our write_videofile fps param+# will be the real visible fps+myclip.write_videofile("result.mp4", fps=5)\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/VideoClip.py b/docs/_static/code/user_guide/loading/VideoClip.pynew file mode 100644index 00000000..73bd8959--- /dev/null+++ b/docs/_static/code/user_guide/loading/VideoClip.py@@ -0,0 +1,26 @@+from PIL import Image, ImageDraw+import numpy as np+from moviepy import *+import math++WIDTH, HEIGHT = (128, 128)+RED = (255, 0, 0)++def make_frame(t):+ frequency = 1 # One pulse per second+ coef = (0.5 * (1 + math.sin(2 * math.pi * frequency * t))) # radius varies over time+ radius = WIDTH * coef++ x1 = WIDTH / 2 - radius / 2+ y1 = HEIGHT / 2 - radius / 2+ x2 = WIDTH / 2 + radius / 2+ y2 = HEIGHT / 2 + radius / 2++ img = Image.new('RGB', (WIDTH, HEIGHT))+ draw = ImageDraw.Draw(img)+ draw.ellipse((x1, y1, x2, y2), fill=RED)++ return np.array(img) # returns a 8-bit RGB array++clip = VideoClip(make_frame, duration=2) # we define a 2s duration for the clip to be able to render it later+clip.write_gif("circle.gif", fps=15) # we must set a framerate because VideoClip have no framerate by default\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/VideoFileClip.py b/docs/_static/code/user_guide/loading/VideoFileClip.pynew file mode 100644index 00000000..d6f2641e--- /dev/null+++ b/docs/_static/code/user_guide/loading/VideoFileClip.py@@ -0,0 +1,13 @@+from moviepy import *++myclip = VideoFileClip("example.mp4")++# video file clips already have fps and duration+print('Clip duration: {}'.format(myclip.duration))+print('Clip fps: {}'.format(myclip.fps))++myclip = myclip.with_subclip(5, 10) # Cutting the clip between 5 and 10 secs.+print('Clip duration: {}'.format(myclip.duration)) # Cuting will update duration+print('Clip fps: {}'.format(myclip.fps)) # and keep fps++myclip.write_videofile("result.mp4") # the output video will be 5 sec long and use original fps\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/closing.py b/docs/_static/code/user_guide/loading/closing.pynew file mode 100644index 00000000..1414d6b7--- /dev/null+++ b/docs/_static/code/user_guide/loading/closing.py@@ -0,0 +1,6 @@+from moviepy import *++with AudioFileClip("example.mp3") as clip:+ raise Exception("Let's simulate an exception")++# clip.close() is implicitly called, so the lock on my_audiofile.mp3 file is immediately released.\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/loading.py b/docs/_static/code/user_guide/loading/loading.pynew file mode 100644index 00000000..cb684c67--- /dev/null+++ b/docs/_static/code/user_guide/loading/loading.py@@ -0,0 +1,23 @@+from moviepy import *+import numpy as np++# Define some constants for later use+black = (255, 255, 255) # RGB for black+# Random noise image of 200x100+make_frame = lambda t: np.random.randint(low=0, high=255, size=(100, 200, 3))+# A note by producing a sinewave of 440 Hz+make_frame_audio = lambda t: np.sin(440 * 2 * np.pi * t)++# Now lets see how to load different type of resources !++# VIDEO CLIPS`+clip = VideoClip(make_frame, duration=5) # for custom animations, where make_frame is a function returning an image as numpy array for a given time+clip = VideoFileClip("example.mp4") # for videos+clip = ImageSequenceClip(['example.png', 'example2.png', 'example3.png'], fps=24) # for a list or directory of images to be used as a video sequence+clip = ImageClip("example.png") # For a picture+clip = TextClip("Hello!", font="./example.ttf", fontsize=70, color="black") # To create the image of a text+clip = ColorClip(size=(460,380), color=black) # a clip of a single unified color, where color is a RGB tuple/array/list++# AUDIO CLIPS+clip = AudioFileClip("example.wav") # for audio files, but also videos where you only want the keep the audio track+clip = AudioClip(make_frame_audio, duration=3) # for custom audio, where make_frame is a function returning a float (or tuple for stereo) for a given time\ No newline at end of filediff --git a/docs/_static/code/user_guide/loading/masks.py b/docs/_static/code/user_guide/loading/masks.pynew file mode 100644index 00000000..dc0f6f75--- /dev/null+++ b/docs/_static/code/user_guide/loading/masks.py@@ -0,0 +1,16 @@+from moviepy import *+import numpy as np++# Random RGB noise image of 200x100+makeframe = lambda t : np.random.rand(100, 200)++# To define the VideoClip as a mask, just pass parameter is_mask as True+maskclip1 = VideoClip(makeframe, duration=4, is_mask=True) # A random noise mask+maskclip2 = ImageClip("example_mask.jpeg", is_mask=True) # A fixed mask as jpeg+maskclip3 = VideoFileClip("example_mask.mp4", is_mask=True) # A video as a mask++# Load our basic clip, resize to 200x100 and apply each mask+clip = VideoFileClip("example.mp4")+clip_masked1 = clip.with_mask(maskclip1)+clip_masked2 = clip.with_mask(maskclip2)+clip_masked3 = clip.with_mask(maskclip3)\ No newline at end of filediff --git a/docs/_static/code/user_guide/rendering/display_in_notebook.py b/docs/_static/code/user_guide/rendering/display_in_notebook.pynew file mode 100644index 00000000..c2cce3cc--- /dev/null+++ b/docs/_static/code/user_guide/rendering/display_in_notebook.py@@ -0,0 +1,25 @@+from moviepy import *++# ...+# ... some jupyter specifics stuff+# ...++my_video_clip = VideoFileClip('./example.mp4')+my_image_clip = ImageClip('./example.png')+my_audio_clip = AudioClip('./example.mp3')++# We can show any type of clip+my_video_clip.display_in_notebook() # embeds a video+my_image_clip.display_in_notebook() # embeds an image+my_audio_clip.display_in_notebook() # embeds a sound++# We can display only a snaphot of a video+my_video_clip.display_in_notebook(t=15)++# We can provide any valid HTML5 option as keyword argument+# For instance, if the clip is too big, we can set width+my_video_clip.display_in_notebook(width=400)++# We can also make it loop, for example to check if a GIF is+# looping as expected+my_video_clip.display_in_notebook(autoplay=1, loop=1)diff --git a/docs/_static/code/user_guide/rendering/preview.py b/docs/_static/code/user_guide/rendering/preview.pynew file mode 100644index 00000000..f2a3f096--- /dev/null+++ b/docs/_static/code/user_guide/rendering/preview.py@@ -0,0 +1,13 @@+from moviepy import *++myclip = VideoFileClip('./example.mp4')++# We preview our clip as a video, inheriting FPS and audio of the original clip+myclip.preview()++# We preview our clip as video, but with a custom FPS for video and audio+# making it less consuming for our computer+myclip.preview(fps=10, audio_fps=11000)++# Now we preview our clip to show only portion from 00:00:30 to 00:00:35+myclip.with_subclip(30, 35).preview(fps=10, audio=False)diff --git a/docs/_static/code/user_guide/rendering/save_frame.py b/docs/_static/code/user_guide/rendering/save_frame.pynew file mode 100644index 00000000..743dad34--- /dev/null+++ b/docs/_static/code/user_guide/rendering/save_frame.py@@ -0,0 +1,5 @@+from moviepy import *++# We load all the clips we want to compose+myclip = VideoFileClip("example.mp4")+myclip.save_frame("result.png", t=5) # Save frame at 5 secdiff --git a/docs/_static/code/user_guide/rendering/show.py b/docs/_static/code/user_guide/rendering/show.pynew file mode 100644index 00000000..6416c273--- /dev/null+++ b/docs/_static/code/user_guide/rendering/show.py@@ -0,0 +1,12 @@+from moviepy import *++myclip = VideoFileClip('./example.mp4')++# We show the first frame of our clip+myclip.show()++# We show the frame at point 00:00:30 of our clip+myclip.show(30)++# We want to see our clip without applying his mask+myclip.preview(30, with_mask=False)diff --git a/docs/_static/code/user_guide/rendering/write_gif.py b/docs/_static/code/user_guide/rendering/write_gif.pynew file mode 100644index 00000000..a11ec4bc--- /dev/null+++ b/docs/_static/code/user_guide/rendering/write_gif.py@@ -0,0 +1,9 @@+from moviepy import *++myclip = VideoFileClip("example.mp4").with_subclip(0, 10)++# Here we just save as GIF+myclip.write_gif("result.gif")++# Here we save as GIF, but we set the FPS of our GIF at 10+myclip.write_gif('result.gif', fps=10)\ No newline at end of filediff --git a/docs/_static/code/user_guide/rendering/write_images_sequence.py b/docs/_static/code/user_guide/rendering/write_images_sequence.pynew file mode 100644index 00000000..2dbe8096--- /dev/null+++ b/docs/_static/code/user_guide/rendering/write_images_sequence.py@@ -0,0 +1,9 @@+from moviepy import *++myclip = VideoFileClip("example.mp4")++# Here we just save in dir output with filename being his index (start at 0, then +1 for each frame)+myclip.write_images_sequence("./output/%d.jpg")++# We set the FPS of our GIF at 10, and we leftpad name with 0 up to 4 digits+myclip.write_images_sequence("./output/%04d.jpg")diff --git a/docs/_static/code/user_guide/rendering/write_videofile.py b/docs/_static/code/user_guide/rendering/write_videofile.pynew file mode 100644index 00000000..54659576--- /dev/null+++ b/docs/_static/code/user_guide/rendering/write_videofile.py@@ -0,0 +1,23 @@+from moviepy import *++# We load all the clips we want to compose+background = VideoFileClip("example.mp4").with_subclip(0, 10)+title = TextClip("./example.ttf", text="Big Buck Bunny", font_size=80, color="#fff", text_align="center", duration=3).with_position(("center", "center"))++# We make our final clip through composition+final_clip = CompositeVideoClip([background, title])++# And finally we can write the result into a file++# Here we just save as MP4, inheriting FPS, etc. from final_clip+final_clip.write_videofile("result.mp4")++# Here we save as MP4, but we set the FPS of the clip to our own, here 24 fps, like cinema+final_clip.write_videofile("result24fps.mp4", fps=24)++# Now we save as WEBM instead, and we want tu use codec libvpx.+# We also want ffmpeg compression optimisation as minimal as possible. This will not change+# the video quality and it will decrease time for encoding, but increase final file size a lot.+# Finally, we want ffmpeg to use 4 threads for video encoding. You should probably leave that+# to default, as ffmpeg is already quite good at using the best setting on his own.+final_clip.write_videofile("result.webm", codec="libvpx", fps=24, preset="ultrafast", threads=4)\ No newline at end of filediff --git a/docs/_static/code/user_guide/rendering/write_videofile_duration.py b/docs/_static/code/user_guide/rendering/write_videofile_duration.pynew file mode 100644index 00000000..031a4f9f--- /dev/null+++ b/docs/_static/code/user_guide/rendering/write_videofile_duration.py@@ -0,0 +1,13 @@+from moviepy import *++# By default an ImageClip has no duration+my_clip = ImageClip("example.png")++try :+ # This will fail! We cannot write a clip with no duration!+ my_clip.write_videofile("result.mp4")+except :+ print('Cannot write a video without duration')++# By calling with_duration on our clip, we fix the problem!+my_clip.with_duration(5).write_videofile("result.mp4")\ No newline at end of filediff --git a/docs/_static/accel_decel-fx-params.png b/docs/_static/medias/accel_decel-fx-params.pngsimilarity index 100%rename from docs/_static/accel_decel-fx-params.pngrename to docs/_static/medias/accel_decel-fx-params.pngdiff --git a/docs/getting_started/explanations.jpeg b/docs/_static/medias/getting_started/explanations.jpegsimilarity index 100%rename from docs/getting_started/explanations.jpegrename to docs/_static/medias/getting_started/explanations.jpegdiff --git a/docs/_static/medias/getting_started/moviepy_10_minutes/moviepy_10_minutes.zip b/docs/_static/medias/getting_started/moviepy_10_minutes/moviepy_10_minutes.zipnew file mode 100644index 00000000..1ded3269Binary files /dev/null and b/docs/_static/medias/getting_started/moviepy_10_minutes/moviepy_10_minutes.zip differdiff --git a/docs/_static/medias/getting_started/moviepy_10_minutes/trailer_bbb.mp4 b/docs/_static/medias/getting_started/moviepy_10_minutes/trailer_bbb.mp4new file mode 100644index 00000000..84d8ee29Binary files /dev/null and b/docs/_static/medias/getting_started/moviepy_10_minutes/trailer_bbb.mp4 differdiff --git a/docs/_static/medias/index_api.svg b/docs/_static/medias/index_api.svgnew file mode 100644index 00000000..69f7ba1d--- /dev/null+++ b/docs/_static/medias/index_api.svg@@ -0,0 +1,97 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<!-- Created with Inkscape (http://www.inkscape.org/) -->++<svg+ xmlns:dc="http://purl.org/dc/elements/1.1/"+ xmlns:cc="http://creativecommons.org/ns#"+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+ xmlns:svg="http://www.w3.org/2000/svg"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ width="99.058548mm"+ height="89.967583mm"+ viewBox="0 0 99.058554 89.967582"+ version="1.1"+ id="svg1040"+ inkscape:version="0.92.4 (f8dce91, 2019-08-02)"+ sodipodi:docname="index_api.svg">+ <defs+ id="defs1034" />+ <sodipodi:namedview+ id="base"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:pageopacity="0.0"+ inkscape:pageshadow="2"+ inkscape:zoom="0.35"+ inkscape:cx="533.74914"+ inkscape:cy="10.90433"+ inkscape:document-units="mm"+ inkscape:current-layer="layer1"+ showgrid="false"+ fit-margin-top="0"+ fit-margin-left="0"+ fit-margin-right="0"+ fit-margin-bottom="0"+ inkscape:window-width="930"+ inkscape:window-height="472"+ inkscape:window-x="2349"+ inkscape:window-y="267"+ inkscape:window-maximized="0" />+ <metadata+ id="metadata1037">+ <rdf:RDF>+ <cc:Work+ rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />+ <dc:title></dc:title>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <g+ inkscape:label="Layer 1"+ inkscape:groupmode="layer"+ id="layer1"+ transform="translate(195.19933,-1.0492759)">+ <g+ id="g1008"+ transform="matrix(1.094977,0,0,1.094977,-521.5523,-198.34055)">+ <path+ inkscape:connector-curvature="0"+ id="path899"+ d="M 324.96812,187.09499 H 303.0455 v 72.1639 h 22.67969"+ style="fill:none;stroke:#459DB9;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />+ <path+ inkscape:connector-curvature="0"+ id="path899-3"+ d="m 361.58921,187.09499 h 21.92262 v 72.1639 h -22.67969"+ style="fill:none;stroke:#459DB9;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />+ <g+ transform="translate(415.87139,46.162126)"+ id="g944">+ <circle+ style="fill:#459DB9;fill-opacity:1;stroke:#459DB9;stroke-width:4.53704548;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"+ id="path918"+ cx="-84.40152"+ cy="189.84375"+ r="2.2293637" />+ <circle+ style="fill:#459DB9;fill-opacity:1;stroke:#459DB9;stroke-width:4.53704548;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"+ id="path918-5"+ cx="-72.949402"+ cy="189.84375"+ r="2.2293637" />+ <circle+ style="fill:#459DB9;fill-opacity:1;stroke:#459DB9;stroke-width:4.53704548;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"+ id="path918-6"+ cx="-61.497284"+ cy="189.84375"+ r="2.2293637" />+ </g>+ </g>+ </g>+</svg>diff --git a/docs/_static/medias/index_contribute.svg b/docs/_static/medias/index_contribute.svgnew file mode 100644index 00000000..de3d9023--- /dev/null+++ b/docs/_static/medias/index_contribute.svg@@ -0,0 +1,76 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<!-- Created with Inkscape (http://www.inkscape.org/) -->++<svg+ xmlns:dc="http://purl.org/dc/elements/1.1/"+ xmlns:cc="http://creativecommons.org/ns#"+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+ xmlns:svg="http://www.w3.org/2000/svg"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ width="89.624855mm"+ height="89.96759mm"+ viewBox="0 0 89.62486 89.96759"+ version="1.1"+ id="svg1040"+ inkscape:version="0.92.4 (f8dce91, 2019-08-02)"+ sodipodi:docname="index_contribute.svg">+ <defs+ id="defs1034" />+ <sodipodi:namedview+ id="base"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:pageopacity="0.0"+ inkscape:pageshadow="2"+ inkscape:zoom="0.35"+ inkscape:cx="683.11893"+ inkscape:cy="-59.078181"+ inkscape:document-units="mm"+ inkscape:current-layer="layer1"+ showgrid="false"+ fit-margin-top="0"+ fit-margin-left="0"+ fit-margin-right="0"+ fit-margin-bottom="0"+ inkscape:window-width="930"+ inkscape:window-height="472"+ inkscape:window-x="2349"+ inkscape:window-y="267"+ inkscape:window-maximized="0" />+ <metadata+ id="metadata1037">+ <rdf:RDF>+ <cc:Work+ rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />+ <dc:title></dc:title>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <g+ inkscape:label="Layer 1"+ inkscape:groupmode="layer"+ id="layer1"+ transform="translate(234.72009,17.466935)">+ <g+ id="g875"+ transform="matrix(0.99300176,0,0,0.99300176,-133.24106,-172.58804)">+ <path+ sodipodi:nodetypes="ccc"+ inkscape:connector-curvature="0"+ id="path869"+ d="m -97.139881,161.26069 47.247024,40.25446 -47.247024,40.25446"+ style="fill:none;stroke:#459DB9;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />+ <path+ inkscape:connector-curvature="0"+ id="path871"+ d="m -49.514879,241.81547 h 32.505951"+ style="fill:none;stroke:#459DB9;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />+ </g>+ </g>+</svg>diff --git a/docs/_static/medias/index_getting_started.svg b/docs/_static/medias/index_getting_started.svgnew file mode 100644index 00000000..2d36622c--- /dev/null+++ b/docs/_static/medias/index_getting_started.svg@@ -0,0 +1,66 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<!-- Created with Inkscape (http://www.inkscape.org/) -->++<svg+ xmlns:dc="http://purl.org/dc/elements/1.1/"+ xmlns:cc="http://creativecommons.org/ns#"+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+ xmlns:svg="http://www.w3.org/2000/svg"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ width="101.09389mm"+ height="89.96759mm"+ viewBox="0 0 101.09389 89.96759"+ version="1.1"+ id="svg1040"+ inkscape:version="0.92.4 (f8dce91, 2019-08-02)"+ sodipodi:docname="index_getting_started.svg">+ <defs+ id="defs1034" />+ <sodipodi:namedview+ id="base"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:pageopacity="0.0"+ inkscape:pageshadow="2"+ inkscape:zoom="0.35"+ inkscape:cx="-93.242129"+ inkscape:cy="-189.9825"+ inkscape:document-units="mm"+ inkscape:current-layer="layer1"+ showgrid="false"+ fit-margin-top="0"+ fit-margin-left="0"+ fit-margin-right="0"+ fit-margin-bottom="0"+ inkscape:window-width="1875"+ inkscape:window-height="1056"+ inkscape:window-x="1965"+ inkscape:window-y="0"+ inkscape:window-maximized="1" />+ <metadata+ id="metadata1037">+ <rdf:RDF>+ <cc:Work+ rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />+ <dc:title></dc:title>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <g+ inkscape:label="Layer 1"+ inkscape:groupmode="layer"+ id="layer1"+ transform="translate(2.9219487,-8.5995374)">+ <path+ style="fill:#459DB9;fill-opacity:1;stroke-width:0.20233451"+ d="M 37.270955,98.335591 C 33.358064,97.07991 31.237736,92.52319 32.964256,89.08022 c 0.18139,-0.361738 4.757999,-5.096629 10.17021,-10.521968 l 9.84041,-9.864254 -4.03738,-4.041175 -4.037391,-4.041172 -4.96415,4.916665 c -3.61569,3.581096 -5.238959,5.04997 -5.975818,5.407377 l -1.011682,0.490718 H 17.267525 1.5866055 L 0.65034544,70.96512 C -2.2506745,69.535833 -3.5952145,66.18561 -2.5925745,62.884631 c 0.53525,-1.762217 1.61699004,-3.050074 3.22528014,-3.839847 l 1.15623996,-0.56778 13.2591094,-0.05613 13.259111,-0.05613 11.5262,-11.527539 11.526199,-11.527528 H 40.622647 c -12.145542,0 -12.189222,-0.0046 -13.752801,-1.445851 -2.229871,-2.055423 -2.162799,-5.970551 0.135998,-7.938238 1.475193,-1.262712 1.111351,-1.238469 18.588522,-1.238469 12.899229,0 16.035311,0.05193 16.692589,0.276494 0.641832,0.219264 2.590731,2.051402 9.416301,8.852134 l 8.606941,8.575638 h 6.848168 c 4.837422,0 7.092281,0.07311 7.679571,0.249094 0.48064,0.144008 1.22985,0.634863 1.77578,1.163429 2.383085,2.307333 1.968685,6.539886 -0.804989,8.221882 -0.571871,0.346781 -1.38284,0.687226 -1.80217,0.756523 -0.41933,0.06928 -4.2741,0.127016 -8.56615,0.128238 -6.56998,0.0016 -7.977492,-0.04901 -8.902732,-0.321921 -0.975569,-0.287742 -1.400468,-0.622236 -3.783999,-2.978832 l -2.685021,-2.654679 -5.05411,5.051071 -5.0541,5.051081 3.926292,3.947202 c 2.365399,2.378001 4.114289,4.309171 4.399158,4.857713 0.39266,0.75606 0.47311,1.219412 0.474321,2.731516 0.003,3.083647 0.620779,2.331942 -13.598011,16.531349 -10.273768,10.259761 -12.679778,12.563171 -13.500979,12.92519 -1.267042,0.55857 -3.156169,0.681342 -4.390271,0.285321 z m 40.130741,-65.45839 c -2.212909,-0.579748 -3.782711,-1.498393 -5.51275,-3.226063 -2.522111,-2.518633 -3.633121,-5.181304 -3.633121,-8.707194 0,-3.530699 1.11238,-6.197124 3.631161,-8.704043 4.866751,-4.8438383 12.324781,-4.8550953 17.211791,-0.026 3.908758,3.862461 4.818578,9.377999 2.372188,14.380771 -0.846209,1.730481 -3.39493,4.326384 -5.143839,5.239072 -2.69708,1.407492 -6.042829,1.798628 -8.92543,1.043434 z"+ id="path1000"+ inkscape:connector-curvature="0" />+ </g>+</svg>diff --git a/docs/_static/medias/index_user_guide.svg b/docs/_static/medias/index_user_guide.svgnew file mode 100644index 00000000..bd170535--- /dev/null+++ b/docs/_static/medias/index_user_guide.svg@@ -0,0 +1,67 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<!-- Created with Inkscape (http://www.inkscape.org/) -->++<svg+ xmlns:dc="http://purl.org/dc/elements/1.1/"+ xmlns:cc="http://creativecommons.org/ns#"+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+ xmlns:svg="http://www.w3.org/2000/svg"+ xmlns="http://www.w3.org/2000/svg"+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"+ width="123.72241mm"+ height="89.96759mm"+ viewBox="0 0 123.72242 89.96759"+ version="1.1"+ id="svg1040"+ inkscape:version="0.92.4 (f8dce91, 2019-08-02)"+ sodipodi:docname="index_userguide.svg">+ <defs+ id="defs1034" />+ <sodipodi:namedview+ id="base"+ pagecolor="#ffffff"+ bordercolor="#666666"+ borderopacity="1.0"+ inkscape:pageopacity="0.0"+ inkscape:pageshadow="2"+ inkscape:zoom="0.35"+ inkscape:cx="332.26618"+ inkscape:cy="83.744004"+ inkscape:document-units="mm"+ inkscape:current-layer="layer1"+ showgrid="false"+ fit-margin-top="0"+ fit-margin-left="0"+ fit-margin-right="0"+ fit-margin-bottom="0"+ inkscape:window-width="930"+ inkscape:window-height="472"+ inkscape:window-x="2349"+ inkscape:window-y="267"+ inkscape:window-maximized="0" />+ <metadata+ id="metadata1037">+ <rdf:RDF>+ <cc:Work+ rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />+ <dc:title></dc:title>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <g+ inkscape:label="Layer 1"+ inkscape:groupmode="layer"+ id="layer1"+ transform="translate(141.8903,-20.32143)">+ <path+ style="fill:#459DB9;fill-opacity:1;stroke-width:0.20483544"+ d="m -139.53374,110.1657 c -0.80428,-0.24884 -1.71513,-1.11296 -2.07107,-1.96486 -0.23905,-0.57214 -0.28453,-6.28104 -0.28453,-35.720988 0,-38.274546 -0.079,-35.840728 1.19849,-36.91568 0.58869,-0.495345 4.63766,-2.187548 8.47998,-3.544073 l 1.58749,-0.560453 v -3.309822 c 0,-3.025538 0.0396,-3.388179 0.46086,-4.222122 0.68808,-1.362003 1.38671,-1.714455 4.60319,-2.322195 4.12797,-0.779966 5.13304,-0.912766 8.81544,-1.16476 11.80964,-0.808168 22.80911,2.509277 30.965439,9.3392 1.750401,1.465747 3.840861,3.5635 5.0903,5.108065 l 0.659122,0.814805 0.659109,-0.814805 c 1.249431,-1.544565 3.33988,-3.642318 5.09029,-5.108065 8.156331,-6.829923 19.155791,-10.147368 30.965441,-9.3392 3.682389,0.251994 4.68748,0.384794 8.81544,1.16476 3.21647,0.60774 3.91511,0.960192 4.60318,2.322195 0.4213,0.833943 0.46087,1.196584 0.46087,4.222122 v 3.309822 l 1.58748,0.560453 c 4.10165,1.448077 7.98852,3.072753 8.5259,3.563743 1.22643,1.120567 1.15258,-1.245868 1.15258,36.927177 0,34.567591 -0.005,35.083151 -0.40663,35.903991 -0.22365,0.45804 -0.73729,1.05665 -1.14143,1.33024 -1.22281,0.82783 -2.17721,0.70485 -5.86813,-0.7561 -9.19595,-3.63998 -18.956011,-6.38443 -26.791332,-7.53353 -3.02827,-0.44412 -9.26189,-0.61543 -11.77821,-0.3237 -5.19357,0.60212 -8.736108,2.05527 -11.700039,4.79936 -0.684501,0.63371 -1.466141,1.23646 -1.736979,1.33942 -0.63859,0.2428 -4.236521,0.2428 -4.875112,0 -0.27083,-0.10296 -1.05247,-0.70571 -1.73696,-1.33942 -2.96395,-2.74409 -6.50648,-4.19724 -11.700058,-4.79936 -2.516312,-0.29173 -8.749941,-0.12042 -11.778201,0.3237 -7.78194,1.14127 -17.39965,3.83907 -26.73341,7.49883 -3.38325,1.32658 -4.15525,1.50926 -5.11851,1.21125 z m 4.2107,-5.34052 c 5.86759,-2.29858 14.40398,-4.922695 20.2018,-6.210065 6.31584,-1.402418 8.5236,-1.646248 14.91592,-1.647338 4.68699,-7.94e-4 6.013661,0.0632 7.257809,0.3497 0.837332,0.19286 1.561052,0.312028 1.60828,0.264819 0.147111,-0.147119 -1.803289,-1.307431 -4.154879,-2.471801 -8.12511,-4.023029 -18.27311,-4.986568 -29.0861,-2.761718 -1.09536,0.22538 -2.32708,0.40827 -2.73715,0.406418 -1.12787,-0.005 -2.3054,-0.76382 -2.84516,-1.8332 l -0.46086,-0.913098 V 62.99179 35.97471 l -0.56331,0.138329 c -0.30981,0.07608 -1.89985,0.665075 -3.5334,1.308881 -2.27551,0.896801 -2.96414,1.252878 -2.94452,1.522563 0.014,0.193604 0.0372,15.284513 0.0512,33.535345 0.014,18.250839 0.0538,33.183322 0.0884,33.183322 0.0346,0 1.02543,-0.3771 2.20198,-0.83801 z m 113.006991,-32.697216 -0.0518,-33.535203 -3.17495,-1.272156 c -1.74623,-0.699685 -3.33627,-1.278755 -3.53341,-1.286819 -0.33966,-0.01389 -0.35847,1.401778 -0.35847,26.980216 v 26.994863 l -0.46087,0.913112 c -0.53976,1.06939 -1.71729,1.828088 -2.84515,1.833189 -0.41008,0.0021 -1.6418,-0.181031 -2.73716,-0.406421 -11.888201,-2.446089 -22.84337,-1.046438 -31.491022,4.02332 -1.68175,0.985941 -2.216748,1.467501 -1.36534,1.228942 1.575181,-0.441362 4.990592,-0.73864 8.524862,-0.742011 5.954408,-0.005 11.43046,0.791951 19.10874,2.78333 3.9516,1.024874 12.1555,3.687454 15.6699,5.085704 1.23926,0.49306 2.36869,0.90517 2.50985,0.9158 0.20489,0.0155 0.2462,-6.745894 0.20483,-33.515866 z m -59.76135,-2.233777 V 40.065438 l -0.95972,-1.357442 c -1.380522,-1.952627 -5.376262,-5.847994 -7.64336,-7.45136 -3.778692,-2.672401 -9.063392,-4.943324 -13.672511,-5.875304 -3.19731,-0.646503 -5.23069,-0.833103 -9.05886,-0.831312 -4.37716,0.0021 -7.70223,0.349169 -11.83461,1.235469 l -1.07538,0.230645 v 31.242342 c 0,26.565778 0.0426,31.226011 0.28429,31.133261 0.15637,-0.06 1.42379,-0.297169 2.81648,-0.527026 12.37657,-2.042634 23.21658,-0.346861 32.521639,5.087596 2.10018,1.226558 5.20202,3.618878 6.880942,5.30692 0.788609,0.792909 1.502978,1.446609 1.587468,1.452679 0.0845,0.006 0.153622,-13.411893 0.153622,-29.817719 z m 5.80221,28.3766 c 6.21476,-6.141601 15.08488,-10.061509 25.025529,-11.05933 4.262419,-0.427849 11.579921,-0.0054 16.017661,0.924912 0.75932,0.15916 1.45259,0.244888 1.54058,0.190498 0.088,-0.05434 0.16003,-14.060382 0.16003,-31.124436 V 26.176883 l -0.52136,-0.198219 c -0.66893,-0.254325 -4.77649,-0.95482 -7.159981,-1.221048 -2.41372,-0.269605 -8.559851,-0.266589 -10.759229,0.0052 -6.458111,0.798299 -12.584091,3.083792 -17.405651,6.49374 -2.267091,1.603366 -6.262831,5.498733 -7.64336,7.45136 l -0.959721,1.357438 v 29.828747 c 0,16.405812 0.0532,29.828746 0.11802,29.828746 0.065,0 0.77928,-0.65347 1.587482,-1.452149 z"+ id="path845"+ inkscape:connector-curvature="0"+ sodipodi:nodetypes="csscccscsssscsssssscscsccsccsccscsscccccccscccccccccsccscscscccscccsccssccsscccscccccsccccsccscsccsscc" />+ </g>+</svg>diff --git a/docs/_static/logo.png b/docs/_static/medias/logo.pngsimilarity index 100%rename from docs/_static/logo.pngrename to docs/_static/medias/logo.pngdiff --git a/docs/_static/logo_small.jpeg b/docs/_static/medias/logo_small.jpegsimilarity index 100%rename from docs/_static/logo_small.jpegrename to docs/_static/medias/logo_small.jpegdiff --git a/docs/getting_started/circle.gif b/docs/_static/medias/user_guide/circle.gifsimilarity index 100%rename from docs/getting_started/circle.gifrename to docs/_static/medias/user_guide/circle.gifdiff --git a/docs/demo_preview.jpeg b/docs/_static/medias/user_guide/demo_preview.jpegsimilarity index 100%rename from docs/demo_preview.jpegrename to docs/_static/medias/user_guide/demo_preview.jpegdiff --git a/docs/getting_started/stacked.jpeg b/docs/_static/medias/user_guide/stacked.jpegsimilarity index 100%rename from docs/getting_started/stacked.jpegrename to docs/_static/medias/user_guide/stacked.jpegdiff --git a/docs/getting_started/videoWH.jpeg b/docs/_static/medias/user_guide/videoWH.jpegsimilarity index 100%rename from docs/getting_started/videoWH.jpegrename to docs/_static/medias/user_guide/videoWH.jpegdiff --git a/docs/_static/moviepy.css b/docs/_static/moviepy.cssindex 673d5872..deb697ef 100644--- a/docs/_static/moviepy.css+++ b/docs/_static/moviepy.css@@ -1,4 +1,5 @@@import url(flasky.css)+/* Override some aspects of the pydata-sphinx-theme */.indexwrapper .sphinxsidebar { visibility: hidden; }@@ -7,3 +8,54 @@div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6{ font-family: 'Times New Roman', 'Garamond', 'Georgia', serif; }++:root {+ /* Use softer blue from bootstrap's default info color */+ --pst-color-info: 23, 162, 184;+}++table {+ width: auto; /* Override fit-content which breaks Styler user guide ipynb */+}++/* Main index page overview cards */++.intro-card {+ padding: 30px 10px 20px 10px;+}++.intro-card .sd-card-img-top {+ margin: 10px;+ height: 52px;+ background: none !important;+}++.intro-card .sd-card-title {+ color: var(--pst-color-primary);+ font-size: var(--pst-font-size-h5);+ padding: 1rem 0rem 0.5rem 0rem;+}++.intro-card .sd-card-footer {+ border: none !important;+}++.intro-card .sd-card-footer p.sd-card-text {+ max-width: 220px;+ margin-left: auto;+ margin-right: auto;+}++.intro-card .sd-btn-secondary {+ background-color: #6c757d !important;+ border-color: #6c757d !important;+}++.intro-card .sd-btn-secondary:hover {+ background-color: #5a6268 !important;+ border-color: #545b62 !important;+}++.card, .card img {+ background-color: var(--pst-color-background);+}diff --git a/docs/_templates/custom_autosummary/class.rst b/docs/_templates/custom_autosummary/class.rstnew file mode 100644index 00000000..9ec051d2--- /dev/null+++ b/docs/_templates/custom_autosummary/class.rst@@ -0,0 +1,11 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++{{ fullname | escape | underline}}++.. currentmodule:: {{ module }}++.. autoclass:: {{ objname }}+ :members:++diff --git a/docs/_templates/custom_autosummary/module.rst b/docs/_templates/custom_autosummary/module.rstnew file mode 100644index 00000000..f8813333--- /dev/null+++ b/docs/_templates/custom_autosummary/module.rst@@ -0,0 +1,66 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++{{ fullname | escape | underline}}++{% if fullname in ['moviepy.Effect'] or '.fx.' in fullname %} {# Fix for autosummary to document abstract class #}+.. automodule:: {{ fullname }}+ :inherited-members:+{% else %}+.. automodule:: {{ fullname }}+{% endif %}+++ {% block classes %}+ {% if classes %}+ .. rubric:: {{ _('Classes') }}++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst+ {% for item in classes %}+ {{ item }}+ {%- endfor %}+ {% endif %}+ {% endblock %}+++ {% block functions %}+ {% if functions %}+ .. rubric:: {{ _('Functions') }}++ .. autosummary::+ :toctree:+ {% for item in functions %}+ {{ item }}+ {%- endfor %}+ {% endif %}+ {% endblock %}+++ {% block exceptions %}+ {% if exceptions %}+ .. rubric:: {{ _('Exceptions') }}++ .. autosummary::+ {% for item in exceptions %}+ {{ item }}+ {%- endfor %}+ {% endif %}+ {% endblock %}++{% block modules %}+{% if modules %}+.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+{% for item in modules %}+{% if not item in ['moviepy.version'] %}+ {{ item }}+{% endif %}+{%- endfor %}+{% endif %}+{% endblock %}diff --git a/docs/advanced_tools/advanced_tools.py b/docs/advanced_tools/advanced_tools.pydeleted file mode 100644index 5929fe27..00000000--- a/docs/advanced_tools/advanced_tools.py+++ /dev/null@@ -1,12 +0,0 @@-"""-Advanced tools-===============--This section briefly presents a few functions of the submodule ``moviepy.video.tools``-that can help you edit videos. See the documentation for each modu--Subtitles-------------Credits-"""diff --git a/docs/advanced_tools/advanced_tools.rst b/docs/advanced_tools/advanced_tools.rstdeleted file mode 100644index 4763b680..00000000--- a/docs/advanced_tools/advanced_tools.rst+++ /dev/null@@ -1,18 +0,0 @@-.. _advancedtools:--Advanced tools-===============--This section will briefly present the submodule ``moviepy.video.tools`` that can help you edit videos. It's not ready yet, see :ref:`ref_videotools` (the same in more complete and more technical) instead.--Tracking-~~~~~~~~~--Cuts-~~~~~~~~--Subtitles-~~~~~~~~~~--Credits-~~~~~~~~\ No newline at end of filediff --git a/docs/conf.py b/docs/conf.pyindex 62ba51e5..ff1d5b10 100644--- a/docs/conf.py+++ b/docs/conf.py@@ -6,12 +6,12 @@ import osimport sysimport pydata_sphinx_theme-+from pygments.styles import get_all_styles# If extensions (or modules to document with autodoc) are in another directory,# add these directories to sys.path here. If the directory is relative to the# documentation root, use os.path.abspath to make it absolute, like shown here.-sys.path.insert(0, os.path.abspath("."))+sys.path.insert(0, os.path.abspath(".."))# -- General configuration -----------------------------------------------------@@ -22,17 +22,20 @@ sys.path.insert(0, os.path.abspath("."))# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.extensions = ["sphinx.ext.autodoc",+ "sphinx.ext.autosummary",+ "sphinx.ext.napoleon",++ "sphinx_design",++ "sphinx.ext.coverage","sphinx.ext.todo","sphinx.ext.viewcode",- "sphinx.ext.autosummary",- "numpydoc",+"sphinx.ext.autosectionlabel",]autosectionlabel_prefix_document = True-numpydoc_class_members_toctree = False-numpydoc_show_class_members = Trueautosummary_generate = True# Add any paths that contain templates here, relative to this directory.@@ -49,7 +52,7 @@ master_doc = "index"# General information about the project.project = "MoviePy"-copyright = "2017, Zulko"+copyright = "2023, Zulko - MIT"# The version info for the project you're documenting, acts as replacement for# |version| and |release|, also used in various other places throughout the@@ -106,7 +109,16 @@ html_theme = "pydata_sphinx_theme" # formerly 'kr'# Theme options are theme-specific and customize the look and feel of a theme# further. For a list of options available for each theme, see the# documentation.-# html_theme_options = {}+html_theme_options = {+ "use_edit_page_button": True,+}++html_context = {+ "github_user": "Zulko",+ "github_repo": "moviepy",+ "github_version": "master",+ "doc_path": "docs",+}# Add any paths that contain custom themes here, relative to this directory.# html_theme_path = []@@ -120,7 +132,7 @@ html_theme = "pydata_sphinx_theme" # formerly 'kr'# The name of an image file (relative to this directory) to place at the top# of the sidebar.-html_logo = "_static/logo_small.jpeg"+html_logo = "_static/medias/logo_small.jpeg"# The name of an image file (within the static path) to use as favicon of the# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32@@ -132,6 +144,10 @@ html_logo = "_static/logo_small.jpeg"# so a file named "default.css" will overwrite the builtin "default.css".html_static_path = ["_static"]+html_css_files = [+ 'moviepy.css',+]+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,# using the given strftime format.# html_last_updated_fmt = '%b %d, %Y'diff --git a/docs/developer_guide/index.rst b/docs/developer_guide/index.rstnew file mode 100644index 00000000..659d55af--- /dev/null+++ b/docs/developer_guide/index.rst@@ -0,0 +1,68 @@+.. _developer_guide:++MoviePy's Contribution Guidelines+=================================++Communication on GitHub+-----------------------++- Keep messages on GitHub issues and pull requests on-topic and to the point. Be aware that each comment triggers a notification which gets sent out to a number of people.+ - Opinions are OK.+ - For longer or more in-depth discussions, use the `MoviePy Gitter <https://gitter.im/Movie-py>`_. If these discussions lead to a decision, like a merge/reject, please leave a message on the relevant MoviePy issue to document the outcome of the discussion/the reason for the decision.+- Do not push any commit that changes the API without prior discussion.++Preparing for development+-------------------------++- Fork the official MoviePy repository to your own GitHub account:+ Use the "Fork" button in the top right corner of the GitHub interface while viewing `the official MoviePy <https://github.com/Zulko/moviepy>`_ repository.+- Use your fork as the basis for cloning the repository to your local machine: ``$ git clone URL_TO_YOUR_FORK``+ You can get the appropriate URL (SSH- or HTTPS-based) by using the green "Code" button located at the top right of the repository view while looking at your fork. By default, Git refers to any remote you clone from – i.e. in this case your fork on GitHub – as ``origin``.+- Enter your local clone and add the official MoviePy repository as a second remote, with alias ``upstream``:+ ``$ git remote add upstream [email protected]:Zulko/moviepy.git`` (using SSL) _or_+ ``$ git remote add upstream https://github.com/Zulko/moviepy.git`` (using HTTPS).+- Install the library inside a `virtual environment <https://docs.python.org/3/tutorial/venv.html>`_ with all dependencies included using ``$ pip install -e ".[optional,doc,test,lint]"``+- Configure pre-commit hooks running ``$ pre-commit install``++Coding conventions, code quality+--------------------------------++- Respect `PEP8 <https://www.python.org/dev/peps/pep-0008/>`_ conventions.+- Add just the "right" amount of comments. Try to write auto-documented code with very explicit variable names.+- If you introduce new functionality or fix a bug, document it in the docstring or with code comments.+- MoviePy's team adopted `pre-commit <https://pre-commit.com/>`_ to run code checks using black, flake8 and isort, so make sure that you've configured the pre-commit hooks with ``pre-commit install``.++Standard contribution workflow+------------------------------++Local development+~~~~~~~~~~~~~~~~~++- Keep your local ``master`` branch up-to-date with the official repo's master by periodically fetching/pulling it:+ ``$ git pull upstream master``+- Never make changes on ``master`` directly, but branch off into separate develop branches:+ ``$ git checkout --branch YOUR_DEVELOP_BRANCH``+ Ideally, these are given names which function as keywords for what you are working on, and are prefixed with ``fix_`` (for bug fixes), ``feature_`` or something similarly appropriate and descriptive.+- Base any changes you submit on the most recent ``master``.++More detailed explanation of the last point:++It is likely that the official repo's ``master`` branch will move on (get updated, have other PRs merged into it) while you are working on your changes. Before creating a pull request, you will have to make sure your changes are not based on outdated code. For this reason, it makes sense to avoid falling "too much behind" while developing by rebasing your local ``master`` branch at intervals. Make sure your ``master`` branch is in sync with the official ``master`` branch (as per the first point), then, while checked into your develop branch, run: ``$ git rebase master``++If you **haven't rebased before**, make sure to **familiarise yourself** with the concept.++Submitting Pull Requests+~~~~~~~~~~~~~~~~~~~~~~~~++You do not have to have finished your feature or bug fix before submitting a PR; just mention that it still is a work in progress.++Before submitting PRs:++- run the test suite over your code to expose any problems: ``$ pytest``+- push your local develop branch to your GitHub fork ``$ git push origin YOUR_DEVELOP_BRANCH``++When you now look at your forked repo on your GitHub account, you will see GitHub suggest branches for sending pull requests to the official ``Zulko/moviepy`` repository.++Once you open a PR, you will be presented with a template which you are asked to fill out. You are encouraged to add any additional information which helps provide further context to your changes, and to link to any issues or PRs which your pull request references or is informed by.++On submitting your PR, an automated test suite runs over your submission, which might take a few minutes to complete. In a next step, a MoviePy maintainer will review your code and, if necessary, help you to get it merge-ready.diff --git a/docs/examples/compo_from_image.jpeg b/docs/examples/compo_from_image.jpegdeleted file mode 100644index bb55873a..00000000Binary files a/docs/examples/compo_from_image.jpeg and /dev/null differdiff --git a/docs/examples/compo_from_image.rst b/docs/examples/compo_from_image.rstdeleted file mode 100644index d542adb3..00000000--- a/docs/examples/compo_from_image.rst+++ /dev/null@@ -1,23 +0,0 @@-======================================-Placing clips according to a picture-======================================---So how do you do some complex compositing like this?--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/1hdgNxX-tas" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--It takes a lot of bad taste, and a segmenting tool--In this script we will use this image (generated with Inkscape):--.. figure:: compo_from_image.jpeg--We will find the regions of this image and fit the different clips into these regions:--.. literalinclude:: ../../examples/compo_from_image.py---(note that some pictures are distorted here as their size has been modified without care for their aspect ratio. This could be changed with a few more lines.)diff --git a/docs/examples/dancing_knights.rst b/docs/examples/dancing_knights.rstdeleted file mode 100644index d762a174..00000000--- a/docs/examples/dancing_knights.rst+++ /dev/null@@ -1,16 +0,0 @@-==========================================-A reconstitution of 15th century dancing-==========================================--And now for something very silly...--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden;- margin-left: 5%;">- <iframe type="text/html" src="https://www.youtube.com/embed/Qu7HJrsEYFg" frameborder="0"- style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen>- </iframe>- </div>--.. literalinclude:: ../../examples/dancing_knights.pydiff --git a/docs/examples/example_with_sound.rst b/docs/examples/example_with_sound.rstdeleted file mode 100644index 5dcb3b2c..00000000--- a/docs/examples/example_with_sound.rst+++ /dev/null@@ -1,14 +0,0 @@-.. soundexample:--An example with sound---------------------------An example of using MoviePy to assemble movie clips with sounds. Here are two scenes of Charade put together:--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/gtyFuIoH7W0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--Here is the code:--.. literalinclude:: ../../examples/example_with_sound.pydiff --git a/docs/examples/examples.rst b/docs/examples/examples.rstdeleted file mode 100644index 98a9a5a5..00000000--- a/docs/examples/examples.rst+++ /dev/null@@ -1,28 +0,0 @@-.. _examples:--Example Scripts-===============--Here are a few example scripts to get you started. Most are quite old now and will be soon replaced.---.. toctree::- :maxdepth: 1-- moving_letters- dancing_knights- ukulele_concerto- example_with_sound- star_worms- masked_credits- painting_effect- compo_from_image- logo- headblur- quick_recipes- several_characters- the_end----diff --git a/docs/examples/headblur.rst b/docs/examples/headblur.rstdeleted file mode 100644index 1330234c..00000000--- a/docs/examples/headblur.rst+++ /dev/null@@ -1,12 +0,0 @@-========================================-Tracking and blurring someone's face-========================================--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/FWCKYTRCrBI" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--First we will need to track the face, i.e. to get two functions ``fx`` and ``fy`` such that ``(fx(t),fy(t))`` gives the position of the center of the head at time ``t``. This will be easily done with-`manual_tracking`. Then we will need to blur the area of the video around the center of the head.--.. literalinclude:: ../../examples/headblur.pydiff --git a/docs/examples/logo.rst b/docs/examples/logo.rstdeleted file mode 100644index 5a92143f..00000000--- a/docs/examples/logo.rst+++ /dev/null@@ -1,13 +0,0 @@-=================================-MoviePy logo with a moving shadow-=================================-.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/TG86KzL18NA" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--Here the logo is a picture, while the shadow is actually a black rectangle taking the whole screen, overlaid over the logo, but with a moving mask composed of a bi-gradient, such that only one (moving) part of the rectangle is visible.---And here is the code:--.. literalinclude:: ../../examples/logo.pydiff --git a/docs/examples/masked_credits.rst b/docs/examples/masked_credits.rstdeleted file mode 100644index 92519d34..00000000--- a/docs/examples/masked_credits.rst+++ /dev/null@@ -1,19 +0,0 @@-.. _mountainMask:--Partially Hidden credits--------------------------------------.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/NsTgBah6Ebk" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--Before seeing the code for this video, here is a tutorial video that explains the different steps (also made with MoviePy):--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/7tKABfc0Yzw" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>---And here is the code:--.. literalinclude:: ../../examples/masked_credits.pydiff --git a/docs/examples/moving_letters.rst b/docs/examples/moving_letters.rstdeleted file mode 100644index 4654a912..00000000--- a/docs/examples/moving_letters.rst+++ /dev/null@@ -1,13 +0,0 @@-=============================-Text with moving letters-=============================--I think this example illustrates well the interest of script-based editing (imagine doing that by hand).--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/jj5qrHl5ZS0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--Here is the code:--.. literalinclude:: ../../examples/moving_letters.pydiff --git a/docs/examples/painting_effect.rst b/docs/examples/painting_effect.rstdeleted file mode 100644index 638f2c2a..00000000--- a/docs/examples/painting_effect.rst+++ /dev/null@@ -1,29 +0,0 @@-=============================================-Freezing a movie frame with a painting effect-=============================================--That's an effect that we have seen a lot in westerns and such.--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/aC5CifkacSI" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--The recipe used to make a photo look like a painting:--- Find the edges of the image with the Sobel algorithm. You obtain- what looks like a black and white hand-drawing of the photo.-- Multiply the image array to make the colors flashier, and add the contours- obtained at the previous step.--The final clip will be the concatenation of three part: the part before-the effect, the part with the effect, and the part after the effect.-The part with the effect is obtained as follows:--- Take the frame to freeze and make a "painted image" of it. Make it a clip.-- Add a text clip saying "Audrey" to the "painted image" clip.-- Overlay the painted clip over the original frame, but make it appear and- disappear with a fading effect.--Here you are for the code:--.. literalinclude:: ../../examples/painting_effect.pydiff --git a/docs/examples/quick_recipes.rst b/docs/examples/quick_recipes.rstdeleted file mode 100644index 65c67dd4..00000000--- a/docs/examples/quick_recipes.rst+++ /dev/null@@ -1,65 +0,0 @@-Quick recipes-===============----Effects and filters------------------------Blurring all frames of a video-"""""""""""""""""""""""""""""""--::-- from skimage.filters import gaussian- from moviepy import VideoFileClip-- def blur(image):- """ Returns a blurred (radius=2 pixels) version of the image """- return gaussian_filter(image.astype(float), sigma=2)-- clip = VideoFileClip("my_video.mp4")- clip_blurred = clip.image_transform( blur )- clip_blurred.write_videofile("blurred_video.mp4")----Cutting videos------------------Scene detection--------------------Compositing videos----------------------Add a title before a video-"""""""""""""""""""""""""""---Art of Gif-making----------------------::-- clip.fx( vfx.time_symmetrize)-- # find a subclip- T = clip--Useless but fun--------------------Getting the average frame of a video-"""""""""""""""""""""""""""""""""""""-::-- from moviepy import VideoFileClip, ImageClip- clip = VideoFileClip("video.mp4")- fps = 1.0 # take one frame per second- total_image = sum(clip.iter_frames(fps, dtype=float, logger='bar'))- average_image = ImageClip(total_image / clip.n_frames)- average_image.save_frame("average_test.png")-diff --git a/docs/examples/several_characters.rst b/docs/examples/several_characters.rstdeleted file mode 100644index 3a383d45..00000000--- a/docs/examples/several_characters.rst+++ /dev/null@@ -1,11 +0,0 @@-.. char_duplication:--Character duplication in a video---------------------------------------.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/sZMyzzGlsc0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--So blabladiff --git a/docs/examples/star_worms.rst b/docs/examples/star_worms.rstdeleted file mode 100644index 7a41e3a2..00000000--- a/docs/examples/star_worms.rst+++ /dev/null@@ -1,16 +0,0 @@-A Star-Wars like opening title----------------------------------This is an approximate effect (the perspective would require some more complex transformations) but it is a nice exercise.--Warning: clip with sound.--Let us also have a look at this tutorial which shows the different steps:--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/5euLdo8L0o0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--And here you are for the code, and for the code of the tutorial.--.. literalinclude:: ../../examples/star_worms.pydiff --git a/docs/examples/the_end.rst b/docs/examples/the_end.rstdeleted file mode 100644index fb1fd09a..00000000--- a/docs/examples/the_end.rst+++ /dev/null@@ -1,16 +0,0 @@-======================-"The End" effect-======================--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/sZMyzzGlsc0" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--So let's explain this one: there is a clip with "The End" written in the middle, and *above* this-clip there is the actual movie. The actual movie has a mask which represents-a white (=opaque) circle on a black (=transparent) background. At the beginning,-that circle is so large that you see all the actual movie and you don't see-the "The End" clip. Then the circle becomes progressively smaller and as a-consequence you see less of the actual movie and more of the "The End" clip.--.. literalinclude:: ../../examples/the_end.pydiff --git a/docs/examples/ukulele_concerto.rst b/docs/examples/ukulele_concerto.rstdeleted file mode 100644index d5ec1b90..00000000--- a/docs/examples/ukulele_concerto.rst+++ /dev/null@@ -1,14 +0,0 @@-======================-A simple music video-======================--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/AqGZ4JFkQTU" frameborder="0" style="position: absolute; top: 0; bottom: 10; width: 90%; height: 100%;" allowfullscreen></iframe></div>--This is an example, with no sound (lame for a music video), soon to be-replaced with a real music video example (the code will be 99% the same).-The philosophy of MoviePy is that for each new music video I will make,-I will just have to copy/paste this code, and modify a few lines.--.. literalinclude:: ../../examples/ukulele_concerto.pydiff --git a/docs/gallery.rst b/docs/gallery.rstdeleted file mode 100644index de45c483..00000000--- a/docs/gallery.rst+++ /dev/null@@ -1,197 +0,0 @@-.. _gallery:---Gallery-========--Here are a few projects using MoviePy. The gallery will fill up as more people start using MoviePy (which is currently one year old). If you have a nice project using MoviePy let us know!--Videos edited with MoviePy-------------------------------The Cup Song Covers Mix-~~~~~~~~~~~~~~~~~~~~~~~~--This mix of 60 covers of the Cup Song demonstrates the non-linear video editing capabilities of MoviePy. Here is `the (undocumented) MoviePy code <https://nbviewer.ipython.org/github/Zulko/--video-editing---Cup-Song-Covers-Mix/blob/master/CupSongsCovers.ipynb>`_ that generated the video.--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden;- margin-left: 5%;">- <iframe width="560" height="315" src="https://www.youtube.com/embed/rIehsqqYFEM" frameborder="0" allowfullscreen></iframe>- </div>--The (old) MoviePy reel video.-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--Made when MoviePy was a few weeks old and not as good as now. The code for most scenes can be found-in the :ref:`examples`.--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;">- <iframe width="560" height="315" src="https://www.youtube.com/embed/zGhoZ4UBxEQ" frameborder="0" allowfullscreen>- </iframe>- </div>---Animations edited with MoviePy----------------------------------GIFs made from videos-~~~~~~~~~~~~~~~~~~~~~~~~~~~~--This `gifs tutorial-<https://zulko.github.io/blog/2014/01/23/making-animated-gifs-from-video-files-with-python/>`_ gives you the basics to make gifs from video files (cutting, croping, adding text...). The last example shows how to remove a (still) background to keep only the animated part of a video.---.. raw:: html-- <a href="https://imgur.com/Fo2BxBK"><img src="https://i.imgur.com/Fo2BxBK.gif" title="Hosted by imgur.com"- style="max-width:50%; height:'auto'; display:block; margin-left: auto;margin-right: auto; margin-bottom:30px;" /></a>--Vector Animations-~~~~~~~~~~~~~~~~~~~--This `vector animations tutorial <https://zulko.github.io/blog/2014/09/20/vector-animations-with-python/>`_ shows how to combine MoviePy with Gizeh to create animations:--.. raw:: html-- <a href="https://imgur.com/2YdW9yf"><img src="https://i.imgur.com/2YdW9yf.gif"- style="max-width:50%; height:'auto'; display:block; margin-left: auto;margin-right: auto; margin-bottom:30px;" /></a>---It is also possible to combine MoviePy with other graphic libraries like matplotlib, etc.---3D animations-~~~~~~~~~~~~~~~~~~~--This `3d animation tutorial <https://zulko.github.io/blog/2014/11/13/things-you-can-do-with-python-and-pov-ray/>`_ shows how to combine MoviePy with Vapory, a library to render 3D scenes using the free ray-tracer POV-Ray--.. raw:: html-- <a href="https://imgur.com/2YdW9yf"><img src="https://i.imgur.com/XN7e2IP.gif"- style="max-width:70%; height:'auto'; display:block; margin-left: auto;margin-right: auto; margin-bottom:30px;" /></a>---With Vapory and MoviePy you can for instance embed a movie in a 3D scene:---.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; margin-bottom:30px; overflow: hidden; margin-left: 5%;">- <iframe type="text/html" src="https://youtube.com/embed/M9R21SquDSk?rel=0" frameborder="0"- style="position: absolute; top: 0; bottom: 10; left: 0; width: 90%; height: 100%;">- </iframe>- </div>---Or render the result of this physics simulation made with PyODE (`script <https://gist.github.com/Zulko/f828b38421dfbee59daf>`_):--.. raw:: html-- <a href="https://imgur.com/2YdW9yf"><img src="https://i.imgur.com/TdhxwGz.gif"- style="max-width:70%; height:'auto'; display:block; margin-left: auto;margin-right: auto; margin-bottom:30px;" /></a>---Or use `this script <https://gist.github.com/Zulko/b910c8b22e8e1c01fae6>`_ to make piano animations from MIDI files (which are some sort of electronic sheet music):---.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; margin-bottom:30px; overflow: hidden; margin-left: 5%;">- <iframe type="text/html" src="https://youtube.com/embed/tCqQhmuwgMg?rel=0" frameborder="0"- style="position: absolute; top: 0; bottom: 10; left: 0; width: 90%; height: 100%;">- </iframe>- </div>--Data animations-------------------This `data animation tutorial <https://zulko.github.io/blog/2014/11/13/things-you-can-do-with-python-and-pov-ray/>`_ shows how to use MoviePy to animate the different Python visualization libraries: Mayavi, Vispy, Scikit-image, Matplotlib, etc.---Scientific or technological projects-----------------------------------------Piano rolls transcription to sheet music-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--This `transcribing piano rolls blog post <https://zulko.github.io/blog/2014/02/12/transcribing-piano-rolls/>`_ explains how to transform a video of a piano roll performance into playable sheet music. MoviePy is used for the frame-by-frame analysis of the piano roll video. The last video is also edited with MoviePy:--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; margin-bottom:30px; overflow: hidden; margin-left: 5%;">- <iframe width="560" height="315" src="https://www.youtube.com/embed/V2XCJNZjm4w" frameborder="0" allowfullscreen>- </iframe>- </div>----Misc. Programs and Scripts using MoviePy--------------------------------------------Kapwing-------------`Kapwing <https://www.kapwing.com/>`_ is an online video meme generator. Content creators use Kapwing to add text around their videos, which results in higher engagement / views on social media sites like Facebook. Kapwing's creation process is powered by MoviePy! MoviePy is used to add the text, borders, and attribution directly to the uploaded videos.--.. raw:: html-- <video src="https://cdn.kapwing.com/video_5e681ac49187d40016ee123e_579130.mp4?" controls style="max-width:70%; height:'auto'; display:block; margin-left: auto;margin-right: auto; margin-bottom:30px;"></video>---Rinconcam-------------`Rincomcam <http://www.rinconcam.com/month/2014-03>`_ is a camera which films surfers on the Californian beach of Point Rincon. At the end of each day it cuts together a video, puts it online, and tweets it. Everything is entirely automated with Python.-MoviePy is used to add transitions, titles and music to the videos.---.. raw:: html-- <a href="https://imgur.com/2YdW9yf"><img src="https://pbs.twimg.com/media/B2_NlnwCMAAingW.jpg"- style="max-width:70%; height:'auto'; display:block; margin-left: auto;margin-right: auto; margin-bottom:30px;" /></a>---Videogrep-------------Videogrep is a python script written by Sam Lavigne, that goes through the subtitle tracks of movies and makes supercuts based on what it finds. For instance, here is an automatic supercut of every time the White House press secretary tells us what he can tell us:--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;">- <iframe width="560" height="315" src="https://www.youtube.com/embed/D7pymdCU5NQ" frameborder="0" allowfullscreen>- </iframe>- </div>--Here are `Videogrep's introductory blog post-<http://lav.io/2014/06/videogrep-automatic-supercuts-with-python/>`_ and the Github `Videogrep page <https://github.com/antiboredom/videogrep/>`_.--If you liked it, also have a look at these Videogrep-inspired projects:--This `Videogrep blog post <https://zulko.github.io/blog/2014/06/21/some-more-videogreping-with-python/>`_ attempts to cut a video precisely at the beginning and end of sentences or words: ::-- words = ["Americans", "must", "develop", "open ", "source",- " software", "for the", " rest ", "of the world",- "instead of", " soldiers"]- numbers = [3,0,4,3,4,0,1,2,0,1,0] # take clip number 'n'-- cuts = [find_word(word)[n] for (word,n) in zip(words, numbers)]- assemble_cuts(cuts, "fake_speech.mp4")--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;">- <iframe type="text/html" src="https://youtube.com/embed/iWRYGULFd_c?rel=0" frameborder="0"- style="position: absolute; top: 0; bottom: 10; left: 0; width: 90%; height: 100%;">- </iframe>- </div>---This `other post <https://zulko.github.io/blog/2014/07/04/automatic-soccer-highlights-compilations-with-python/>`_ uses MoviePy to automatically cut together `all the highlights of a soccer game <http://youtu.be/zJtWPFX2bA0>`_, based on the fact that the crowd cheers louder when something interesting happens. All in under 30 lines of Python:-diff --git a/docs/FAQ.rst b/docs/getting_started/FAQ.rstsimilarity index 82%rename from docs/FAQ.rstrename to docs/getting_started/FAQ.rstindex c92ec508..56903801 100644--- a/docs/FAQ.rst+++ b/docs/getting_started/FAQ.rst@@ -1,32 +1,32 @@FAQ and troubleshooting=========================-This section will fill up as MoviePy advances through the next steps of-development (currently on the roadmap: MoviePy Studio, MoviePy WebApp, MoviePy OS, MoviePy-Trust Inc., and the MoviePy Charity Foundation).+This section intend to answer the most common questions and errors.Common errors that are not bugs--------------------------------These are very common errors which are not considered as bugs to besolved (but you can still ask for this to change). If these answers-don't work for you, please open a bug report on Github_, or on the dedicated forum on Reddit_, or on the librelist_.+don't work for you, please open a bug report on Github_, or on the dedicated forum on Reddit_.+MoviePy generated a video that cannot be read by my favorite player."""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""-Known reason: one of the video's dimensions were not even,for instance 720x405, and you used a MPEG4 codec like libx264 (defaultin MoviePy). In this case the video generated uses a format that isreadable only on some readers like VLC.+I can't seem to read any video with MoviePy""""""""""""""""""""""""""""""""""""""""""""""Known reason: you have a deprecated version of FFMPEG, install a recent version from thewebsite, not from your OS's repositories! (see :ref:`install`).+Previewing videos make them slower than they are"""""""""""""""""""""""""""""""""""""""""""""""""@@ -34,5 +34,4 @@ It means that your computer is not good enough to render the clip in real time... _Github: https://github.com/Zulko/moviepy.. _Reddit: https://www.reddit.com/r/moviepy/-.. _librelist: mailto:[email protected]diff --git a/docs/getting_started/audioclips.rst b/docs/getting_started/audioclips.rstdeleted file mode 100644index a7d97961..00000000--- a/docs/getting_started/audioclips.rst+++ /dev/null@@ -1,40 +0,0 @@-.. _audioclips:--Audio in MoviePy--------------------This section shows how to use MoviePy to create and edit audio clips.--Note that when you cut, mix or concatenate video clips in MoviePy the audio is automatically handled and you don't need to worry about it. This section is of interest if you just want to edit audiofiles or you want custom audio clips for your videos.--What audioclips are made of-~~~~~~~~~~~~~~~~~~~~~~~~~~~~--AudioClips are very similar to video clips in moviepy: they have a length, can be cut and composed the same way, etc. A notable difference be composed-``audioclip.get_frame(t)``--Creating a new audio clip-~~~~~~~~~~~~~~~~~~~~~~~~~~~--Audio clips can be created from an audio file or from the soundtrack of a video file ::-- from moviepy import *- audioclip = AudioFileClip("some_audiofile.mp3")- audioclip = AudioFileClip("some_video.avi")--for more, see :py:class:`~moviepy.audio.io.AudioFileClip.AudioFileClip`.--Alternatively you can get the audio track of an already created video clip ::-- videoclip = VideoFileClip("some_video.avi")- audioclip = videoclip.audio--Compositing audio clips-~~~~~~~~~~~~~~~~~~~~~~~~--Exporting and previewing audio clips-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--You can also export assign an audio clip as the soundtrack of a video clip with ::-- videoclip2 = videoclip.with_audio(my_audioclip)diff --git a/docs/getting_started/compositing.rst b/docs/getting_started/compositing.rstdeleted file mode 100644index 1afb2560..00000000--- a/docs/getting_started/compositing.rst+++ /dev/null@@ -1,134 +0,0 @@-.. _CompositeVideoClips:--Mixing clips-=============--Video composition, also known as non-linear editing, is the fact of playing several clips together in a new clip. This video is a good example of what compositing you can do with MoviePy:--.. raw:: html-- <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left:15%;">- <iframe type="text/html" src="https://youtube.com/embed/rIehsqqYFEM?rel=0" frameborder="0"- style="position: absolute; top: 0; bottom: 10; width: 70%; height: 100%; ">- </iframe>- </div>--Before starting, note that video clips generally carry an audio track and a mask, which are also clips. When you compose these clips together, the soundtrack and mask of the final clip are automatically generated by putting together the soundtracks and masks of the clips. So most of the time you don't need to worry about mixing the audio and masks.--Stacking and concatenating clips-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--Two simple ways of putting clips together is to concatenate them (to play them one after the other in a single long clip) or to stack them (to put them side by side in a single larger clip).--Concatenation is done with the function ``concatenate_videoclips``: ::-- from moviepy import VideoFileClip, concatenate_videoclips- clip1 = VideoFileClip("myvideo.mp4")- clip2 = VideoFileClip("myvideo2.mp4").subclip(50,60)- clip3 = VideoFileClip("myvideo3.mp4")- final_clip = concatenate_videoclips([clip1,clip2,clip3])- final_clip.write_videofile("my_concatenation.mp4")---The ``final_clip`` is a clip that plays the clips 1, 2, and 3 one after the other. Note that the clips do not need to be the same size. If they arent's they will all appear centered in a clip large enough to contain the biggest of them, with optionally a color of your choosing to fill the borders. You have many other options there (see the doc of the function). You can for instance play a transition clip between the clips with the option ``transition=my_clip``.--Stacking is done with ``clip_array``: ::-- from moviepy import VideoFileClip, clips_array, vfx- clip1 = VideoFileClip("myvideo.mp4").margin(10) # add 10px contour- clip2 = clip1.fx( vfx.mirror_x)- clip3 = clip1.fx( vfx.mirror_y)- clip4 = clip1.resize(0.60) # downsize 60%- final_clip = clips_array([[clip1, clip2],- [clip3, clip4]])- final_clip.resize(width=480).write_videofile("my_stack.mp4")--You obtain a clip which looks like this:--.. figure:: stacked.jpeg- :align: center---CompositeVideoClips-~~~~~~~~~~~~~~~~~~~~~--The `CompositeVideoClip` class provides a very flexible way to compose clips, but is more complex than ``concatenate_videoclips`` and ``clips_array`` ::-- video = CompositeVideoClip([clip1,clip2,clip3])--Now ``video`` plays ``clip1``, and ``clip2`` *on top of* ``clip1``, and ``clip3`` on top of ``clip1``, and ``clip2``. For instance, if ``clip2`` and ``clip3`` have the same size as ``clip1``, then only ``clip3``, which is on top, will be visible in the video... unless ``clip3`` and ``clip2`` have masks which hide parts of them. Note that by default the composition has the size of its first clip (as it is generally a *background*). But sometimes you will want to make your clips *float* in a bigger composition, so you will specify the size of the final composition as follows ::-- video = CompositeVideoClip([clip1,clip2,clip3], size=(720,460))--Starting and stopping times-""""""""""""""""""""""""""""--In a CompositionClip, all the clips start to play at a time that is specified by the ``clip.start`` attribute. You can set this starting time as follows: ::-- clip1 = clip1.with_start(5) # start after 5 seconds--So for instance your composition will look like ::-- video = CompositeVideoClip([clip1, # starts at t=0- clip2.with_start(5), # start at t=5s- clip3.with_start(9)]) # start at t=9s--In the example above, maybe ``clip2`` will start before ``clip1`` is over. In this case you can make ``clip2`` appear with a *fade-in* effect of one second: ::-- video = CompositeVideoClip([clip1, # starts at t=0- clip2.with_start(5).crossfadein(1),- clip3.with_start(9).crossfadein(1.5)])--Positioning clips-""""""""""""""""""--If ``clip2`` and ``clip3`` are smaller than ``clip1``, you can decide where they will appear in the composition by setting their position. Here we indicate the coordinates of the top-left pixel of the clips: ::-- video = CompositeVideoClip([clip1,- clip2.with_position((45,150)),- clip3.with_position((90,100))])--There are many ways to specify the position: ::-- clip2.with_position((45,150)) # x=45, y=150 , in pixels-- clip2.with_position("center") # automatically centered-- # clip2 is horizontally centered, and at the top of the picture- clip2.with_position(("center","top"))-- # clip2 is vertically centered, at the left of the picture- clip2.with_position(("left","center"))-- # clip2 is at 40% of the width, 70% of the height of the screen:- clip2.with_position((0.4,0.7), relative=True)-- # clip2's position is horizontally centered, and moving down!- clip2.with_position(lambda t: ('center', 50+t) )--When indicating the position keep in mind that the ``y`` coordinate has its zero at the top of the picture:--.. figure:: videoWH.jpeg--.. Transitions-.. --------------.. Everyone loves transitions between clips: fade-ins, fade-out, clips that slide in front of the previous one... everything is good to impress your grandparents.--.. In MoviePy, transitions are effects (see :ref:`effects`_) from the module moviepy.video.compositing.---Compositing audio clips----------------------------When you mix video clips together, MoviePy will automatically compose their respective audio tracks to form the audio track of the final clip, so you don't need to worry about compositing these tracks yourself.--If you want to make a custom audiotrack from several audio sources: audioc clips can be mixed together with ``CompositeAudioClip`` and ``concatenate_audioclips``: ::-- from moviepy import *- # ... make some audio clips aclip1, aclip2, aclip3- concat = concatenate_audioclips([aclip1, aclip2, aclip3])- compo = CompositeAudioClip([aclip1.multiply_volume(1.2),- aclip2.with_start(5), # start at t=5s- aclip3.with_start(9)])-diff --git a/docs/getting_started/effects.rst b/docs/getting_started/effects.rstdeleted file mode 100644index 76881151..00000000--- a/docs/getting_started/effects.rst+++ /dev/null@@ -1,101 +0,0 @@-.. _effects:--Clips transformations and effects-===================================--There are several categories of clip modifications in MoviePy:--- The very common methods to change the attributes of a clip: ``clip.with_duration``, ``clip.with_audio``, ``clip.with_mask``, ``clip.with_start`` etc.-- The already-implemented effects. Core effects like ``clip.subclip(t1, t2)`` (keep only the cut between t1 and t2), which are very important, are implemented as class methods. More advanced and less common effects like ``loop`` (makes the clip play in a loop) or ``time_mirror`` (makes the clip play backwards) are placed in the special modules ``moviepy.video.fx`` and ``moviepy.audio.fx`` and are applied with the ``clip.fx`` method, for instance ``clip.fx(time_mirror)`` (makes the clip play backwards), ``clip.fx(black_white)`` (turns the clip black and white), etc.-- The effects that you can create yourself using ``clip.fl``.--All these effects have in common that they are **not inplace**: they do NOT modify the original clip, instead they create a new clip that is a version of the former with the changes applied. For instance: ::-- my_clip = VideoFileClip("some_file.mp4")- my_clip.with_start(t=5) # does nothing, changes are lost- my_new_clip = my_clip.with_start(t=5) # good!--Also, when you write ``clip.resize(width=640)``, it does not immediately apply the effect to all the frames of the clip, but only to the first frame: all the other frames will be resized only when required (that is, when you will write the whole clip to a file of when you will preview it). Said otherwise, creating a new clip is neither time nor memory hungry, all the computations happen during the final rendering.--Time representations in MoviePy------------------------------------Many methods that we will see accept times as arguments. For instance ``clip.subclip(t_start,t_end)`` which cuts the clip between two times. For these methods, times can be represented either in seconds (``t_start=230.54``), as a couple (minutes, seconds) (``t_start=(3,50.54)``), as a triplet (hour, min, sec) (``t_start=(0,3,50.54)``) or as a string (``t_start='00:03:50.54')``).--Most of the time when the times are not provided they are guessed, for instance in ``clip.subclip(t_start=50)`` it is implied that ``t_end`` corresponds to the end of the clip, in ``clip.subclip(t_end=20)`` it is implied that t_start=0. If the time is negative it is considered as the time before the end of the clip: ``clip.subclip(-20, -10)`` cuts the clip between 20s before the end and 10s before the end.---Methods to change the clip attributes------------------------------------------clip.fx-------------Suppose that you have some functions implementing effects on clips, i.e. functions which, given a clip and some arguments, return a new clip: ::-- effect_1(clip, args1) -> new clip- effect_2(clip, args2) -> new clip- effect_3(clip, args3) -> new clip--where ``args`` represent arguments and/or keyword arguments. To apply these functions, in that order, to one clip, you would write something like ::-- newclip = effect_3( effect_2( effect_1(clip, args3), args2), args1)--but this is not easy to read. To have a clearer syntax you can use ``clip.fx``: ::-- newclip = (clip.fx( effect_1, args1)- .fx( effect_2, args2)- .fx( effect_3, args3))--Much better! There are already many effects implemented in the modules ``moviepy.video.fx`` and ``moviepy.audio.fx``. The fx methods in these modules are automatically applied to the sound and the mask of the clip if it is relevant, so that you don't have to worry about modifying these. For practicality, these two modules are loaded as ``vfx`` and ``afx``, so you may write something like ::-- from moviepy import *- clip = (VideoFileClip("myvideo.avi")- .fx( vfx.resize, width=460) # resize (keep aspect ratio)- .fx( vfx.multiply_speed, 2) # double the speed- .fx( vfx.multiply_color, 0.5)) # darken the picture--For convenience, fx methods such as ``resize`` can be called in a simpler way: ``clip.resize(...)`` instead of ``clip.fx( vfx.resize, ...)``---Methods to create custom effects-------------------------------------clip.transform-""""""""---You can modify a clip as you want using custom *filters* with ``clip.time_transform``, ``clip.image_transform``, and more generally with ``clip.transform``.--You can change the timeline of the clip with ``clip.time_transform`` like this: ::-- modifiedClip1 = my_clip.time_transform(lambda t: 3*t)- modifiedClip2 = my_clip.time_transform(lambda t: 1+sin(t))--Now the clip ``modifiedClip1`` plays the same as ``my_clip``, only three times faster, while ``modifiedClip2`` will play ``my_clip`` by oscillating between the times t=0s and t=2s. Note that in the last case you have created a clip of infinite duration (which is not a problem for the moment).--You can also modify the display of a clip with ``clip.image_transform``. The following takes a clip and inverts the green and blue channels of the frames: ::-- def invert_green_blue(image):- return image[:,:,[0,2,1]]-- modifiedClip = my_clip.image_transform( invert_green_blue )--Finally, you may want to process the clip by taking into account both the time and the frame picture. This is possible with the method ``clip.transform(filter)``. The filter must be a function which takes two arguments and returns a picture. The first argument is a ``get_frame`` method (i.e. a function ``gf(t)`` which given a time returns the clip's frame at that time), and the second argument is the time. ::-- def scroll(get_frame, t):- """- This function returns a 'region' of the current frame.- The position of this region depends on the time.- """- frame = get_frame(t)- frame_region = frame[int(t):int(t)+360,:]- return frame_region-- modifiedClip = my_clip.transform( scroll )--This will scroll down the clip, with a constant height of 360 pixels.--When programming a new effect, whenever it is possible, prefer using ``time_transform`` and ``image_transform`` instead of ``transform`` when implementing new effects. The reason is that, when these effects are applied to-ImageClips, MoviePy will recognize that these methods do not need to be applied to each frame, which will-result in faster renderings.diff --git a/docs/getting_started/efficient_moviepy.rst b/docs/getting_started/efficient_moviepy.rstdeleted file mode 100644index fc9dae01..00000000--- a/docs/getting_started/efficient_moviepy.rst+++ /dev/null@@ -1,127 +0,0 @@-.. _efficient:--How to be efficient with MoviePy-================================--This section gathers tips and tricks to help you make the most of what is already known worldwide as *the MoviePy experience*.--The best way to start with MoviePy is to use it with the IPython Notebook: it makes it easier to preview clips (as we will see in this section), has autocompletion, and can display the documentation for the different methods of the library.--.. _should_i_use_moviepy_editor:--Should I use ``moviepy.editor``?-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--Older versions of MoviePy always recommended importing from ``moviepy.editor``. In v2.0 and above this is no longer recommended and you should generally import directly from ``moviepy`` (for example, ``from moviepy import VideoFileClip``).-The module ``moviepy.editor`` should now only be loaded if you are using MoviePy to edit videos *by hand*. Importing it will:-- Start a pygame session to enable ``clip.show()`` and ``clip.preview()`` if pygame is installed-- Enable ``clip.ipython_display()`` if in an IPython Notebook-- Enable ``sliders()`` if Matplotlib is installed--.. _previewing:--When to close() a clip-~~~~~~~~~~~~~~~~~~~~~~--When you create some types of clip instances - e.g. ``VideoFileClip`` or ``AudioFileClip`` - MoviePy creates a subprocess and locks the file. In order to release those resources when you are finished you should call the ``close()`` method.--This is more important for more complex applications and is particularly important when running on Windows. While Python's garbage collector should eventually clean up the resources for you, closing them makes them available earlier.--However, if you close a clip too early, methods on the clip (and any clips derived from it) become unsafe.--So, the rules of thumb are:-- * Call ``close()`` on any clip that you **construct** once you have finished using it and have also finished using any clip that was derived from it.- * Even if you close a ``CompositeVideoClip`` instance, you still need to close the clips it was created from.- * Otherwise, if you have a clip that was created by deriving it from from another clip (e.g. by calling ``with_mask()``), then generally you shouldn't close it. Closing the original clip will also close the copy.--Clips act as `context managers <https://docs.python.org/3/reference/datamodel.html#context-managers>`_. This means you-can use them with a ``with`` statement, and they will automatically be closed at the end of the block, even if there is-an exception. ::-- with AudioFileClip("song.wav") as clip:- raise NotImplementedError("I will work out how process this song later")- # clip.close() is implicitly called, so the lock on song.wav file is immediately released.---The many ways of previewing a clip-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~---When you are editing a video or trying to achieve an effect with MoviePy through a trial and error process, generating the video at each trial can be very long. This section presents a few tricks to go faster.---clip.save_frame-"""""""""""""""""--Most of the time, just having one frame of the video can tell you if you are doing the right thing. You can save just one frame of the clip to a file as follows: ::-- my_clip.save_frame("frame.jpeg") # saves the first frame- my_clip.save_frame("frame.png", t=2) # saves the frame a t=2s--.. _clip_preview:--clip.show and clip.preview-""""""""""""""""""""""""""""--The methods ``clip.show`` and ``clip.preview`` enable you to visualise the clip in a Pygame window. They are the fastest way to preview, as the clips are generated and displayed at the same time, and they can be useful to get the coordinates or colors of pixels. These methods require to have PyGame installed, and to use the ``moviepy.editor`` module.--The method ``clip.show`` enables preview one frame of a clip without having to write it to a file: the following lines display the frame in a PyGame window ::-- my_clip.show() # shows the first frame of the clip- my_clip.show(10.5) # shows the frame of the clip at t=10.5s- my_clip.show(10.5, interactive = True)--The last line (with ``interactive=True``) displays the frame in an interactive way: if you click somewhere in the frame, it will print the position and color of the pixel. Press Escape to exit when you are done.--A clip can be previewed as follows ::-- my_clip.preview() # preview with default fps=15- my_clip.preview(fps=25)- my_clip.preview(fps=15, audio=False) # don't generate/play the audio.- my_audio_clip.preview(fps=22000)--If you click somewhere in the frames of a video clip being previewed, it will print the position and color of the pixel clicked. Press Escape abort the previewing.--Note that if the clip is complex and your computer not fast enough, the preview will appear slowed down compared to the real speed of the clip. In this case you can try to lower the frame rate (for instance to 10) or reduce the size of the clip with ``clip.resize``, it helps.--.. _ipython_display:--ipython_display-""""""""""""""""--Displaying the clips in a IPython Notebook can be very practical, especially if don't want to use ``clip.show()`` and ``clip.preview()``. Here is what it will look like:--.. image:: ../demo_preview.jpeg- :width: 500px- :align: center--With ``ipython_display`` you can embed videos, images and sounds, either from a file or directly from a clip: ::-- ipython_display(my_video_clip) # embeds a video- ipython_display(my_imageclip) # embeds an image- ipython_display(my_audio_clip) # embeds a sound-- ipython_display("my_picture.jpeg") # embeds an image- ipython_display("my_video.mp4") # embeds a video- ipython_display("my_sound.mp3") # embeds a sound--This will only work if ``ipython_display`` is on the last line a the notebook cell. You can also call ``ipython_display`` as a clip method: ::-- my_video_clip.ipython_display()--If the rendering of your clip requires to provide a frame rate, you can specify ``fps=25`` in ``ipython_display``.--If you only need to display a snapshot of a video clip at some time `t` you can write ::-- my_video_clip.ipython_display(t=15) # will display a snapshot at t=15s--You can also provide any valid HTML5 option as keyword argument. For instance, if the clip is too big, you will write ::-- ipython_display(my_clip, width=400) # HTML5 will resize to 400 pixels--For instance, when you are editing an animated GIF and want to check that it loops well, you can ask the video to start automatically and to loop (i.e. replay indefinitely) : ::-- ipython_display(my_clip, autoplay=1, loop=1)--Importantly, ``ipython_display`` actually embeds the clips physically in your notebook. The advantage is that you can move the notebook or put it online and the videos will work. The drawback is that the file size of the notebook can become very large. Depending on your browser, re-computing and displaying at video many times can take some place in the cache and the RAM (it will only be a problem for intensive uses). Restarting your browser solves the problem.diff --git a/docs/getting_started/getting_started.rst b/docs/getting_started/getting_started.rstdeleted file mode 100644index 39ad3f02..00000000--- a/docs/getting_started/getting_started.rst+++ /dev/null@@ -1,20 +0,0 @@-.. _getting_started:---Getting started with MoviePy----------------------------------These pages explain everything you need to start editing with MoviePy. To go further, have a look at the :ref:`gallery` and the :ref:`examples`.---.. toctree::- :maxdepth: 1-- quick_presentation- compositing- effects- efficient_moviepy- working_with_matplotlib- audioclips- videoclipsdiff --git a/docs/getting_started/index.rst b/docs/getting_started/index.rstnew file mode 100644index 00000000..2f99f8e7--- /dev/null+++ b/docs/getting_started/index.rst@@ -0,0 +1,16 @@+.. _getting_started:++Getting started with MoviePy+------------------------------++This section explain everything you need to start editing with MoviePy. To go further, have a look at the :ref:`user_guide` and the :ref:`reference_manual`.+++.. toctree::+ :maxdepth: 1++ install+ quick_presentation+ moviepy_10_minutes+ FAQ+diff --git a/docs/getting_started/install.rst b/docs/getting_started/install.rstnew file mode 100644index 00000000..1da619fb--- /dev/null+++ b/docs/getting_started/install.rst@@ -0,0 +1,92 @@+.. _install:++Installation+==========================++Installation is done with ``pip`` if you dont have ``pip`` take a look at `how to install it <https://pip.pypa.io/en/stable/installation/>`_.++With ``pip`` installed, just type this in a terminal :++.. code:: bash++ $ (sudo) pip install moviepy+++.. _install#binaries:++Installation of additional binaries+------------------------------------++MoviePy depends on the software ffmpeg_ for video reading and writing and on ``ffplay`` for video previewing.++You don't need to worry about ffmpeg_, as it should be automatically downloaded/installed by ImageIO during your first use of MoviePy (it takes a few seconds).++You do need to worry ``ffplay`` if you plan on using video/audio previewing though. In such case, make sure to have ``ffplay`` installed (it can usually be found alongside ``ffmpeg``) and+make sure it is accessible to Python, or look how to set a custom path (see below).++++Define custom paths to binaries+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++If you want to use a specific version of FFMPEG and FFPLAY, you can do so using environment variables.++There are a couple of environment variables used by MoviePy that allow you to configure custom paths to the external tools.++To setup any of these variables, the easiest way is to do it in Python before importing objects from MoviePy. For example:++.. code-block:: python++ import os+ os.environ["FFMPEG_BINARY"] = "/path/to/custom/ffmpeg"+ os.environ["FFPLAY_BINARY"] = "/path/to/custom/ffplay"+++Alternatively, after installing the optional dependencies, you can create+a ``.env`` file in your working directory that will be automatically read.+For example++.. code-block:: ini++ FFMPEG_BINARY=/path/to/custom/ffmpeg+ FFPLAY_BINARY=/path/to/custom/ffplay+++Environment variables+"""""""""""""""""""""""++There are 2 available environment variables for external binaries :++``FFMPEG_BINARY``+ Normally you can leave it to its default ('ffmpeg-imageio') in which+ case imageio will download the right ffmpeg binary (on first use) and then always use that binary.++ The second option is ``"auto-detect"``. In this case ffmpeg will be whatever+ binary is found on the computer: generally ``ffmpeg`` (on Linux/macOS) or ``ffmpeg.exe`` (on Windows).++ Lastly, you can set it to use a binary at a specific location on your disk by specifying the exact path.+++``FFPLAY_BINARY``+ The default is ``"auto-detect"``. MoviePy will try to find and use the installed ``ffplay`` binary.++ You can set it to use a binary at a specific location on your disk. On Windows, this might look like::++ os.environ["FFPLAY_BINARY"] = r"C:\Program Files\ffmpeg\ffplay.exe"+++Verify if MoviePy find binaries+""""""""""""""""""""""""""""""""+To test if FFmpeg and FFplay are found by MoviePy, in a Python console, you can run :++.. code-block:: python++ >>> from moviepy.config import check+ >>> check()++.. _ffmpeg: https://www.ffmpeg.org/download.html+.. _imageio: https://imageio.github.io/++++diff --git a/docs/getting_started/ipynb_example.jpeg b/docs/getting_started/ipynb_example.jpegdeleted file mode 100644index 8256573f..00000000Binary files a/docs/getting_started/ipynb_example.jpeg and /dev/null differdiff --git a/docs/getting_started/moviepy_10_minutes.rst b/docs/getting_started/moviepy_10_minutes.rstnew file mode 100644index 00000000..e72a65a2--- /dev/null+++ b/docs/getting_started/moviepy_10_minutes.rst@@ -0,0 +1,271 @@+.. _moviepy_10_minutes:++MoviePy in 10 Minutes: Creating a Trailer from "Big Buck Bunny"+===============================================================++.. note::+ This tutorial aim at beeing a simple and short introduction for new users whishing to use MoviePy, for a more in-depth exploration of the concepts seens in this tutorial see :ref:`user_guide`.++In this tutorial, you will learn the basics of how to use the MoviePy library in just 10 minutes. As an example project for this tutorial we will create the following trailer for the movie `"Big Buck Bunny." <https://peach.blender.org/>`_.++.. raw:: html++ <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;">+ <video controls>+ <source src="/_static/medias/moviepy_10_minutes/tailer_bbb.mp4" type="video/mp4">+ <p>Votre navigateur ne prend pas en charge les vidéos HTML5 au format mp4.</p>+ </video>+ </div>+++Prerequisites+-------------++Before we start, make sure you have MoviePy installed. You can install it using pip:++.. code-block:: shell++ pip install moviepy+++Also, we will need to gather a few resources such as the original movie, font files, images, etc.+To make it easy we have prepared a template project you can download directly:++1. Download :download:`the project template </_static/medias/getting_started/moviepy_10_minutes/moviepy_10_minutes.zip>` and unzip it.+2. Take a look at the resources inside the folder to familiarize yourself.+3. Create a Python script file named ``trailer.py`` in the project directory.++Now, you are ready to proceed to the next steps.++Step 1: Import MoviePy and Load the Video+-----------------------------------------++Let's start by importing the necessary modules and loading the "Big Buck Bunny" video into our Python program:++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 0-10++As you see, loading a video file is really easy, but MoviePy ain't limited to video though, it can handle just as well images, audio, texts and even custom animations.++No matter the kind of resources though, ultimatly any clip will be either an :py:class:`~moviepy.video.VideoClip.VideoClip` for any visual element, and an :py:class:`~moviepy.audio.AudioClip.AudioClip` for any audio element.++In this tutorial we will only see a few of thoses, but if you want to explore more, you can find an exhaustive list in the user guide about :ref:`loading`.++Step 2: Extract the Best Scenes+-------------------------------++To create our trailer, we will focus on presenting the main characters, to do so we need to extract parts of the movie.+This is a very classic task, so lets turn our main clip into multiple subclips:++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 13-23+++Here, we use the ``with_subclip`` method to extract specific scenes from the main video. We provide the start and end times (in seconds or as text with format ``HH:MM:SS.µS``) for each scene.+The extracted clips are stored in their respective variables (``intro_clip``, ``bird_clip``, etc.).+++Step 3: Take a first look with preview+--------------------------------------++When editing videos, it's often essential to preview the clips to ensure they meet our vision. This allows you to watch the segment you're working on and make any necessary adjustments for the perfect result.++To do so using MoviePy, you can utilize the ``preview()`` function available for each clip (the complementary ``audio_preview()`` is also available for :py:class:`~moviepy.audio.AudioClip.AudioClip`).++.. note::+ Note that you will need ``ffplay`` installed and accessible to MoviePy for preview to works. You check if ``ffplay`` is available by running the command ``python3 -c "from moviepy.config import check;check()"``.+ If not, please see :ref:`install#binaries`.++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 26-36++by using the preview, you may have noticed that our clips not only contain video, but also audio. This is because when loading a video, you not only load the image, but also the audio tracks that are turned into :py:class:`~moviepy.audio.AudioClip.AudioClip` and+added to your video clip.++.. note::+ When previewing, you may encounter video slowing or video/audio shifting, this is not a bug, this is due to the fact your computer cannot render the preview in real time.+ In such case, the best course of action is to set the ``fps`` parameter for the ``preview()`` at a lower value to make things easy on your machine.+++Step 4: Modify a clip by cutting out a part of it+--------------------------------------------------++After previewing the clips, we notice that the rodents scene is a bit long. Let's modify the clip by removing a specific part. It would be nice to remove parts of the scene that we dont need, this is also quite a common task in video-editing.+To do so, we are going to use the ``with_cutout`` method to remove a portion of the clip between ``00:06:00`` to ``00:10:00``.++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 39-52++In that particular case we have used the ``with_cutout``, but this is only one of the many clip manipulation method starting by ``with_*``, we will see a few others+in this tutorial, but we will miss a lot more, if you want an exhaustive list, go see :ref:`reference_manual`.++.. note::+ You may have noticed that we have reassign the ``rodents_clip`` variable instead of just calling method on it.+ This is because in MoviePy any function starting by ``with_*`` is out-place instead of in-place meaning it does not modify the original data, but instead copy it and modify/return the copy.+ So you need to store the result of the method and if necessary reassign the original variable to update your clip.+++Step 5: Creating Text/Logo Clips+--------------------------------++In addition to video, we often want to work with images and texts. MoviePy offer some specialized kind of :py:class:`~moviepy.video.VideoClip.VideoClip` just for that, ``ImageClip`` and ``TextClip``.++In our case, we want to create text clips to add text overlays between the video clips. We'll define the font, text content, font size, and color for each text clip.+We also want to create image clips, for the "Big Buck Bunny" logo and the "Made with MoviePy" logo, and resize them as needed.++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 54-68++As you may see, ``ImageClip`` are quite simple, but ``TextClip`` are rather complicated objects, do not hesitate to go and have a deeper look at the arguments it accept.++.. note::+ In our example we have used the ``resized()`` method to resize our image clips. This method works just like any ``with_*`` method, but because resizing is such a common+ task, the name have been shortened to ``resized()``. The same is true for ``cropped()`` and ``rotated()``.++.. code-block:: python++ slow_motion_video = trimmed_video.fx(vfx.speedx, 0.5) # Slow down the video by 2x+ final_video = slow_motion_video.crossfadein(1) # Add a crossfade transition++Feel free to experiment with different effects and transitions to achieve the desired trailer effect.+++Step 6: Timing the clips+--------------------------++We have all the clips we needs, but if we was to turn all thoses clips into a single one with composition (we will see that during next step) all our clips would start at the same time and play on top of each other, which is obviously not what we want.+Also, some video clips, like the images and texts, have no endpoint/duration at creation (except if you have provided a duration parameter), which mean trying to render them will throw an error as it would result into an infinite video.++To fix that, we need to say when a clip should start and stop in the final clip. So, lets start by telling when each clip must start and end with appropriate with_* methods++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 71-89++.. note::+ By default all clips have a startpoint at ``0``, if a clip has no duration but you set the ``endtime``, then the duration will be calculated for you. The reciprocity is also true.++ So in our case we either use duration or endtime, depending on what is the more practical to use for each specific case.++Step 7: See how all clips combine+---------------------------------++Now that all our clips are timed, lets have a first idea of how our final clip will look like. In video edition, the fact of assembling multiple video into a single one is known as composition.+So, MoviePy offer a special kind of :py:class:`~moviepy.video.VideoClip.VideoClip` dedicated to the act of combining multiple clips into one, the :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip`.++:py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip` take an array of clip in entry and will play thoses on top of each other at render time, starting and stopping to play each clip at his start and end points.++.. note::+ If it can, :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip` will extract endpoint and size from the bigger/last ending clip, if a clip in the list have no duration then you will have to manually set :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip` duration before rendering.++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 92-99+++Step 8: Positionning our clips+------------------------------++By looking at this first preview, we see that our clips are pretty well timed, but that the position of our texts and logo are absolutely not satisfiying.++This is because for now we have only say when our clip should appear, and not the position at which they should appear. By default all clips are positionned from the top left of the video, at ``(0, 0)``.++All our clips does not have the same sizes (the texts and images are smaller than the videos), and the :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip` take the size of the biggest clip (so in our case the size of the videos),+so the texts and images are all in the top left portion of the clip.++To fix this, we simply have to define the position of our clips in the composition with the method ``with_position``.++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 102-122++.. note::+ The position is a tuple with horizontal and vertical position. You can give them as pixels, as strings (``top``, ``left``, ``right``, ``bottom``, ``center``) and even as percentage by providing+ a float and passing the argument ``relative=True``.++Now, all our clips are in the right place and timed as expected.+++Step 9: Adding transition and effects+-------------------------------------++So, our clips are timed and placed, but for now the result is quite raw, it would be nice to have smoother transitions between the clips.+In MoviePy, this is achieved through the used of effects.++Effects play a crucial role in enhancing the visual and auditory appeal of your video clips. Effects are applied to clips to create transitions, transformations, or modifications, resulting in better-looking videos.+Whether you want to add smooth transitions between clips, alter visual appearance, or manipulate audio properties, MoviePy come with many already existing effects to help you bring your creative vision to life with ease.++You can find thoses effects under the namespace ``vfx`` for video effects and ``afx`` for audio effects.++.. note::+ You can use audio effects on both audio and video clips, because when applying audio effects to a video clip, the effect will actually be applied to video clip's embedded audio clip instead.++Using an effect is very simple, you just have to call the method ``with_effects`` on your clip and pass him an array of object effects to apply.++In our case, we will add simple fade-in/out and cross-fade-in/out transitions between our clips, as well as slow down the ``rambo_clip``.++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 125-160++Well, this is a lot nicer! For this tutorial we want to keep things simple, so we mostly used transitions, but you can find a lot a differents effects, and even create your own.+For a deeper presentation, see :py:mod:`moviepy.video.fx`, :py:mod:`moviepy.audio.fx` and :ref:`create_effects`.++.. note::+ Looking at the result, you may see that crossfading makes clip go from transparent to opaque, and reciprocally, and wonder how it works.++ We wont get into details, but know that in MoviePy you can declare some section of a video clip to be transparent by using masks. Masks are no more than+ special kind of video clips that are made of value ranging from ``0`` for a transparent pixel to ``1`` for a fully opaque one.++ For more info, see :ref:`loading#masks`.+++Step 10: Modifying apparence of a clip using filters+-----------------------------------------------------++Finally, to make it more epic we will apply a custom filter to our rambo clip to make the image sepia.+MoviePy does not come with a sepia effect out of the box, and creating a full custom effect is out of this tutorial scope, but we will see how we can apply a simple filter on our clip using the ``image_transform`` method.++To understand how filter works, you first need to understand that in MoviePy, a clip frame is nothing more than a numpy ``ndarray`` of shape ``HxWx3``.+This mean we can modify how a frame looks like by applying simple math operations. Do that on all the frames and you have applyed a filter to your clip!++The "apply to all frames" part is done by the ``image_transform`` method. This method take a callback function as an argument, and at render time will trigger the callback for each frame of the clip, passing it the current frame.++.. warning::+ This is a bit of an advanced usage and the example involves matrix multiplication. If this is too much for you, you can simply ignore it until you really need to make custom filter,+ then go look for a more detailed explanation on how to do filtering (:ref:`modifying#filters`) and create custom effects (:ref:`create_effects`) in the user guide.++ What you need to remember is just that we can apply filter on image. Here we do it mathematically, but you could very well use a library such as pillow (provided it can understand numpy image) to do the maths for you!+++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 163-202+++Step 11: Rendering the final clip to a file+--------------------------------------------++So, our final clip is ready, we have made all the cutting and modifications we want, we are know ready to save the final result into a file. In video editing, this operation+is known as rendering.++Again, we will keep things simple and just do video rendering whithout much tweaking. in most cases, MoviePy and FFMPEG automagicaly find the best settings. Take a look at ``write_videofile`` doc for more info+++.. literalinclude:: /_static/code/getting_started/moviepy_10_minutes/trailer.py+ :language: python+ :lines: 205-211+++Conclusion+----------++Congratulations! You have successfully created a trailer from the movie "Big Buck Bunny" using the MoviePy library. This tutorial covered the basics of MoviePy, including loading videos, trimming scenes, adding effects and transitions, overlaying text, and even a little bit of filter.++If you want to dig deeper into MoviePy, we encourage you to try and experiment from this base example, by using different effects, transitions, and audio elements to make your trailer truly captivating.+We also encourage you to go and read the :ref:`user_guide`, as well as looking directly at the :ref:`reference_manual`.diff --git a/docs/getting_started/quick_presentation.rst b/docs/getting_started/quick_presentation.rstindex 71c6f3b4..da68f00e 100644--- a/docs/getting_started/quick_presentation.rst+++ b/docs/getting_started/quick_presentation.rst@@ -36,50 +36,40 @@ For the limitations: MoviePy cannot (yet) stream videos (read from a webcam, orExample code~~~~~~~~~~~~~~-In a typical MoviePy script, you load video or audio files, modify them, put them together, and write the final result to a new video file. As an example, let us load a video of my last holidays, lower the volume, add a title in the center of the video for the first ten seconds, and write the result in a file: ::+In a typical MoviePy script, you load video or audio files, modify them, put them together, and write the final result to a new video file. As an example, let us load a video, lower the volume, add a title in the center of the video for the first ten seconds, and write the result in a file:- # Import everything needed to edit video clips- from moviepy import *-- # Load myHolidays.mp4 and select the subclip 00:00:50 - 00:00:60- clip = VideoFileClip("myHolidays.mp4")- clip = clip.subclip(50, 60) # or just clip[50:60]-- # Reduce the audio volume (volume x 0.8)- clip = clip.multiply_volume(0.8)-- # Generate a text clip. You can customize the font, color, etc.- txt_clip = TextClip("My Holidays 2013", fontsize=70, color="white")-- # Say that you want it to appear 10s at the center of the screen- txt_clip = txt_clip.with_position('center').with_duration(10)-- # Overlay the text clip on the first video clip- video = CompositeVideoClip([clip, txt_clip])-- # Write the result to a file (many options available!)- video.write_videofile("myHolidays_edited.webm")+.. literalinclude:: /_static/code/getting_started/quick_presentation/basic_example.py+ :language: pythonHow MoviePy works~~~~~~~~~~~~~~~~~~~-MoviePy uses the software ``ffmpeg`` to read and to export video and audio files. It also (optionally) uses ImageMagick to generate texts and write GIF files. The processing of the different media is ensured by Python's fast numerical library Numpy. Advanced effects and enhancements use some of Python's numerous image processing libraries (PIL, Scikit-image, scipy, etc.).+MoviePy uses the software ``ffmpeg`` to read and to export video and audio files. It also (optionally) uses ``ffplay`` to allow for video previewing.-.. image:: explanations.jpeg+Internally, the representation and manipulation of the different media is done using Python's fast numerical library Numpy. Advanced effects and enhancements also use ``pillow`` library.++.. image:: /_static/medias/getting_started/explanations.jpeg:width: 570px:align: center-Basic concepts-~~~~~~~~~~~~~~~-The central objects of MoviePy are *clips*, which can be ``AudioClips`` or ``VideoClips``. They can be modified (cut, slowed down, darkened...) or put mixed with clips to form new clips, they can be previewed (using either PyGame or the IPython Notebook) and rendered to a file (as a MP4, a GIF, a MP3, etc.). ``VideoClips`` for instance can be created from a video file, an image, a text, or a custom animation. They can have an audio track (which is an ``AudioClip``) and a mask (a special ``VideoClip`` indicating which parts of the clip to hide when the clip is mixed with other clips). See :ref:`videoclips` and :ref:`CompositeVideoClips` for more details.+The central concept, the clips+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++The central object of MoviePy is the :py:class:`the clips <moviepy.Clip.Clip>`, with either :py:class:`~moviepy.audio.AudioClip.AudioClip` for any audio element, or :py:class:`~moviepy.video.VideoClip.VideoClip` for any visual element. Clips really are the base unit of MoviePy, everything you do is with and on them.++Clips can be created from more than just videos or audios though. They can also be created from an image, a text, a custom animation, a folder of images, and even a simple lambda function !-A clip can be modified using one of moviepy's numerous effects (like in ``clip.resize(width="360")``, ``clip.subclip(t1,t2)``, or ``clip.fx(vfx.black_white)``) or using a user-implemented effect. MoviePy implements many functions (like ``clip.fl``, ``clip.fx``, etc.) which make it very easy to code your own effect in a few lines. See :ref:`effects` for more.+To create your final video, what you will do is essentially :-You will also find a few advanced goodies in ``moviepy.video.tools`` to track objects in a video, draw simple shapes and color gradients (very useful for masks), generate subtitles and end credits, etc. See :ref:`advancedtools` for a description of these.+#. Load different resources as clips (see :ref:`loading`)+#. Modify them (see :ref:`modifying`)+#. Mixing them into one final clip (see :ref:`compositing`)+#. Render them into a file (see :ref:`rendering`)++Of course, MoviePy offer multiple handy solution and tools to facilitate all thoses steps, and let you add new ones by writing your own effects (see :ref:`create_effects`) !-Finally, although MoviePy has no graphical user interface, there are many ways to preview a clip which allow you to fine-tune your scripts and be sure that everything is perfect when you render you video in high quality. See :ref:`efficient`... _imageio: https://imageio.github.io/.. _OpenCV: http://opencv.org/@@ -88,4 +78,3 @@ Finally, although MoviePy has no graphical user interface, there are many ways t-diff --git a/docs/getting_started/videoclips.rst b/docs/getting_started/videoclips.rstdeleted file mode 100644index 9e994853..00000000--- a/docs/getting_started/videoclips.rst+++ /dev/null@@ -1,202 +0,0 @@-.. _videoclips:--Creating and exporting video clips-===================================--Video and audio clips are the central objects of MoviePy. In this section we present the different sorts of clips, how to create them, and how to write them to a file. For information on modifying a clip (cuts, effects, etc.), see :ref:`effects`. For how to put clips together see :ref:`CompositeVideoClips` and to see how to preview clips before writing a file, refer to :ref:`efficient`.--The following code summarizes the base clips that you can create with moviepy: ::-- # VIDEO CLIPS- clip = VideoClip(make_frame, duration=4) # for custom animations (see below)- clip = VideoFileClip("my_video_file.mp4") # or .avi, .webm, .gif ...- clip = ImageSequenceClip(['image_file1.jpeg', ...], fps=24)- clip = ImageClip("my_picture.png") # or .jpeg, .tiff, ...- clip = TextClip("Hello!", font="Amiri-Bold", fontsize=70, color="black")- clip = ColorClip(size=(460,380), color=[R,G,B])-- # AUDIO CLIPS- clip = AudioFileClip("my_audiofile.mp3") # or .ogg, .wav... or a video!- clip = AudioArrayClip(numpy_array, fps=44100) # from a numerical array- clip = AudioClip(make_frame, duration=3) # uses a function make_frame(t)----The best to understand these clips is to read the full documentation for each in the :ref:`reference_manual`. The next sections-In this section we see how to create clips, (for instance from video or audio files), how to mix them together, and how to write them to a file.----Categories of video clips-~~~~~~~~~~~~~~~~~~~~~~~~~~--Video clips are the building blocks of longer videos. Technically, they are clips with a ``clip.get_frame(t)`` method which outputs a HxWx3 numpy array representing the frame of the clip at time *t*. There are two main categories: animated clips (made with ``VideoFileClip`` and ``VideoClip``) and unanimated clips which show the same picture for an a-priori infinite duration (``ImageClip``, ``TextClip``, ``ColorClip``). There are also special video clips call masks, which belong to the categories above but output greyscale frames indicating which parts of another clip are visible or not. A video clip can carry around an audio clip (``clip.audio``) which is its *soundtrack*, and a mask clip.--VideoClip-""""""""""--``VideoClip`` is the base class for all the other video clips in MoviePy. If all you want is to edit video files, you will never need it. This class is practical when you want to make animations from frames that are generated by another library. All you need is to define a function ``make_frame(t)`` which returns a HxWx3 numpy array (of 8-bits integers) representing the frame at time t. Here is an example with the graphics library Gizeh: ::-- import gizeh- import moviepy as mpy-- WIDTH, HEIGHT = (128, 128)-- def make_frame(t):- surface = gizeh.Surface(WIDTH, HEIGHT)- radius = WIDTH * (1 + (t * (2 - t)) ** 2) / 6 # radius varies over time- circle = gizeh.circle(radius, xy=(64, 64), fill=(1, 0, 0))- circle.draw(surface)- return surface.get_npimage() # returns a 8-bit RGB array-- clip = mpy.VideoClip(make_frame, duration=2) # 2 seconds- clip.write_gif("circle.gif", fps=15)--.. image:: circle.gif- :width: 128 px- :align: center--Note that clips made with a `make_frame` do not have an explicit frame rate, so you must provide a frame rate (``fps``, frames er second) for ``write_gif`` and ``write_videofile``, and more generally for any methods that requires iterating through the frames.--VideoFileClip-"""""""""""""""--A VideoFileClip is a clip read from a video file (most formats are supported) or a GIF file. You load the video as follows: ::-- myclip = VideoFileClip("some_video.avi")- myclip = VideoFileClip("some_animation.gif")--Note that these clips will have an ``fps`` (frame per second) attribute, which will be transmitted if you do small modifications of the clip, and will be used by default in ``write_videofile``, ``write_gif``, etc. For instance: ::-- myclip = VideoFileClip("some_video.avi")- print (myclip.fps) # prints for instance '30'- # Now cut the clip between t=10 and 25 secs. This conserves the fps.- myclip2 = myclip.subclip(10, 25)- myclip2.write_gif("test.gif") # the gif will have 30 fps---For more, see :py:class:`~moviepy.video.io.VideoFileClip.VideoFileClip`.--ImageSequenceClip-""""""""""""""""""--This is a clip made from a series of images, you call it with ::-- clip = ImageSequenceClip(images_list, fps=25)--where ``images_list`` can be either a list of image names (that will be *played*) in that order, a folder name (at which case all the image files in the folder will be played in alphanumerical order), or a list of frames (Numpy arrays), obtained for instance from other clips.--When you provide a folder name or list of file names, you can choose ``load_images=True`` to specify that all images should be loaded into the RAM. This is only interesting if you have a small number of images that will be each used more than once (e.g. if the images form a looping animation).--ImageClip-""""""""""--An ImageClip is a video clip that always displays the same image. You can create one as follows: ::-- myclip = ImageClip("some_picture.jpeg")- myclip = ImageClip(somme_array) # a (height x width x 3) RGB numpy array- myclip = some_video_clip.to_ImageClip(t='01:00:00') # frame at t=1 hour.--For more, see :py:class:`~moviepy.video.VideoClip.ImageClip`.--Two examples of ImageClip shown below are the TextClip and ColorClip--TextClip-"""""""""""""""--Generating a TextClip requires to have ImageMagick installed and (for windows users) linked to MoviePy, see the installation instructions.--Here is how you make a textclip (you won't need all these options all the time): ::-- myclip = TextClip("Hello", font='Amiri-Bold')---The font can be any font installed on your computer, but ImageMagick will have specific names for it. For instance the *normal* Amiri font will be called ``Amiri-Regular`` while the Impact font will be called ``Impact-Normal``. To get a list of the possible fonts, type ``TextClip.list('font')``. To find all the font names related to a given font, use for instance ::-- TextClip.search('Amiri', 'font') # Returns all font names containing Amiri--Note also that the use of a stroke (or contour) will not work well on small letters, so if you need a small text with a contour, it is better to generate a big text, then downsize it: ::-- myclip = TextClip("Hello", fontsize=70, stroke_width=5).resize(height=15)---TextClips have many, many options: alignment, kerning (distance between the letters), stroke size, background, word wrapping, etc. see :py:class:`~moviepy.video.VideoClip.TextClip` for more.---Mask clips-~~~~~~~~~~~~~~--A mask is a special video clip which indicates which pixels will be visible when a video clip carrying this mask will be composed with other video clips (see :ref:`CompositeVideoClips`). Masks are also used to define transparency when you export the clip as GIF file or as a PNG.--The fundamental difference between masks and standard clips is that standard clips output frames with 3 components (R-G-B) per pixel, comprised between 0 and 255, while a mask has just one composant per pixel, between 0 and 1 (1 indicating a fully visible pixel and 0 a transparent pixel). Seen otherwise, a mask is always in greyscale.--When you create or load a clip that you will use as a mask you need to declare it: ::-- maskclip = VideoClip(makeframe, duration=4, is_mask=True)- maskclip = ImageClip("my_mask.jpeg", is_mask=True)- maskclip = VideoFileClip("myvideo.mp4", is_mask=True)--In the case of video and image files, if these are not already black and white they will be converted automatically.--Then you attach this mask to a clip (which must have the same dimensions) with ``myclip.with_mask(maskclip)``.--Some image formats like PNG support transparency with an *alpha layer*, which MoviePy will use as a mask: ::-- myclip = ImageClip("image.png", transparent=True) # True is the default- myclip.mask # <- the alpha layer of the picture.--Any video clip can be turned into a mask with ``clip.to_mask()``, and a mask can be turned to a standard RGB video clip with ``my_mask_clip.to_RGB()``.---Masks are treated differently by many methods (because their frames are different) but you can do with a mask pretty much everything you can do with a standard clip: you can cut it, edit it, preview it, write it to a video file, make snapshots, etc.--.. _renderingAClip:--Exporting video clips-~~~~~~~~~~~~~~~~~~~~~~~--Video files (.mp4, .webm, .ogv...)-""""""""""""""""""""""""""""""""""""--To write a clip as a video file, use ::-- my_clip.write_videofile("movie.mp4") # default codec: 'libx264', 24 fps- my_clip.write_videofile("movie.mp4",fps=15)- my_clip.write_videofile("movie.webm") # webm format- my_clip.write_videofile("movie.webm",audio=False) # don't render audio.--MoviePy has default codec names for the most common file extensions. If you want to use exotic formats or if you are not happy with the defaults you can provide the codec with ``codec='mpeg4'`` for instance. There are many many options when you are writing a video (bitrate, parameters of the audio writing, file size optimization, number of processors to use, etc.). Please refer to :py:meth:`~moviepy.video.VideoClip.VideoClip.write_videofile` for more.---Sometimes it is impossible for MoviePy to guess the ``duration`` attribute of the clip (keep in mind that some clips, like ImageClips displaying a picture, have *args priori* an infinite duration). Then, the ``duration`` must be set manually with ``clip.with_duration``: ::-- # Make a video showing a flower for 5 seconds- my_clip = ImageClip("flower.jpeg") # has infinite duration- my_clip.write_videofile("flower.mp4") # Will fail! NO DURATION!- my_clip.with_duration(5).write_videofile("flower.mp4") # works!---Animated GIFs-""""""""""""""--To write your video as an animated GIF, use ::-- my_clip.write_gif('test.gif', fps=12)--Note that this requires ImageMagick installed. Otherwise you can also create the GIF with ffmpeg by adding the option ``program='ffmpeg'``, it will be much faster but won't look as nice and won't be optimized.--There are many options to optimize the quality and size of a gif. Please refer to :py:meth:`~moviepy.video.VideoClip.VideoClip.write_gif`.--Note that for editing gifs the best way is to preview them in the notebook as explained here: :ref:`ipython_display`--For examples of use, see `this blog post <https://zulko.github.io/blog/2014/01/23/making-animated-gifs-from-video-files-with-python>`_ for information on making GIFs from video files, and `this other post <https://zulko.github.io/blog/2014/09/20/vector-animations-with-python/>`_ for GIF animations with vector graphics.--Export images-"""""""""""""""--You can write a frame to an image file with ::-- myclip.save_frame("frame.png") # by default the first frame is extracted- myclip.save_frame("frame.jpeg", t='01:00:00') # frame at time t=1h--If the clip has a mask it will be exported as the alpha layer of the image unless you specify ``with_mask=False``.diff --git a/docs/getting_started/working_with_matplotlib.rst b/docs/getting_started/working_with_matplotlib.rstdeleted file mode 100644index c9dc684d..00000000--- a/docs/getting_started/working_with_matplotlib.rst+++ /dev/null@@ -1,75 +0,0 @@--Working with `matplotlib`-=========================--Defining custom animations-~~~~~~~~~~~~~~~~~~~~~~~~~~--MoviePy allows you to produce custom animations by defining a function that returns a frame at a given time of the animation in the form of a numpy array.--An example of this workflow is below: ::-- from moviepy import VideoClip-- def make_frame(t):- """Returns an image of the frame for time t."""- # ... create the frame with any library here ...- return frame_for_time_t # (Height x Width x 3) Numpy array-- animation = VideoClip(make_frame, duration=3) # 3-second clip--This animation can then be exported by the usual MoviePy means: ::-- # export as a video file- animation.write_videofile("my_animation.mp4", fps=24)- # export as a GIF- animation.write_gif("my_animation.gif", fps=24) # usually slower--Simple `matplotlib` example-~~~~~~~~~~~~~~~~~~~~~~~~~~~--An example of an animation using `matplotlib` can then be as follows: ::-- import matplotlib.pyplot as plt- import numpy as np- from moviepy import VideoClip- from moviepy.video.io.bindings import mplfig_to_npimage-- x = np.linspace(-2, 2, 200)-- duration = 2-- fig, ax = plt.subplots()- def make_frame(t):- ax.clear()- ax.plot(x, np.sinc(x**2) + np.sin(x + 2*np.pi/duration * t), lw=3)- ax.set_ylim(-1.5, 2.5)- return mplfig_to_npimage(fig)-- animation = VideoClip(make_frame, duration=duration)- animation.write_gif('matplotlib.gif', fps=20)---Working in the Jupyter Notebook-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--If you are working inside a Jupyter Notebook, you can take advantage of the fact that VideoClips can be embedded in the output cells of the notebook with the `ipython_display` method. The above example then becomes: ::-- import matplotlib.pyplot as plt- import numpy as np- from moviepy.editor import VideoClip- from moviepy.video.io.bindings import mplfig_to_npimage-- x = np.linspace(-2, 2, 200)-- duration = 2-- fig, ax = plt.subplots()- def make_frame(t):- ax.clear()- ax.plot(x, np.sinc(x**2) + np.sin(x + 2*np.pi/duration * t), lw=3)- ax.set_ylim(-1.5, 2.5)- return mplfig_to_npimage(fig)-- animation = VideoClip(make_frame, duration=duration)- animation.ipython_display(fps=20, loop=True, autoplay=True)\ No newline at end of filediff --git a/docs/index.rst b/docs/index.rstindex 5007c37c..274bb6e2 100644--- a/docs/index.rst+++ b/docs/index.rst@@ -1,40 +1,112 @@+:notoc:-.. image:: logo.png+***********************+MoviePy documentation+***********************++.. image:: /_static/medias/logo.png:width: 50%:align: center-.. MoviePy-.. =======+**Date**: |today| **Version**: |version|+**Useful links**:+`Binary Installers <https://pypi.org/project/moviepy/>`__ |+`Source Repository <https://github.com/Zulko/moviepy>`__ |+`Issues & Ideas <https://github.com/Zulko/moviepy>`__ |+`Q&A Support <https://www.reddit.com/r/moviepy/>`__ |+MoviePy is the `Python <https://www.python.org/>`__ reference tool for video editing automation!-MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video compositing (a.k.a. non-linear editing), video processing, or to create advanced effects. It can read and write the most common video formats, including GIF.+It's an open source, MIT-licensed library offering user-friendly video editing+and manipulation tools for the `Python <https://www.python.org/>`__ programming language.-Here it is in action (run in an IPython Notebook):+.. grid:: 1 2 2 2+ :gutter: 4+ :padding: 2 2 0 0+ :class-container: sd-text-center-.. image:: demo_preview.jpeg- :width: 500px- :align: center+ .. grid-item-card:: Getting started+ :img-top: _static/medias/index_getting_started.svg+ :class-card: intro-card+ :shadow: md++ New to *MoviePy*? Check out the getting started guides. They contain instructions+ to install *MoviePy'* as well as introduction concepts and tutorials.++ +++++ .. button-ref:: getting_started+ :ref-type: ref+ :click-parent:+ :color: secondary+ :expand:++ To the starting guide++ .. grid-item-card:: User guide+ :img-top: _static/medias/index_user_guide.svg+ :class-card: intro-card+ :shadow: md++ The user guide provides in-depth information on the+ key concepts of *MoviePy* with useful background information and explanation.++ +++++ .. button-ref:: user_guide+ :ref-type: ref+ :click-parent:+ :color: secondary+ :expand:++ To the user guide++ .. grid-item-card:: API reference+ :img-top: _static/medias/index_api.svg+ :class-card: intro-card+ :shadow: md++ The reference guide contains a detailed description of+ the *MoviePy* API. The reference describes how the methods work and which parameters can+ be used. It assumes that you have an understanding of the key concepts.++ +++++ .. button-ref:: reference_manual+ :ref-type: ref+ :click-parent:+ :color: secondary+ :expand:++ To the reference guide++ .. grid-item-card:: Developer guide+ :img-top: _static/medias/index_contribute.svg+ :class-card: intro-card+ :shadow: md++ Saw a typo in the documentation? Want to improve+ existing functionalities? The contributing guidelines will guide+ you through the process of improving moviepy.++ +++++ .. button-ref:: developer_guide+ :ref-type: ref+ :click-parent:+ :color: secondary+ :expand:++ To the development guide-User Guide--------------.. toctree::- :maxdepth: 1- install- getting_started/getting_started- gallery- examples/examples- docker- FAQ- advanced_tools/advanced_tools- ref/refContribute!---------------MoviePy is an open source software originally written by Zulko_ and released under the MIT licence. It works on Windows, Mac, and Linux, with Python 2 or Python 3. The code is hosted on Github_, where you can push improvements, report bugs and ask for help. There is also a MoviePy forum on Reddit_ and a mailing list on librelist_.+MoviePy is an open source software originally written by Zulko_ and released under the MIT licence. It works on Windows, Mac, and Linux... raw:: html@@ -48,14 +120,23 @@ MoviePy is an open source software originally written by Zulko_ and released und<iframe type="text/html" src="https://ghbtns.com/github-btn.html?user=Zulko&repo=moviepy&type=watch&count=true&size=large"allowtransparency="true" frameborder="0" scrolling="0" width="152px" height="30px"></iframe>-.. <a href="https://github.com/Zulko/moviepy">-.. <img style="position: absolute; top: 0; right: 0; border: 0;"-.. src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"-.. alt="Fork me on GitHub"></a>+++.. toctree::+ :maxdepth: 3+ :hidden:+ :titlesonly:+++ getting_started/index+ user_guide/index+ reference/index+ developer_guide/index+ docker+.. _PyPI: https://pypi.python.org/pypi/moviepy.. _Zulko: https://github.com/Zulko/.. _Stackoverflow: https://stackoverflow.com/.. _Github: https://github.com/Zulko/moviepy-.. _Reddit: https://www.reddit.com/r/moviepy/-.. _librelist: mailto:[email protected]+.. _Reddit: https://www.reddit.com/r/moviepy/\ No newline at end of filediff --git a/docs/install.rst b/docs/install.rstdeleted file mode 100644index 734094e9..00000000--- a/docs/install.rst+++ /dev/null@@ -1,136 +0,0 @@-.. _install:--Download and Installation-==========================---Installation-----------------**Method with pip:** if you have ``pip`` installed, just type this in a terminal--.. code:: bash-- $ (sudo) pip install moviepy--If you have neither ``setuptools`` nor ``ez_setup`` installed the command above will fail. In this case type the following before installing:--.. code:: bash-- $ (sudo) pip install setuptools--**Method by hand:** Download the sources, either on PyPI_ or (if you want the development version) on Github_, unzip everything in one folder, open a terminal and type--.. code:: bash-- $ (sudo) python setup.py install--MoviePy depends on the Python modules NumPy_, Imageio_, Decorator_, and Proglog_, which will be automatically installed during MoviePy's installation. It should work on Windows/macOS/Linux, with Python 3.6+. If you have trouble installing MoviePy or one of its dependencies, please provide feedback in a Github issue!--MoviePy depends on the software FFMPEG for video reading and writing. You don't need to worry about that, as FFMPEG should be automatically downloaded/installed by ImageIO during your first use of MoviePy (it takes a few seconds). If you want to use a specific version of FFMPEG, you can set the-`FFMPEG_BINARY` environment variable.---Other optional but useful dependencies-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--You can install ``moviepy`` with all dependencies via:--.. code:: bash-- $ (sudo) pip install moviepy[optional]---ImageMagick_ is not strictly required, but needed if you want to use TextClips_. It can also be used as a backend for GIFs, though you can also create GIFs with MoviePy without ImageMagick.--Once you have installed ImageMagick, MoviePy will try to autodetect the path to its executable. If it fails, you can still configure it by setting environment variables.--PyGame_ is needed for video and sound previews (useless you intend to work with MoviePy on a server but really essential for advanced video editing *by hand*).--For advanced image processing you will need one or several of these packages. For instance using the method ``clip.resize`` requires that at least one of Scipy, PIL, Pillow or OpenCV are installed.--- The Python Imaging Library (PIL) or, better, its branch Pillow_ .-- Scipy_ is needed for tracking, segmenting, etc., and can be used for resizing video clips if PIL and OpenCV aren't installed on your computer.-- `Scikit Image`_ may be needed for some advanced image manipulation.-- `OpenCV`_ (provides the package ``cv2``) may be needed for some advanced image manipulation.--If you are on Linux, these packages will likely be in your repos.--For Ubuntu 16.04LTS users, after installing MoviePy on the terminal, ImageMagick may not be detected by MoviePy. This bug can be fixed. Modify the file ``/etc/ImageMagick-6/policy.xml`` commenting out the statement::-- <!-- <policy domain="path" rights="none" pattern="@*" /> -->---Custom paths to external tools-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--There are a couple of environment variables used by MoviePy that allow you-to configure custom paths to the external tools.--To setup any of these variables, the easiest way is to do it in Python before importing objects from MoviePy. For example:--.. code-block:: python-- import os- os.environ["FFMPEG_BINARY"] = "/path/to/custom/ffmpeg"---Alternatively, after installing the optional dependencies, you can create-a ``.env`` file in your working directory that will be automatically read.-For example--.. code-block:: ini-- FFMPEG_BINARY=/path/to/custom/ffmpeg---There are 2 available environment variables:--``FFMPEG_BINARY``- Normally you can leave it to its default ('ffmpeg-imageio') in which- case imageio will download the right ffmpeg binary (on first use) and then always use that binary.-- The second option is ``"auto-detect"``. In this case ffmpeg will be whatever- binary is found on the computer: generally ``ffmpeg`` (on Linux/macOS) or ``ffmpeg.exe`` (on Windows).-- Lastly, you can set it to use a binary at a specific location on your disk by specifying the exact path.---``IMAGEMAGICK_BINARY``- The default is ``"auto-detect"``.-- You can set it to use a binary at a specific location on your disk. On Windows, this might look like::-- os.environ["IMAGEMAGICK_BINARY"] = r"C:\Program Files\ImageMagick-6.8.8-Q16\magick.exe"-- Note: If you are using a legacy version of ImageMagick, the executable could be ``convert.exe`` instead.---To test if FFmpeg and ImageMagick are found by MoviePy, in a Python console run:--.. code-block:: python-- >>> from moviepy.config import check- >>> check()--.. _`Numpy`: https://www.scipy.org/install.html-.. _decorator: https://pypi.python.org/pypi/decorator-.. _proglog: https://pypi.org/project/proglog/--.. _ffmpeg: https://www.ffmpeg.org/download.html--.. _TextClips: https://zulko.github.io/moviepy/ref/VideoClip/VideoClip.html#textclip--.. _imageMagick: https://www.imagemagick.org/script/index.php-.. _Pygame: https://www.pygame.org/download.shtml-.. _imageio: https://imageio.github.io/--.. _Pillow: https://pillow.readthedocs.org/en/latest/-.. _Scipy: https://www.scipy.org/-.. _`Scikit Image`: http://scikit-image.org/download.html--.. _Github: https://github.com/Zulko/moviepy-.. _PyPI: https://pypi.python.org/pypi/moviepy-.. _`OpenCV`: https://github.com/skvark/opencv-python--diff --git a/docs/logo.png b/docs/logo.pngdeleted file mode 100644index 29d9b34c..00000000Binary files a/docs/logo.png and /dev/null differdiff --git a/docs/ref/AudioClip.rst b/docs/ref/AudioClip.rstdeleted file mode 100644index 56187c1f..00000000--- a/docs/ref/AudioClip.rst+++ /dev/null@@ -1,31 +0,0 @@-.. ref_AudioClip:--************-AudioClip-************--:class:`AudioClip`-==========================--.. autoclass:: moviepy.audio.AudioClip.AudioClip- :members:- :inherited-members:- :show-inheritance:--:class:`AudioFileClip`-==========================--.. autoclass:: moviepy.audio.io.AudioFileClip.AudioFileClip- :members:- :inherited-members:- :show-inheritance:---:class:`CompositeAudioClip`-================================--.. autoclass:: moviepy.audio.AudioClip.CompositeAudioClip- :members:- :inherited-members:- :show-inheritance:-diff --git a/docs/ref/Clip.rst b/docs/ref/Clip.rstdeleted file mode 100644index bac02813..00000000--- a/docs/ref/Clip.rst+++ /dev/null@@ -1,11 +0,0 @@-************-Clip-************--:class:`Clip`-==========================--.. autoclass:: moviepy.Clip.Clip- :members:- :inherited-members:- :show-inheritance:diff --git a/docs/ref/VideoClip/VideoClip.rst b/docs/ref/VideoClip/VideoClip.rstdeleted file mode 100644index c68108d8..00000000--- a/docs/ref/VideoClip/VideoClip.rst+++ /dev/null@@ -1,65 +0,0 @@-.. ref_VideoClip:--***********************- Classes of Video Clips-***********************----:class:`VideoClip`-==========================--.. autoclass:: moviepy.video.VideoClip.VideoClip- :members:- :inherited-members:- :show-inheritance:----:class:`VideoFileClip`---------------------------.. autoclass:: moviepy.video.io.VideoFileClip.VideoFileClip- :members:- :inherited-members:- :show-inheritance:----:class:`ImageClip`-------------------------.. autoclass:: moviepy.video.VideoClip.ImageClip- :members:- :inherited-members:- :show-inheritance:----:class:`ColorClip`---------------------.. autoclass:: moviepy.video.VideoClip.ColorClip- :members:- :inherited-members:- :show-inheritance:---:class:`TextClip`------------------------.. autoclass:: moviepy.video.VideoClip.TextClip- :members:- :inherited-members:- :show-inheritance:----:class:`CompositeVideoClip`----------------------------------.. autoclass:: moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip- :members:- :inherited-members:- :show-inheritance:-diff --git a/docs/ref/audiofx.rst b/docs/ref/audiofx.rstdeleted file mode 100644index 4edb6245..00000000--- a/docs/ref/audiofx.rst+++ /dev/null@@ -1,47 +0,0 @@-.. ref_audiofx:--************-audio.fx-************---The module ``moviepy.audio.fx`` regroups functions meant to be used with ``audio.fx()``.-Note that some of these functions such as ``multiply_volume`` (which multiplies the volume) can-be applied directly to a video clip, at which case they will affect the audio clip attached to this-video clip. Read the docs of the different functions to know when this is the case.--Because this module will be larger in the future, it allows two kinds of import.-You can either import a single function like this: ::-- from moviepy.audio.fx.multiply_volume import multiply_volume- newaudio = audioclip.fx(multiply_volume, 0.5)--Or import everything: ::-- import moviepy.audio.fx.all as afx- newaudio = (audioclip.afx( vfx.normalize)- .afx( vfx.multiply_volume, 0.5)- .afx( vfx.audio_fadein, 1.0)- .afx( vfx.audio_fadeout, 1.0))----When you type ::-- from moviepy import *--the module ``audio.fx`` is loaded as ``afx`` and you can use ``afx.multiply_volume``, etc.---.. currentmodule:: moviepy.audio.fx.all--.. autosummary::- :toctree: audiofx- :nosignatures:-- audio_delay- audio_fadein- audio_fadeout- audio_normalize- multiply_stereo_volume- multiply_volumediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.audio_delay.rst b/docs/ref/audiofx/moviepy.audio.fx.all.audio_delay.rstdeleted file mode 100644index 043714bb..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.audio_delay.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.audio_delay-================================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: audio_delay\ No newline at end of filediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.audio_fadein.rst b/docs/ref/audiofx/moviepy.audio.fx.all.audio_fadein.rstdeleted file mode 100644index b31e5bd3..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.audio_fadein.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.audio_fadein-=================================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: audio_fadein\ No newline at end of filediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.audio_fadeout.rst b/docs/ref/audiofx/moviepy.audio.fx.all.audio_fadeout.rstdeleted file mode 100644index 2f8cc361..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.audio_fadeout.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.audio_fadeout-==================================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: audio_fadeout\ No newline at end of filediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.audio_normalize.rst b/docs/ref/audiofx/moviepy.audio.fx.all.audio_normalize.rstdeleted file mode 100644index a5cc3c77..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.audio_normalize.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.audio_normalize-==================================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: audio_normalizediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.multiply_stereo_volume.rst b/docs/ref/audiofx/moviepy.audio.fx.all.multiply_stereo_volume.rstdeleted file mode 100644index 2286e032..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.multiply_stereo_volume.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.multiply_stereo_volume-===========================================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: multiply_stereo_volume\ No newline at end of filediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.multiply_volume.rst b/docs/ref/audiofx/moviepy.audio.fx.all.multiply_volume.rstdeleted file mode 100644index 8cff192a..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.multiply_volume.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.multiply_volume-====================================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: multiply_volume\ No newline at end of filediff --git a/docs/ref/audiofx/moviepy.audio.fx.all.volumex.rst b/docs/ref/audiofx/moviepy.audio.fx.all.volumex.rstdeleted file mode 100644index 3dfb113d..00000000--- a/docs/ref/audiofx/moviepy.audio.fx.all.volumex.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.audio.fx.all.volumex-============================--.. currentmodule:: moviepy.audio.fx.all--.. autofunction:: volumex\ No newline at end of filediff --git a/docs/ref/audiotools.rst b/docs/ref/audiotools.rstdeleted file mode 100644index 3309b674..00000000--- a/docs/ref/audiotools.rst+++ /dev/null@@ -1,7 +0,0 @@-.. ref_audiotools:--************-audio.tools-************--Currently emptydiff --git a/docs/ref/bideotools_gradient.jpeg b/docs/ref/bideotools_gradient.jpegdeleted file mode 100644index 2c609b70..00000000Binary files a/docs/ref/bideotools_gradient.jpeg and /dev/null differdiff --git a/docs/ref/code_origanization.rst b/docs/ref/code_origanization.rstdeleted file mode 100644index d83cdae5..00000000--- a/docs/ref/code_origanization.rst+++ /dev/null@@ -1,23 +0,0 @@-.. _codeorganization:--Organization of MoviePy's code-===============================--This reviews the folders and files in moviepy's code. It's very easy:--At the root of the project you have everything required for the packaging and installation of moviepy (README, setup.py, LICENCE) etc. Then you the ``docs/`` folder with the source code of the documentation, a folder for some :ref:`examples`, and the main folder ``moviepy/`` for the source code of the library itself.--The folder ``moviepy/`` the classes and modules relative to the video and the audio are clearly separated into two subfolders ``video/`` and ``audio/``. In ``moviepy/`` you will find all the classes, functions and decorations which are useful to both submodules ``audio`` and ``video``:--- ``Clip.py`` defines the base object for ``AudioClip`` and ``VideoClip`` and the simple methods that can be used by both, like ``clip.subclip``, ``clip.with_duration``, etc.-- Files ``config.py`` and ``config_defaults.py`` store the default paths to the external programs FFMPEG and ImageMagick.-- ``decorators.py`` provides very useful decorators that automate some tasks, like the fact that some effects, when applied to a clip, should also be applied to it's mask, or to its audio track.-- ``tools.py`` provides misc. functions that are useful everywhere in the library, like a standardized call to subprocess, a time converter, a standardized way to print messages in the console, etc.-- ``editor.py`` is a helper module to easily load and initiate many functionalities of moviepy (see :ref:`efficient` for more details)--The submodules ``moviepy.audio`` and ``moviepy.video`` are organized approximately the same way: at their root they implement base classes (respectively ``AudioClip`` and ``VideoClip``) and they have the following submodules:--- ``io`` contains everything required to read files, write files, preview the clip or use a graphical interface of any sort. It contains the objects that speak to FFMEG and ImageMagick, the classes AudioFileClip and VideoFileClip, the functions used to preview a clip with pygame or to embed a video in HTML5 (for instance in the IPython Notebook).-- ``fx`` contains a collection of effects and filters (like turning a video black and white, correcting luminosity, zooming or creating a scrolling effect). To add an effect to MoviePy, you simply add a new file ``my_effect.py`` to this folder, and in the file you define the function ``my_effect(clip, *other_parameters)``.-- ``compositing`` contains functions and classes to compose videoclips (CompositeVideoClip, concatenate_videoclips, clips_array)-- ``tools`` contains advanced tools that are not effects but can help edit clips or generate new clips (tracking, subtitles, etc.)\ No newline at end of filediff --git a/docs/ref/decorators.rst b/docs/ref/decorators.rstdeleted file mode 100644index ac280866..00000000--- a/docs/ref/decorators.rst+++ /dev/null@@ -1,11 +0,0 @@-.. ref_decorators:--************-Decorators-************-These decorators are implemented to ease the writing of methods and effects in MoviePy--.. automodule:: moviepy.decorators- :members:- :inherited-members:- :show-inheritance:diff --git a/docs/ref/ffmpeg.rst b/docs/ref/ffmpeg.rstdeleted file mode 100644index 1cd125a3..00000000--- a/docs/ref/ffmpeg.rst+++ /dev/null@@ -1,10 +0,0 @@-.. _ffmpegTools:--FFMPEG tools-------------------------------.. automodule:: moviepy.video.io.ffmpeg_tools- :members:- :inherited-members:- :undoc-members:- :show-inheritance:diff --git a/docs/ref/ref.rst b/docs/ref/ref.rstdeleted file mode 100644index c2541e3c..00000000--- a/docs/ref/ref.rst+++ /dev/null@@ -1,23 +0,0 @@-.. _reference_manual:---Reference Manual-================--The documentation may be a little messy for the moment, it will get better with time.-If you want to hack into the code or locate a particular function, read :ref:`codeorganization` .---.. toctree::- :maxdepth: 3-- Clip- VideoClip/VideoClip- AudioClip- videofx- audiofx- videotools- audiotools- ffmpeg- decorators- code_origanizationdiff --git a/docs/ref/videofx.rst b/docs/ref/videofx.rstdeleted file mode 100644index 2dbf4885..00000000--- a/docs/ref/videofx.rst+++ /dev/null@@ -1,68 +0,0 @@-.. _refvideofx:--***********************-moviepy.video.fx (vfx)-***********************-The module ``moviepy.video.fx`` regroups functions meant to be used with ``videoclip.fx()``.--For all other modifications, we use ``clip.fx`` and ``clip.fl``. ``clip.fx`` is meant to make it easy to use already-written transformation functions, while ``clip.fl`` makes it easy to write new transformation functions.--Because this module is starting to get large and will only get larger in the future, it allows two kinds of imports. You can either import a single function like this: ::-- from moviepy.video.fx.scroll import crop- newclip = myclip.fx( vfx.crop, x1=15)--Or import everything: ::-- import moviepy.video.fx.all as vfx- newclip = (myclip.fx( vfx.crop, x1=15)- .fx( vfx.resize, width=200)- .fx( vfx.freeze_at_end, 1))---When you type: ::-- from moviepy import *--the module ``video.fx`` is loaded as ``vfx`` and you can use ``vfx.multiply_color``, ``vfx.resize`` etc.---.. currentmodule:: moviepy.video.fx.all--.. autosummary::- :toctree: videofx- :nosignatures:-- accel_decel- blackwhite- blink- crop- even_size- fadein- fadeout- freeze- freeze_region- gamma_corr- headblur- invert_colors- loop- lum_contrast- make_loopable- margin- mask_and- mask_color- mask_or- mirror_x- mirror_y- multiply_color- multiply_speed- painting- resize- rotate- scroll- supersample- time_mirror- time_symmetrize---diff --git a/docs/ref/videofx/moviepy.video.fx.all.accel_decel.rst b/docs/ref/videofx/moviepy.video.fx.all.accel_decel.rstdeleted file mode 100644index 4e499db3..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.accel_decel.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.accel\_decel-=====================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: accel_decel\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.blackwhite.rst b/docs/ref/videofx/moviepy.video.fx.all.blackwhite.rstdeleted file mode 100644index 536d9cd7..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.blackwhite.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.blackwhite-===============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: blackwhite\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.blink.rst b/docs/ref/videofx/moviepy.video.fx.all.blink.rstdeleted file mode 100644index 5b34427a..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.blink.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.blink-==========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: blink\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.crop.rst b/docs/ref/videofx/moviepy.video.fx.all.crop.rstdeleted file mode 100644index ad26f98e..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.crop.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.crop-=========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: crop\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.even_size.rst b/docs/ref/videofx/moviepy.video.fx.all.even_size.rstdeleted file mode 100644index 364bff04..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.even_size.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.even\_size-===================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: even_size\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.fadein.rst b/docs/ref/videofx/moviepy.video.fx.all.fadein.rstdeleted file mode 100644index f34b418b..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.fadein.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.fadein-===========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: fadein\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.fadeout.rst b/docs/ref/videofx/moviepy.video.fx.all.fadeout.rstdeleted file mode 100644index 07806384..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.fadeout.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.fadeout-============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: fadeout\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.freeze.rst b/docs/ref/videofx/moviepy.video.fx.all.freeze.rstdeleted file mode 100644index 209f488e..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.freeze.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.freeze-===========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: freeze\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.freeze_region.rst b/docs/ref/videofx/moviepy.video.fx.all.freeze_region.rstdeleted file mode 100644index b4466e31..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.freeze_region.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.freeze\_region-=======================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: freeze_region\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.gamma_corr.rst b/docs/ref/videofx/moviepy.video.fx.all.gamma_corr.rstdeleted file mode 100644index afb22d4c..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.gamma_corr.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.gamma_corr-===============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: gamma_corr\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.headblur.rst b/docs/ref/videofx/moviepy.video.fx.all.headblur.rstdeleted file mode 100644index 3bdcdd36..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.headblur.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.headblur-=============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: headblur\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.invert_colors.rst b/docs/ref/videofx/moviepy.video.fx.all.invert_colors.rstdeleted file mode 100644index dfee9180..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.invert_colors.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.invert\_colors-=======================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: invert_colors\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.loop.rst b/docs/ref/videofx/moviepy.video.fx.all.loop.rstdeleted file mode 100644index aa03c45d..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.loop.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.loop-=========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: loop\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.lum_contrast.rst b/docs/ref/videofx/moviepy.video.fx.all.lum_contrast.rstdeleted file mode 100644index 1c6d1362..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.lum_contrast.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.lum_contrast-=================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: lum_contrast\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.make_loopable.rst b/docs/ref/videofx/moviepy.video.fx.all.make_loopable.rstdeleted file mode 100644index 45ff3def..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.make_loopable.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.make_loopable-==================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: make_loopable\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.margin.rst b/docs/ref/videofx/moviepy.video.fx.all.margin.rstdeleted file mode 100644index d3f331e3..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.margin.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.margin-===========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: margin\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.mask_and.rst b/docs/ref/videofx/moviepy.video.fx.all.mask_and.rstdeleted file mode 100644index ccb643de..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.mask_and.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.mask\_and-==================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: mask_and\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.mask_color.rst b/docs/ref/videofx/moviepy.video.fx.all.mask_color.rstdeleted file mode 100644index c64b4180..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.mask_color.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.mask\_color-====================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: mask_color\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.mask_or.rst b/docs/ref/videofx/moviepy.video.fx.all.mask_or.rstdeleted file mode 100644index 9351c96b..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.mask_or.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.mask\_or-=================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: mask_or\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.mirror_x.rst b/docs/ref/videofx/moviepy.video.fx.all.mirror_x.rstdeleted file mode 100644index d63b281e..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.mirror_x.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.mirror_x-=============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: mirror_x\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.mirror_y.rst b/docs/ref/videofx/moviepy.video.fx.all.mirror_y.rstdeleted file mode 100644index 5b5aeadd..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.mirror_y.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.mirror_y-=============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: mirror_y\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.multiply_color.rst b/docs/ref/videofx/moviepy.video.fx.all.multiply_color.rstdeleted file mode 100644index 8ef53c73..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.multiply_color.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.multiply_color-===================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: multiply_color\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.multiply_speed.rst b/docs/ref/videofx/moviepy.video.fx.all.multiply_speed.rstdeleted file mode 100644index 559e6098..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.multiply_speed.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.multiply_speed-===================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: multiply_speed\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.painting.rst b/docs/ref/videofx/moviepy.video.fx.all.painting.rstdeleted file mode 100644index 462755b3..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.painting.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.painting-=============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: painting\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.resize.rst b/docs/ref/videofx/moviepy.video.fx.all.resize.rstdeleted file mode 100644index 0f3b9bc2..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.resize.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.resize-===========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: resize\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.rotate.rst b/docs/ref/videofx/moviepy.video.fx.all.rotate.rstdeleted file mode 100644index d68ce476..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.rotate.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.rotate-=============================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: rotate\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.scroll.rst b/docs/ref/videofx/moviepy.video.fx.all.scroll.rstdeleted file mode 100644index 176e9f8f..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.scroll.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.scroll-===========================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: scroll\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.supersample.rst b/docs/ref/videofx/moviepy.video.fx.all.supersample.rstdeleted file mode 100644index 0776fb57..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.supersample.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy\.video\.fx\.all\.supersample-====================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: supersample\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.time_mirror.rst b/docs/ref/videofx/moviepy.video.fx.all.time_mirror.rstdeleted file mode 100644index cea4a124..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.time_mirror.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.time_mirror-================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: time_mirror\ No newline at end of filediff --git a/docs/ref/videofx/moviepy.video.fx.all.time_symmetrize.rst b/docs/ref/videofx/moviepy.video.fx.all.time_symmetrize.rstdeleted file mode 100644index 4f109d50..00000000--- a/docs/ref/videofx/moviepy.video.fx.all.time_symmetrize.rst+++ /dev/null@@ -1,6 +0,0 @@-moviepy.video.fx.all.time_symmetrize-====================================--.. currentmodule:: moviepy.video.fx.all--.. autofunction:: time_symmetrize\ No newline at end of filediff --git a/docs/ref/videotools.rst b/docs/ref/videotools.rstdeleted file mode 100644index bb8eb46f..00000000--- a/docs/ref/videotools.rst+++ /dev/null@@ -1,45 +0,0 @@-.. _ref_videotools:--************-video.tools-************--This module regroups advanced, useful (and less useful) functions for editing videos, by alphabetical order.---Credits----------.. automodule:: moviepy.video.tools.credits- :members:- :inherited-members:- :show-inheritance:--Drawing----------.. automodule:: moviepy.video.tools.drawing- :members:- :inherited-members:- :show-inheritance:--Segmenting------------.. automodule:: moviepy.video.tools.segmenting- :members:- :inherited-members:- :show-inheritance:--Subtitles------------.. automodule:: moviepy.video.tools.subtitles- :members:- :inherited-members:- :show-inheritance:--Tracking----------.. automodule:: moviepy.video.tools.tracking- :members:- :inherited-members:- :show-inheritance:--diff --git a/docs/ref/videotools_credits.jpeg b/docs/ref/videotools_credits.jpegdeleted file mode 100644index 234a8b1f..00000000Binary files a/docs/ref/videotools_credits.jpeg and /dev/null differdiff --git a/docs/reference/index.rst b/docs/reference/index.rstnew file mode 100644index 00000000..e81677c5--- /dev/null+++ b/docs/reference/index.rst@@ -0,0 +1,18 @@+.. _reference_manual:+++Api Reference+================++This is the definitive place to find all the details on MoviePy API documentation.++For a more beginner introduction, please see :ref:`getting_started`, for a more detailed explanations of the different concepts in MoviePy,+see :ref:`user_guide`.++.. autosummary::+ :toctree: reference+ :recursive:+ :template: custom_autosummary/module.rst++ moviepy+diff --git a/docs/reference/reference/moviepy.Clip.Clip.rst b/docs/reference/reference/moviepy.Clip.Clip.rstnew file mode 100644index 00000000..28def587--- /dev/null+++ b/docs/reference/reference/moviepy.Clip.Clip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.Clip.Clip+=================++.. currentmodule:: moviepy.Clip++.. autoclass:: Clip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.Clip.rst b/docs/reference/reference/moviepy.Clip.rstnew file mode 100644index 00000000..0c60c9ec--- /dev/null+++ b/docs/reference/reference/moviepy.Clip.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.Clip+============+++.. automodule:: moviepy.Clip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ Clip+++++++++++++++diff --git a/docs/reference/reference/moviepy.Effect.rst b/docs/reference/reference/moviepy.Effect.rstnew file mode 100644index 00000000..da6a6eb6--- /dev/null+++ b/docs/reference/reference/moviepy.Effect.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.Effect+==============+++.. automodule:: moviepy.Effect+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.AudioClip.AudioArrayClip.rst b/docs/reference/reference/moviepy.audio.AudioClip.AudioArrayClip.rstnew file mode 100644index 00000000..a77a0b76--- /dev/null+++ b/docs/reference/reference/moviepy.audio.AudioClip.AudioArrayClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.AudioClip.AudioArrayClip+======================================++.. currentmodule:: moviepy.audio.AudioClip++.. autoclass:: AudioArrayClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.AudioClip.AudioClip.rst b/docs/reference/reference/moviepy.audio.AudioClip.AudioClip.rstnew file mode 100644index 00000000..8e12eafc--- /dev/null+++ b/docs/reference/reference/moviepy.audio.AudioClip.AudioClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.AudioClip.AudioClip+=================================++.. currentmodule:: moviepy.audio.AudioClip++.. autoclass:: AudioClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.AudioClip.CompositeAudioClip.rst b/docs/reference/reference/moviepy.audio.AudioClip.CompositeAudioClip.rstnew file mode 100644index 00000000..434e0458--- /dev/null+++ b/docs/reference/reference/moviepy.audio.AudioClip.CompositeAudioClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.AudioClip.CompositeAudioClip+==========================================++.. currentmodule:: moviepy.audio.AudioClip++.. autoclass:: CompositeAudioClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.AudioClip.concatenate_audioclips.rst b/docs/reference/reference/moviepy.audio.AudioClip.concatenate_audioclips.rstnew file mode 100644index 00000000..7ffc3da9--- /dev/null+++ b/docs/reference/reference/moviepy.audio.AudioClip.concatenate_audioclips.rst@@ -0,0 +1,6 @@+moviepy.audio.AudioClip.concatenate\_audioclips+===============================================++.. currentmodule:: moviepy.audio.AudioClip++.. autofunction:: concatenate_audioclips\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.AudioClip.rst b/docs/reference/reference/moviepy.audio.AudioClip.rstnew file mode 100644index 00000000..83ef46c3--- /dev/null+++ b/docs/reference/reference/moviepy.audio.AudioClip.rst@@ -0,0 +1,44 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.AudioClip+=======================+++.. automodule:: moviepy.audio.AudioClip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ AudioArrayClip+ AudioClip+ CompositeAudioClip+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ concatenate_audioclips++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.AudioDelay.rst b/docs/reference/reference/moviepy.audio.fx.AudioDelay.rstnew file mode 100644index 00000000..ac3e5483--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.AudioDelay.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.AudioDelay+===========================+++.. automodule:: moviepy.audio.fx.AudioDelay+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.AudioFadeIn.rst b/docs/reference/reference/moviepy.audio.fx.AudioFadeIn.rstnew file mode 100644index 00000000..1bb24dc4--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.AudioFadeIn.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.AudioFadeIn+============================+++.. automodule:: moviepy.audio.fx.AudioFadeIn+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.AudioFadeOut.rst b/docs/reference/reference/moviepy.audio.fx.AudioFadeOut.rstnew file mode 100644index 00000000..3b72a023--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.AudioFadeOut.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.AudioFadeOut+=============================+++.. automodule:: moviepy.audio.fx.AudioFadeOut+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.AudioLoop.rst b/docs/reference/reference/moviepy.audio.fx.AudioLoop.rstnew file mode 100644index 00000000..769a8091--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.AudioLoop.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.AudioLoop+==========================+++.. automodule:: moviepy.audio.fx.AudioLoop+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.AudioNormalize.rst b/docs/reference/reference/moviepy.audio.fx.AudioNormalize.rstnew file mode 100644index 00000000..dfa6fec2--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.AudioNormalize.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.AudioNormalize+===============================+++.. automodule:: moviepy.audio.fx.AudioNormalize+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.MultiplyStereoVolume.rst b/docs/reference/reference/moviepy.audio.fx.MultiplyStereoVolume.rstnew file mode 100644index 00000000..b2872207--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.MultiplyStereoVolume.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.MultiplyStereoVolume+=====================================+++.. automodule:: moviepy.audio.fx.MultiplyStereoVolume+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.MultiplyVolume.rst b/docs/reference/reference/moviepy.audio.fx.MultiplyVolume.rstnew file mode 100644index 00000000..8e12304b--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.MultiplyVolume.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx.MultiplyVolume+===============================+++.. automodule:: moviepy.audio.fx.MultiplyVolume+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.fx.rst b/docs/reference/reference/moviepy.audio.fx.rstnew file mode 100644index 00000000..f0241ce9--- /dev/null+++ b/docs/reference/reference/moviepy.audio.fx.rst@@ -0,0 +1,56 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.fx+================+++.. automodule:: moviepy.audio.fx++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.audio.fx.AudioDelay+++ moviepy.audio.fx.AudioFadeIn+++ moviepy.audio.fx.AudioFadeOut+++ moviepy.audio.fx.AudioLoop+++ moviepy.audio.fx.AudioNormalize+++ moviepy.audio.fx.MultiplyStereoVolume+++ moviepy.audio.fx.MultiplyVolume++diff --git a/docs/reference/reference/moviepy.audio.io.AudioFileClip.AudioFileClip.rst b/docs/reference/reference/moviepy.audio.io.AudioFileClip.AudioFileClip.rstnew file mode 100644index 00000000..53453a81--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.AudioFileClip.AudioFileClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.AudioFileClip.AudioFileClip+============================================++.. currentmodule:: moviepy.audio.io.AudioFileClip++.. autoclass:: AudioFileClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.io.AudioFileClip.rst b/docs/reference/reference/moviepy.audio.io.AudioFileClip.rstnew file mode 100644index 00000000..9c46ed6a--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.AudioFileClip.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.AudioFileClip+==============================+++.. automodule:: moviepy.audio.io.AudioFileClip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ AudioFileClip+++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.FFMPEG_AudioWriter.rst b/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.FFMPEG_AudioWriter.rstnew file mode 100644index 00000000..69b67722--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.FFMPEG_AudioWriter.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.ffmpeg\_audiowriter.FFMPEG\_AudioWriter+========================================================++.. currentmodule:: moviepy.audio.io.ffmpeg_audiowriter++.. autoclass:: FFMPEG_AudioWriter+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.ffmpeg_audiowrite.rst b/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.ffmpeg_audiowrite.rstnew file mode 100644index 00000000..74b8f0bd--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.ffmpeg_audiowrite.rst@@ -0,0 +1,6 @@+moviepy.audio.io.ffmpeg\_audiowriter.ffmpeg\_audiowrite+=======================================================++.. currentmodule:: moviepy.audio.io.ffmpeg_audiowriter++.. autofunction:: ffmpeg_audiowrite\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.rst b/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.rstnew file mode 100644index 00000000..e73e67fa--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.ffmpeg_audiowriter.rst@@ -0,0 +1,42 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.ffmpeg\_audiowriter+====================================+++.. automodule:: moviepy.audio.io.ffmpeg_audiowriter++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FFMPEG_AudioWriter+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ ffmpeg_audiowrite++++++++++diff --git a/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.FFPLAY_AudioPreviewer.rst b/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.FFPLAY_AudioPreviewer.rstnew file mode 100644index 00000000..1f6e0b4d--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.FFPLAY_AudioPreviewer.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.ffplay\_audiopreviewer.FFPLAY\_AudioPreviewer+==============================================================++.. currentmodule:: moviepy.audio.io.ffplay_audiopreviewer++.. autoclass:: FFPLAY_AudioPreviewer+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.ffplay_audiopreview.rst b/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.ffplay_audiopreview.rstnew file mode 100644index 00000000..42bad106--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.ffplay_audiopreview.rst@@ -0,0 +1,6 @@+moviepy.audio.io.ffplay\_audiopreviewer.ffplay\_audiopreview+============================================================++.. currentmodule:: moviepy.audio.io.ffplay_audiopreviewer++.. autofunction:: ffplay_audiopreview\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.rst b/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.rstnew file mode 100644index 00000000..f6f3d2de--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.ffplay_audiopreviewer.rst@@ -0,0 +1,42 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.ffplay\_audiopreviewer+=======================================+++.. automodule:: moviepy.audio.io.ffplay_audiopreviewer++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FFPLAY_AudioPreviewer+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ ffplay_audiopreview++++++++++diff --git a/docs/reference/reference/moviepy.audio.io.readers.FFMPEG_AudioReader.rst b/docs/reference/reference/moviepy.audio.io.readers.FFMPEG_AudioReader.rstnew file mode 100644index 00000000..30b8d9a8--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.readers.FFMPEG_AudioReader.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.readers.FFMPEG\_AudioReader+============================================++.. currentmodule:: moviepy.audio.io.readers++.. autoclass:: FFMPEG_AudioReader+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.io.readers.rst b/docs/reference/reference/moviepy.audio.io.readers.rstnew file mode 100644index 00000000..053a9aa5--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.readers.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io.readers+========================+++.. automodule:: moviepy.audio.io.readers++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FFMPEG_AudioReader+++++++++++++++diff --git a/docs/reference/reference/moviepy.audio.io.rst b/docs/reference/reference/moviepy.audio.io.rstnew file mode 100644index 00000000..eff6ddb2--- /dev/null+++ b/docs/reference/reference/moviepy.audio.io.rst@@ -0,0 +1,47 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.io+================+++.. automodule:: moviepy.audio.io++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.audio.io.AudioFileClip+++ moviepy.audio.io.ffmpeg_audiowriter+++ moviepy.audio.io.ffplay_audiopreviewer+++ moviepy.audio.io.readers++diff --git a/docs/reference/reference/moviepy.audio.rst b/docs/reference/reference/moviepy.audio.rstnew file mode 100644index 00000000..6c46706f--- /dev/null+++ b/docs/reference/reference/moviepy.audio.rst@@ -0,0 +1,47 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio+=============+++.. automodule:: moviepy.audio++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.audio.AudioClip+++ moviepy.audio.fx+++ moviepy.audio.io+++ moviepy.audio.tools++diff --git a/docs/reference/reference/moviepy.audio.tools.cuts.find_audio_period.rst b/docs/reference/reference/moviepy.audio.tools.cuts.find_audio_period.rstnew file mode 100644index 00000000..6f0d71fb--- /dev/null+++ b/docs/reference/reference/moviepy.audio.tools.cuts.find_audio_period.rst@@ -0,0 +1,6 @@+moviepy.audio.tools.cuts.find\_audio\_period+============================================++.. currentmodule:: moviepy.audio.tools.cuts++.. autofunction:: find_audio_period\ No newline at end of filediff --git a/docs/reference/reference/moviepy.audio.tools.cuts.rst b/docs/reference/reference/moviepy.audio.tools.cuts.rstnew file mode 100644index 00000000..6e778b08--- /dev/null+++ b/docs/reference/reference/moviepy.audio.tools.cuts.rst@@ -0,0 +1,34 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.tools.cuts+========================+++.. automodule:: moviepy.audio.tools.cuts+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ find_audio_period++++++++++diff --git a/docs/reference/reference/moviepy.audio.tools.rst b/docs/reference/reference/moviepy.audio.tools.rstnew file mode 100644index 00000000..93695ca9--- /dev/null+++ b/docs/reference/reference/moviepy.audio.tools.rst@@ -0,0 +1,38 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.audio.tools+===================+++.. automodule:: moviepy.audio.tools++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.audio.tools.cuts++diff --git a/docs/reference/reference/moviepy.config.check.rst b/docs/reference/reference/moviepy.config.check.rstnew file mode 100644index 00000000..5fa0287e--- /dev/null+++ b/docs/reference/reference/moviepy.config.check.rst@@ -0,0 +1,6 @@+moviepy.config.check+====================++.. currentmodule:: moviepy.config++.. autofunction:: check\ No newline at end of filediff --git a/docs/reference/reference/moviepy.config.rst b/docs/reference/reference/moviepy.config.rstnew file mode 100644index 00000000..2b5cf333--- /dev/null+++ b/docs/reference/reference/moviepy.config.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.config+==============+++.. automodule:: moviepy.config+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ check+ try_cmd++++++++++diff --git a/docs/reference/reference/moviepy.config.try_cmd.rst b/docs/reference/reference/moviepy.config.try_cmd.rstnew file mode 100644index 00000000..d625d7ab--- /dev/null+++ b/docs/reference/reference/moviepy.config.try_cmd.rst@@ -0,0 +1,6 @@+moviepy.config.try\_cmd+=======================++.. currentmodule:: moviepy.config++.. autofunction:: try_cmd\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.add_mask_if_none.rst b/docs/reference/reference/moviepy.decorators.add_mask_if_none.rstnew file mode 100644index 00000000..93d50ef8--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.add_mask_if_none.rst@@ -0,0 +1,6 @@+moviepy.decorators.add\_mask\_if\_none+======================================++.. currentmodule:: moviepy.decorators++.. autofunction:: add_mask_if_none\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.apply_to_audio.rst b/docs/reference/reference/moviepy.decorators.apply_to_audio.rstnew file mode 100644index 00000000..45a1431a--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.apply_to_audio.rst@@ -0,0 +1,6 @@+moviepy.decorators.apply\_to\_audio+===================================++.. currentmodule:: moviepy.decorators++.. autofunction:: apply_to_audio\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.apply_to_mask.rst b/docs/reference/reference/moviepy.decorators.apply_to_mask.rstnew file mode 100644index 00000000..fa6c41eb--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.apply_to_mask.rst@@ -0,0 +1,6 @@+moviepy.decorators.apply\_to\_mask+==================================++.. currentmodule:: moviepy.decorators++.. autofunction:: apply_to_mask\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.audio_video_effect.rst b/docs/reference/reference/moviepy.decorators.audio_video_effect.rstnew file mode 100644index 00000000..d1de6a9f--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.audio_video_effect.rst@@ -0,0 +1,6 @@+moviepy.decorators.audio\_video\_effect+=======================================++.. currentmodule:: moviepy.decorators++.. autofunction:: audio_video_effect\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.convert_masks_to_RGB.rst b/docs/reference/reference/moviepy.decorators.convert_masks_to_RGB.rstnew file mode 100644index 00000000..2edc66d3--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.convert_masks_to_RGB.rst@@ -0,0 +1,6 @@+moviepy.decorators.convert\_masks\_to\_RGB+==========================================++.. currentmodule:: moviepy.decorators++.. autofunction:: convert_masks_to_RGB\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.convert_parameter_to_seconds.rst b/docs/reference/reference/moviepy.decorators.convert_parameter_to_seconds.rstnew file mode 100644index 00000000..232d8eb9--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.convert_parameter_to_seconds.rst@@ -0,0 +1,6 @@+moviepy.decorators.convert\_parameter\_to\_seconds+==================================================++.. currentmodule:: moviepy.decorators++.. autofunction:: convert_parameter_to_seconds\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.convert_path_to_string.rst b/docs/reference/reference/moviepy.decorators.convert_path_to_string.rstnew file mode 100644index 00000000..cebda55a--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.convert_path_to_string.rst@@ -0,0 +1,6 @@+moviepy.decorators.convert\_path\_to\_string+============================================++.. currentmodule:: moviepy.decorators++.. autofunction:: convert_path_to_string\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.outplace.rst b/docs/reference/reference/moviepy.decorators.outplace.rstnew file mode 100644index 00000000..ea8e373b--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.outplace.rst@@ -0,0 +1,6 @@+moviepy.decorators.outplace+===========================++.. currentmodule:: moviepy.decorators++.. autofunction:: outplace\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.preprocess_args.rst b/docs/reference/reference/moviepy.decorators.preprocess_args.rstnew file mode 100644index 00000000..8f07f477--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.preprocess_args.rst@@ -0,0 +1,6 @@+moviepy.decorators.preprocess\_args+===================================++.. currentmodule:: moviepy.decorators++.. autofunction:: preprocess_args\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.requires_duration.rst b/docs/reference/reference/moviepy.decorators.requires_duration.rstnew file mode 100644index 00000000..86f67289--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.requires_duration.rst@@ -0,0 +1,6 @@+moviepy.decorators.requires\_duration+=====================================++.. currentmodule:: moviepy.decorators++.. autofunction:: requires_duration\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.requires_fps.rst b/docs/reference/reference/moviepy.decorators.requires_fps.rstnew file mode 100644index 00000000..35d088f8--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.requires_fps.rst@@ -0,0 +1,6 @@+moviepy.decorators.requires\_fps+================================++.. currentmodule:: moviepy.decorators++.. autofunction:: requires_fps\ No newline at end of filediff --git a/docs/reference/reference/moviepy.decorators.rst b/docs/reference/reference/moviepy.decorators.rstnew file mode 100644index 00000000..2441abbe--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.rst@@ -0,0 +1,45 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.decorators+==================+++.. automodule:: moviepy.decorators+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ add_mask_if_none+ apply_to_audio+ apply_to_mask+ audio_video_effect+ convert_masks_to_RGB+ convert_parameter_to_seconds+ convert_path_to_string+ outplace+ preprocess_args+ requires_duration+ requires_fps+ use_clip_fps_by_default++++++++++diff --git a/docs/reference/reference/moviepy.decorators.use_clip_fps_by_default.rst b/docs/reference/reference/moviepy.decorators.use_clip_fps_by_default.rstnew file mode 100644index 00000000..c1b1caa5--- /dev/null+++ b/docs/reference/reference/moviepy.decorators.use_clip_fps_by_default.rst@@ -0,0 +1,6 @@+moviepy.decorators.use\_clip\_fps\_by\_default+==============================================++.. currentmodule:: moviepy.decorators++.. autofunction:: use_clip_fps_by_default\ No newline at end of filediff --git a/docs/reference/reference/moviepy.rst b/docs/reference/reference/moviepy.rstnew file mode 100644index 00000000..c688e8c5--- /dev/null+++ b/docs/reference/reference/moviepy.rst@@ -0,0 +1,57 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy+=======+++.. automodule:: moviepy++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.Clip+++ moviepy.Effect+++ moviepy.audio+++ moviepy.config+++ moviepy.decorators+++ moviepy.tools++++ moviepy.video++diff --git a/docs/reference/reference/moviepy.tools.close_all_clips.rst b/docs/reference/reference/moviepy.tools.close_all_clips.rstnew file mode 100644index 00000000..3a555e36--- /dev/null+++ b/docs/reference/reference/moviepy.tools.close_all_clips.rst@@ -0,0 +1,6 @@+moviepy.tools.close\_all\_clips+===============================++.. currentmodule:: moviepy.tools++.. autofunction:: close_all_clips\ No newline at end of filediff --git a/docs/reference/reference/moviepy.tools.convert_to_seconds.rst b/docs/reference/reference/moviepy.tools.convert_to_seconds.rstnew file mode 100644index 00000000..13494f13--- /dev/null+++ b/docs/reference/reference/moviepy.tools.convert_to_seconds.rst@@ -0,0 +1,6 @@+moviepy.tools.convert\_to\_seconds+==================================++.. currentmodule:: moviepy.tools++.. autofunction:: convert_to_seconds\ No newline at end of filediff --git a/docs/reference/reference/moviepy.tools.cross_platform_popen_params.rst b/docs/reference/reference/moviepy.tools.cross_platform_popen_params.rstnew file mode 100644index 00000000..a480a576--- /dev/null+++ b/docs/reference/reference/moviepy.tools.cross_platform_popen_params.rst@@ -0,0 +1,6 @@+moviepy.tools.cross\_platform\_popen\_params+============================================++.. currentmodule:: moviepy.tools++.. autofunction:: cross_platform_popen_params\ No newline at end of filediff --git a/docs/reference/reference/moviepy.tools.deprecated_version_of.rst b/docs/reference/reference/moviepy.tools.deprecated_version_of.rstnew file mode 100644index 00000000..61fc2f02--- /dev/null+++ b/docs/reference/reference/moviepy.tools.deprecated_version_of.rst@@ -0,0 +1,6 @@+moviepy.tools.deprecated\_version\_of+=====================================++.. currentmodule:: moviepy.tools++.. autofunction:: deprecated_version_of\ No newline at end of filediff --git a/docs/reference/reference/moviepy.tools.find_extension.rst b/docs/reference/reference/moviepy.tools.find_extension.rstnew file mode 100644index 00000000..29c02d69--- /dev/null+++ b/docs/reference/reference/moviepy.tools.find_extension.rst@@ -0,0 +1,6 @@+moviepy.tools.find\_extension+=============================++.. currentmodule:: moviepy.tools++.. autofunction:: find_extension\ No newline at end of filediff --git a/docs/reference/reference/moviepy.tools.rst b/docs/reference/reference/moviepy.tools.rstnew file mode 100644index 00000000..bd13efc2--- /dev/null+++ b/docs/reference/reference/moviepy.tools.rst@@ -0,0 +1,39 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.tools+=============+++.. automodule:: moviepy.tools+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ close_all_clips+ convert_to_seconds+ cross_platform_popen_params+ deprecated_version_of+ find_extension+ subprocess_call++++++++++diff --git a/docs/reference/reference/moviepy.tools.subprocess_call.rst b/docs/reference/reference/moviepy.tools.subprocess_call.rstnew file mode 100644index 00000000..ab7f5a1e--- /dev/null+++ b/docs/reference/reference/moviepy.tools.subprocess_call.rst@@ -0,0 +1,6 @@+moviepy.tools.subprocess\_call+==============================++.. currentmodule:: moviepy.tools++.. autofunction:: subprocess_call\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.BitmapClip.rst b/docs/reference/reference/moviepy.video.VideoClip.BitmapClip.rstnew file mode 100644index 00000000..d77f3d78--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.BitmapClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.BitmapClip+==================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: BitmapClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.ColorClip.rst b/docs/reference/reference/moviepy.video.VideoClip.ColorClip.rstnew file mode 100644index 00000000..15c77142--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.ColorClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.ColorClip+=================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: ColorClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.DataVideoClip.rst b/docs/reference/reference/moviepy.video.VideoClip.DataVideoClip.rstnew file mode 100644index 00000000..f235c1ab--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.DataVideoClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.DataVideoClip+=====================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: DataVideoClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.ImageClip.rst b/docs/reference/reference/moviepy.video.VideoClip.ImageClip.rstnew file mode 100644index 00000000..fed9cb6d--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.ImageClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.ImageClip+=================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: ImageClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.TextClip.rst b/docs/reference/reference/moviepy.video.VideoClip.TextClip.rstnew file mode 100644index 00000000..b6ac2f00--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.TextClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.TextClip+================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: TextClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.UpdatedVideoClip.rst b/docs/reference/reference/moviepy.video.VideoClip.UpdatedVideoClip.rstnew file mode 100644index 00000000..89a72880--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.UpdatedVideoClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.UpdatedVideoClip+========================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: UpdatedVideoClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.VideoClip.rst b/docs/reference/reference/moviepy.video.VideoClip.VideoClip.rstnew file mode 100644index 00000000..36f1fa4d--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.VideoClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip.VideoClip+=================================++.. currentmodule:: moviepy.video.VideoClip++.. autoclass:: VideoClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.VideoClip.rst b/docs/reference/reference/moviepy.video.VideoClip.rstnew file mode 100644index 00000000..bc9f3267--- /dev/null+++ b/docs/reference/reference/moviepy.video.VideoClip.rst@@ -0,0 +1,41 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.VideoClip+=======================+++.. automodule:: moviepy.video.VideoClip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ BitmapClip+ ColorClip+ DataVideoClip+ ImageClip+ TextClip+ UpdatedVideoClip+ VideoClip+++++++++++++++diff --git a/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip.rst b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip.rstnew file mode 100644index 00000000..a6d97c99--- /dev/null+++ b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip+===============================================================++.. currentmodule:: moviepy.video.compositing.CompositeVideoClip++.. autoclass:: CompositeVideoClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.clips_array.rst b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.clips_array.rstnew file mode 100644index 00000000..d2fa7baa--- /dev/null+++ b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.clips_array.rst@@ -0,0 +1,6 @@+moviepy.video.compositing.CompositeVideoClip.clips\_array+=========================================================++.. currentmodule:: moviepy.video.compositing.CompositeVideoClip++.. autofunction:: clips_array\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.concatenate_videoclips.rst b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.concatenate_videoclips.rstnew file mode 100644index 00000000..b6a0cae4--- /dev/null+++ b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.concatenate_videoclips.rst@@ -0,0 +1,6 @@+moviepy.video.compositing.CompositeVideoClip.concatenate\_videoclips+====================================================================++.. currentmodule:: moviepy.video.compositing.CompositeVideoClip++.. autofunction:: concatenate_videoclips\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.rst b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.rstnew file mode 100644index 00000000..c0a54b4a--- /dev/null+++ b/docs/reference/reference/moviepy.video.compositing.CompositeVideoClip.rst@@ -0,0 +1,43 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.compositing.CompositeVideoClip+============================================+++.. automodule:: moviepy.video.compositing.CompositeVideoClip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ CompositeVideoClip+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ clips_array+ concatenate_videoclips++++++++++diff --git a/docs/reference/reference/moviepy.video.compositing.rst b/docs/reference/reference/moviepy.video.compositing.rstnew file mode 100644index 00000000..973665c7--- /dev/null+++ b/docs/reference/reference/moviepy.video.compositing.rst@@ -0,0 +1,38 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.compositing+=========================+++.. automodule:: moviepy.video.compositing++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.video.compositing.CompositeVideoClip++diff --git a/docs/reference/reference/moviepy.video.fx.AccelDecel.rst b/docs/reference/reference/moviepy.video.fx.AccelDecel.rstnew file mode 100644index 00000000..f4468639--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.AccelDecel.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.AccelDecel+===========================+++.. automodule:: moviepy.video.fx.AccelDecel+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.BlackAndWhite.rst b/docs/reference/reference/moviepy.video.fx.BlackAndWhite.rstnew file mode 100644index 00000000..19008607--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.BlackAndWhite.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.BlackAndWhite+==============================+++.. automodule:: moviepy.video.fx.BlackAndWhite+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Blink.rst b/docs/reference/reference/moviepy.video.fx.Blink.rstnew file mode 100644index 00000000..bbadb6a0--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Blink.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Blink+======================+++.. automodule:: moviepy.video.fx.Blink+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Crop.rst b/docs/reference/reference/moviepy.video.fx.Crop.rstnew file mode 100644index 00000000..99e3a209--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Crop.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Crop+=====================+++.. automodule:: moviepy.video.fx.Crop+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.CrossFadeIn.rst b/docs/reference/reference/moviepy.video.fx.CrossFadeIn.rstnew file mode 100644index 00000000..f64b8f7d--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.CrossFadeIn.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.CrossFadeIn+============================+++.. automodule:: moviepy.video.fx.CrossFadeIn+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.CrossFadeOut.rst b/docs/reference/reference/moviepy.video.fx.CrossFadeOut.rstnew file mode 100644index 00000000..e77a197e--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.CrossFadeOut.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.CrossFadeOut+=============================+++.. automodule:: moviepy.video.fx.CrossFadeOut+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.EvenSize.rst b/docs/reference/reference/moviepy.video.fx.EvenSize.rstnew file mode 100644index 00000000..fc7d34e7--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.EvenSize.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.EvenSize+=========================+++.. automodule:: moviepy.video.fx.EvenSize+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.FadeIn.rst b/docs/reference/reference/moviepy.video.fx.FadeIn.rstnew file mode 100644index 00000000..c47b1017--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.FadeIn.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.FadeIn+=======================+++.. automodule:: moviepy.video.fx.FadeIn+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.FadeOut.rst b/docs/reference/reference/moviepy.video.fx.FadeOut.rstnew file mode 100644index 00000000..5dffda0b--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.FadeOut.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.FadeOut+========================+++.. automodule:: moviepy.video.fx.FadeOut+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Freeze.rst b/docs/reference/reference/moviepy.video.fx.Freeze.rstnew file mode 100644index 00000000..985de8a9--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Freeze.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Freeze+=======================+++.. automodule:: moviepy.video.fx.Freeze+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.FreezeRegion.rst b/docs/reference/reference/moviepy.video.fx.FreezeRegion.rstnew file mode 100644index 00000000..97463c0d--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.FreezeRegion.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.FreezeRegion+=============================+++.. automodule:: moviepy.video.fx.FreezeRegion+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.GammaCorrection.rst b/docs/reference/reference/moviepy.video.fx.GammaCorrection.rstnew file mode 100644index 00000000..76e15d1e--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.GammaCorrection.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.GammaCorrection+================================+++.. automodule:: moviepy.video.fx.GammaCorrection+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.HeadBlur.rst b/docs/reference/reference/moviepy.video.fx.HeadBlur.rstnew file mode 100644index 00000000..71f85fb3--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.HeadBlur.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.HeadBlur+=========================+++.. automodule:: moviepy.video.fx.HeadBlur+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.InvertColors.rst b/docs/reference/reference/moviepy.video.fx.InvertColors.rstnew file mode 100644index 00000000..79d4648c--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.InvertColors.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.InvertColors+=============================+++.. automodule:: moviepy.video.fx.InvertColors+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Loop.rst b/docs/reference/reference/moviepy.video.fx.Loop.rstnew file mode 100644index 00000000..247a9d4e--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Loop.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Loop+=====================+++.. automodule:: moviepy.video.fx.Loop+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.LumContrast.rst b/docs/reference/reference/moviepy.video.fx.LumContrast.rstnew file mode 100644index 00000000..fdd2a504--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.LumContrast.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.LumContrast+============================+++.. automodule:: moviepy.video.fx.LumContrast+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MakeLoopable.rst b/docs/reference/reference/moviepy.video.fx.MakeLoopable.rstnew file mode 100644index 00000000..b02e53c2--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MakeLoopable.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MakeLoopable+=============================+++.. automodule:: moviepy.video.fx.MakeLoopable+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Margin.rst b/docs/reference/reference/moviepy.video.fx.Margin.rstnew file mode 100644index 00000000..5eca80f9--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Margin.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Margin+=======================+++.. automodule:: moviepy.video.fx.Margin+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MaskColor.rst b/docs/reference/reference/moviepy.video.fx.MaskColor.rstnew file mode 100644index 00000000..d8b5ff3b--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MaskColor.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MaskColor+==========================+++.. automodule:: moviepy.video.fx.MaskColor+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MasksAnd.rst b/docs/reference/reference/moviepy.video.fx.MasksAnd.rstnew file mode 100644index 00000000..1d6fbd39--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MasksAnd.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MasksAnd+=========================+++.. automodule:: moviepy.video.fx.MasksAnd+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MasksOr.rst b/docs/reference/reference/moviepy.video.fx.MasksOr.rstnew file mode 100644index 00000000..c8353574--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MasksOr.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MasksOr+========================+++.. automodule:: moviepy.video.fx.MasksOr+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MirrorX.rst b/docs/reference/reference/moviepy.video.fx.MirrorX.rstnew file mode 100644index 00000000..604f6d93--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MirrorX.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MirrorX+========================+++.. automodule:: moviepy.video.fx.MirrorX+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MirrorY.rst b/docs/reference/reference/moviepy.video.fx.MirrorY.rstnew file mode 100644index 00000000..25de1dce--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MirrorY.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MirrorY+========================+++.. automodule:: moviepy.video.fx.MirrorY+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MultiplyColor.rst b/docs/reference/reference/moviepy.video.fx.MultiplyColor.rstnew file mode 100644index 00000000..190a7585--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MultiplyColor.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MultiplyColor+==============================+++.. automodule:: moviepy.video.fx.MultiplyColor+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.MultiplySpeed.rst b/docs/reference/reference/moviepy.video.fx.MultiplySpeed.rstnew file mode 100644index 00000000..79237437--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.MultiplySpeed.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.MultiplySpeed+==============================+++.. automodule:: moviepy.video.fx.MultiplySpeed+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Painting.rst b/docs/reference/reference/moviepy.video.fx.Painting.rstnew file mode 100644index 00000000..46dde60b--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Painting.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Painting+=========================+++.. automodule:: moviepy.video.fx.Painting+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Resize.rst b/docs/reference/reference/moviepy.video.fx.Resize.rstnew file mode 100644index 00000000..d8b60ef9--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Resize.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Resize+=======================+++.. automodule:: moviepy.video.fx.Resize+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Rotate.rst b/docs/reference/reference/moviepy.video.fx.Rotate.rstnew file mode 100644index 00000000..8fecb863--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Rotate.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Rotate+=======================+++.. automodule:: moviepy.video.fx.Rotate+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.Scroll.rst b/docs/reference/reference/moviepy.video.fx.Scroll.rstnew file mode 100644index 00000000..5f581076--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.Scroll.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.Scroll+=======================+++.. automodule:: moviepy.video.fx.Scroll+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.SlideIn.rst b/docs/reference/reference/moviepy.video.fx.SlideIn.rstnew file mode 100644index 00000000..e4c2ebfc--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.SlideIn.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.SlideIn+========================+++.. automodule:: moviepy.video.fx.SlideIn+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.SlideOut.rst b/docs/reference/reference/moviepy.video.fx.SlideOut.rstnew file mode 100644index 00000000..760bf53b--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.SlideOut.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.SlideOut+=========================+++.. automodule:: moviepy.video.fx.SlideOut+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.SuperSample.rst b/docs/reference/reference/moviepy.video.fx.SuperSample.rstnew file mode 100644index 00000000..5aa30bd3--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.SuperSample.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.SuperSample+============================+++.. automodule:: moviepy.video.fx.SuperSample+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.TimeMirror.rst b/docs/reference/reference/moviepy.video.fx.TimeMirror.rstnew file mode 100644index 00000000..f8d72383--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.TimeMirror.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.TimeMirror+===========================+++.. automodule:: moviepy.video.fx.TimeMirror+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.TimeSymmetrize.rst b/docs/reference/reference/moviepy.video.fx.TimeSymmetrize.rstnew file mode 100644index 00000000..016701cb--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.TimeSymmetrize.rst@@ -0,0 +1,28 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx.TimeSymmetrize+===============================+++.. automodule:: moviepy.video.fx.TimeSymmetrize+ :inherited-members:+++++++++++++++++++diff --git a/docs/reference/reference/moviepy.video.fx.rst b/docs/reference/reference/moviepy.video.fx.rstnew file mode 100644index 00000000..16097957--- /dev/null+++ b/docs/reference/reference/moviepy.video.fx.rst@@ -0,0 +1,137 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.fx+================+++.. automodule:: moviepy.video.fx++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.video.fx.AccelDecel+++ moviepy.video.fx.BlackAndWhite+++ moviepy.video.fx.Blink+++ moviepy.video.fx.Crop+++ moviepy.video.fx.CrossFadeIn+++ moviepy.video.fx.CrossFadeOut+++ moviepy.video.fx.EvenSize+++ moviepy.video.fx.FadeIn+++ moviepy.video.fx.FadeOut+++ moviepy.video.fx.Freeze+++ moviepy.video.fx.FreezeRegion+++ moviepy.video.fx.GammaCorrection+++ moviepy.video.fx.HeadBlur+++ moviepy.video.fx.InvertColors+++ moviepy.video.fx.Loop+++ moviepy.video.fx.LumContrast+++ moviepy.video.fx.MakeLoopable+++ moviepy.video.fx.Margin+++ moviepy.video.fx.MaskColor+++ moviepy.video.fx.MasksAnd+++ moviepy.video.fx.MasksOr+++ moviepy.video.fx.MirrorX+++ moviepy.video.fx.MirrorY+++ moviepy.video.fx.MultiplyColor+++ moviepy.video.fx.MultiplySpeed+++ moviepy.video.fx.Painting+++ moviepy.video.fx.Resize+++ moviepy.video.fx.Rotate+++ moviepy.video.fx.Scroll+++ moviepy.video.fx.SlideIn+++ moviepy.video.fx.SlideOut+++ moviepy.video.fx.SuperSample+++ moviepy.video.fx.TimeMirror+++ moviepy.video.fx.TimeSymmetrize++diff --git a/docs/reference/reference/moviepy.video.io.ImageSequenceClip.ImageSequenceClip.rst b/docs/reference/reference/moviepy.video.io.ImageSequenceClip.ImageSequenceClip.rstnew file mode 100644index 00000000..7d66366a--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ImageSequenceClip.ImageSequenceClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ImageSequenceClip.ImageSequenceClip+====================================================++.. currentmodule:: moviepy.video.io.ImageSequenceClip++.. autoclass:: ImageSequenceClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ImageSequenceClip.rst b/docs/reference/reference/moviepy.video.io.ImageSequenceClip.rstnew file mode 100644index 00000000..382d6234--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ImageSequenceClip.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ImageSequenceClip+==================================+++.. automodule:: moviepy.video.io.ImageSequenceClip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ ImageSequenceClip+++++++++++++++diff --git a/docs/reference/reference/moviepy.video.io.VideoFileClip.VideoFileClip.rst b/docs/reference/reference/moviepy.video.io.VideoFileClip.VideoFileClip.rstnew file mode 100644index 00000000..afe3e2a3--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.VideoFileClip.VideoFileClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.VideoFileClip.VideoFileClip+============================================++.. currentmodule:: moviepy.video.io.VideoFileClip++.. autoclass:: VideoFileClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.VideoFileClip.rst b/docs/reference/reference/moviepy.video.io.VideoFileClip.rstnew file mode 100644index 00000000..2fe8ca53--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.VideoFileClip.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.VideoFileClip+==============================+++.. automodule:: moviepy.video.io.VideoFileClip++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ VideoFileClip+++++++++++++++diff --git a/docs/reference/reference/moviepy.video.io.display_in_notebook.HTML2.rst b/docs/reference/reference/moviepy.video.io.display_in_notebook.HTML2.rstnew file mode 100644index 00000000..60bc07be--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.display_in_notebook.HTML2.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.display\_in\_notebook.HTML2+============================================++.. currentmodule:: moviepy.video.io.display_in_notebook++.. autoclass:: HTML2+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.display_in_notebook.display_in_notebook.rst b/docs/reference/reference/moviepy.video.io.display_in_notebook.display_in_notebook.rstnew file mode 100644index 00000000..c85a8c75--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.display_in_notebook.display_in_notebook.rst@@ -0,0 +1,6 @@+moviepy.video.io.display\_in\_notebook.display\_in\_notebook+============================================================++.. currentmodule:: moviepy.video.io.display_in_notebook++.. autofunction:: display_in_notebook\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.display_in_notebook.html_embed.rst b/docs/reference/reference/moviepy.video.io.display_in_notebook.html_embed.rstnew file mode 100644index 00000000..5e99be8e--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.display_in_notebook.html_embed.rst@@ -0,0 +1,6 @@+moviepy.video.io.display\_in\_notebook.html\_embed+==================================================++.. currentmodule:: moviepy.video.io.display_in_notebook++.. autofunction:: html_embed\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.display_in_notebook.rst b/docs/reference/reference/moviepy.video.io.display_in_notebook.rstnew file mode 100644index 00000000..daaca309--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.display_in_notebook.rst@@ -0,0 +1,43 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.display\_in\_notebook+======================================+++.. automodule:: moviepy.video.io.display_in_notebook++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ HTML2+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ display_in_notebook+ html_embed++++++++++diff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_reader.FFMPEG_VideoReader.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.FFMPEG_VideoReader.rstnew file mode 100644index 00000000..b49939e5--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.FFMPEG_VideoReader.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffmpeg\_reader.FFMPEG\_VideoReader+===================================================++.. currentmodule:: moviepy.video.io.ffmpeg_reader++.. autoclass:: FFMPEG_VideoReader+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_reader.FFmpegInfosParser.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.FFmpegInfosParser.rstnew file mode 100644index 00000000..ec691db3--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.FFmpegInfosParser.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffmpeg\_reader.FFmpegInfosParser+=================================================++.. currentmodule:: moviepy.video.io.ffmpeg_reader++.. autoclass:: FFmpegInfosParser+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_reader.ffmpeg_parse_infos.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.ffmpeg_parse_infos.rstnew file mode 100644index 00000000..8a138a99--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.ffmpeg_parse_infos.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_reader.ffmpeg\_parse\_infos+====================================================++.. currentmodule:: moviepy.video.io.ffmpeg_reader++.. autofunction:: ffmpeg_parse_infos\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_reader.ffmpeg_read_image.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.ffmpeg_read_image.rstnew file mode 100644index 00000000..b4e7655d--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.ffmpeg_read_image.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_reader.ffmpeg\_read\_image+===================================================++.. currentmodule:: moviepy.video.io.ffmpeg_reader++.. autofunction:: ffmpeg_read_image\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_reader.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.rstnew file mode 100644index 00000000..14e22d3c--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_reader.rst@@ -0,0 +1,44 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffmpeg\_reader+===============================+++.. automodule:: moviepy.video.io.ffmpeg_reader++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FFMPEG_VideoReader+ FFmpegInfosParser+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ ffmpeg_parse_infos+ ffmpeg_read_image++++++++++diff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_extract_audio.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_extract_audio.rstnew file mode 100644index 00000000..4bb12161--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_extract_audio.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_tools.ffmpeg\_extract\_audio+=====================================================++.. currentmodule:: moviepy.video.io.ffmpeg_tools++.. autofunction:: ffmpeg_extract_audio\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_extract_subclip.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_extract_subclip.rstnew file mode 100644index 00000000..0f033e00--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_extract_subclip.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_tools.ffmpeg\_extract\_subclip+=======================================================++.. currentmodule:: moviepy.video.io.ffmpeg_tools++.. autofunction:: ffmpeg_extract_subclip\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_merge_video_audio.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_merge_video_audio.rstnew file mode 100644index 00000000..0168d48d--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_merge_video_audio.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_tools.ffmpeg\_merge\_video\_audio+==========================================================++.. currentmodule:: moviepy.video.io.ffmpeg_tools++.. autofunction:: ffmpeg_merge_video_audio\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_resize.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_resize.rstnew file mode 100644index 00000000..e09959c1--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_resize.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_tools.ffmpeg\_resize+=============================================++.. currentmodule:: moviepy.video.io.ffmpeg_tools++.. autofunction:: ffmpeg_resize\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_stabilize_video.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_stabilize_video.rstnew file mode 100644index 00000000..22f407bb--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.ffmpeg_stabilize_video.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_tools.ffmpeg\_stabilize\_video+=======================================================++.. currentmodule:: moviepy.video.io.ffmpeg_tools++.. autofunction:: ffmpeg_stabilize_video\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_tools.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.rstnew file mode 100644index 00000000..5393709a--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_tools.rst@@ -0,0 +1,38 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffmpeg\_tools+==============================+++.. automodule:: moviepy.video.io.ffmpeg_tools+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ ffmpeg_extract_audio+ ffmpeg_extract_subclip+ ffmpeg_merge_video_audio+ ffmpeg_resize+ ffmpeg_stabilize_video++++++++++diff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_writer.FFMPEG_VideoWriter.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.FFMPEG_VideoWriter.rstnew file mode 100644index 00000000..6caa92f1--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.FFMPEG_VideoWriter.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffmpeg\_writer.FFMPEG\_VideoWriter+===================================================++.. currentmodule:: moviepy.video.io.ffmpeg_writer++.. autoclass:: FFMPEG_VideoWriter+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_writer.ffmpeg_write_image.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.ffmpeg_write_image.rstnew file mode 100644index 00000000..e11775ee--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.ffmpeg_write_image.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_writer.ffmpeg\_write\_image+====================================================++.. currentmodule:: moviepy.video.io.ffmpeg_writer++.. autofunction:: ffmpeg_write_image\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_writer.ffmpeg_write_video.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.ffmpeg_write_video.rstnew file mode 100644index 00000000..ef007c36--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.ffmpeg_write_video.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffmpeg\_writer.ffmpeg\_write\_video+====================================================++.. currentmodule:: moviepy.video.io.ffmpeg_writer++.. autofunction:: ffmpeg_write_video\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffmpeg_writer.rst b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.rstnew file mode 100644index 00000000..183788ed--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffmpeg_writer.rst@@ -0,0 +1,43 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffmpeg\_writer+===============================+++.. automodule:: moviepy.video.io.ffmpeg_writer++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FFMPEG_VideoWriter+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ ffmpeg_write_image+ ffmpeg_write_video++++++++++diff --git a/docs/reference/reference/moviepy.video.io.ffplay_previewer.FFPLAY_VideoPreviewer.rst b/docs/reference/reference/moviepy.video.io.ffplay_previewer.FFPLAY_VideoPreviewer.rstnew file mode 100644index 00000000..2401a070--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffplay_previewer.FFPLAY_VideoPreviewer.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffplay\_previewer.FFPLAY\_VideoPreviewer+=========================================================++.. currentmodule:: moviepy.video.io.ffplay_previewer++.. autoclass:: FFPLAY_VideoPreviewer+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffplay_previewer.ffplay_preview_video.rst b/docs/reference/reference/moviepy.video.io.ffplay_previewer.ffplay_preview_video.rstnew file mode 100644index 00000000..ea8b9137--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffplay_previewer.ffplay_preview_video.rst@@ -0,0 +1,6 @@+moviepy.video.io.ffplay\_previewer.ffplay\_preview\_video+=========================================================++.. currentmodule:: moviepy.video.io.ffplay_previewer++.. autofunction:: ffplay_preview_video\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.ffplay_previewer.rst b/docs/reference/reference/moviepy.video.io.ffplay_previewer.rstnew file mode 100644index 00000000..f88a4398--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.ffplay_previewer.rst@@ -0,0 +1,42 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.ffplay\_previewer+==================================+++.. automodule:: moviepy.video.io.ffplay_previewer++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FFPLAY_VideoPreviewer+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ ffplay_preview_video++++++++++diff --git a/docs/reference/reference/moviepy.video.io.gif_writers.rst b/docs/reference/reference/moviepy.video.io.gif_writers.rstnew file mode 100644index 00000000..0e2f6578--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.gif_writers.rst@@ -0,0 +1,34 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io.gif\_writers+=============================+++.. automodule:: moviepy.video.io.gif_writers+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ write_gif_with_imageio++++++++++diff --git a/docs/reference/reference/moviepy.video.io.gif_writers.write_gif_with_imageio.rst b/docs/reference/reference/moviepy.video.io.gif_writers.write_gif_with_imageio.rstnew file mode 100644index 00000000..db632f4a--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.gif_writers.write_gif_with_imageio.rst@@ -0,0 +1,6 @@+moviepy.video.io.gif\_writers.write\_gif\_with\_imageio+=======================================================++.. currentmodule:: moviepy.video.io.gif_writers++.. autofunction:: write_gif_with_imageio\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.io.rst b/docs/reference/reference/moviepy.video.io.rstnew file mode 100644index 00000000..523f2999--- /dev/null+++ b/docs/reference/reference/moviepy.video.io.rst@@ -0,0 +1,59 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.io+================+++.. automodule:: moviepy.video.io++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.video.io.ImageSequenceClip+++ moviepy.video.io.VideoFileClip+++ moviepy.video.io.display_in_notebook+++ moviepy.video.io.ffmpeg_reader+++ moviepy.video.io.ffmpeg_tools+++ moviepy.video.io.ffmpeg_writer+++ moviepy.video.io.ffplay_previewer+++ moviepy.video.io.gif_writers++diff --git a/docs/reference/reference/moviepy.video.rst b/docs/reference/reference/moviepy.video.rstnew file mode 100644index 00000000..8f175f0c--- /dev/null+++ b/docs/reference/reference/moviepy.video.rst@@ -0,0 +1,50 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video+=============+++.. automodule:: moviepy.video++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.video.VideoClip+++ moviepy.video.compositing+++ moviepy.video.fx+++ moviepy.video.io+++ moviepy.video.tools++diff --git a/docs/reference/reference/moviepy.video.tools.credits.CreditsClip.rst b/docs/reference/reference/moviepy.video.tools.credits.CreditsClip.rstnew file mode 100644index 00000000..a1b6d6ba--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.credits.CreditsClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.credits.CreditsClip+=======================================++.. currentmodule:: moviepy.video.tools.credits++.. autoclass:: CreditsClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.credits.rst b/docs/reference/reference/moviepy.video.tools.credits.rstnew file mode 100644index 00000000..ea1cfe1c--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.credits.rst@@ -0,0 +1,35 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.credits+===========================+++.. automodule:: moviepy.video.tools.credits++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ CreditsClip+++++++++++++++diff --git a/docs/reference/reference/moviepy.video.tools.cuts.FramesMatch.rst b/docs/reference/reference/moviepy.video.tools.cuts.FramesMatch.rstnew file mode 100644index 00000000..a39e6ee1--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.cuts.FramesMatch.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.cuts.FramesMatch+====================================++.. currentmodule:: moviepy.video.tools.cuts++.. autoclass:: FramesMatch+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.cuts.FramesMatches.rst b/docs/reference/reference/moviepy.video.tools.cuts.FramesMatches.rstnew file mode 100644index 00000000..ee04b9f3--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.cuts.FramesMatches.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.cuts.FramesMatches+======================================++.. currentmodule:: moviepy.video.tools.cuts++.. autoclass:: FramesMatches+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.cuts.detect_scenes.rst b/docs/reference/reference/moviepy.video.tools.cuts.detect_scenes.rstnew file mode 100644index 00000000..e983f573--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.cuts.detect_scenes.rst@@ -0,0 +1,6 @@+moviepy.video.tools.cuts.detect\_scenes+=======================================++.. currentmodule:: moviepy.video.tools.cuts++.. autofunction:: detect_scenes\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.cuts.find_video_period.rst b/docs/reference/reference/moviepy.video.tools.cuts.find_video_period.rstnew file mode 100644index 00000000..92ca54a4--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.cuts.find_video_period.rst@@ -0,0 +1,6 @@+moviepy.video.tools.cuts.find\_video\_period+============================================++.. currentmodule:: moviepy.video.tools.cuts++.. autofunction:: find_video_period\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.cuts.rst b/docs/reference/reference/moviepy.video.tools.cuts.rstnew file mode 100644index 00000000..18274da4--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.cuts.rst@@ -0,0 +1,44 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.cuts+========================+++.. automodule:: moviepy.video.tools.cuts++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ FramesMatch+ FramesMatches+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ detect_scenes+ find_video_period++++++++++diff --git a/docs/reference/reference/moviepy.video.tools.drawing.blit.rst b/docs/reference/reference/moviepy.video.tools.drawing.blit.rstnew file mode 100644index 00000000..e648dc39--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.drawing.blit.rst@@ -0,0 +1,6 @@+moviepy.video.tools.drawing.blit+================================++.. currentmodule:: moviepy.video.tools.drawing++.. autofunction:: blit\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.drawing.circle.rst b/docs/reference/reference/moviepy.video.tools.drawing.circle.rstnew file mode 100644index 00000000..58cbf089--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.drawing.circle.rst@@ -0,0 +1,6 @@+moviepy.video.tools.drawing.circle+==================================++.. currentmodule:: moviepy.video.tools.drawing++.. autofunction:: circle\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.drawing.color_gradient.rst b/docs/reference/reference/moviepy.video.tools.drawing.color_gradient.rstnew file mode 100644index 00000000..7f193a6b--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.drawing.color_gradient.rst@@ -0,0 +1,6 @@+moviepy.video.tools.drawing.color\_gradient+===========================================++.. currentmodule:: moviepy.video.tools.drawing++.. autofunction:: color_gradient\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.drawing.color_split.rst b/docs/reference/reference/moviepy.video.tools.drawing.color_split.rstnew file mode 100644index 00000000..d7203fc3--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.drawing.color_split.rst@@ -0,0 +1,6 @@+moviepy.video.tools.drawing.color\_split+========================================++.. currentmodule:: moviepy.video.tools.drawing++.. autofunction:: color_split\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.drawing.rst b/docs/reference/reference/moviepy.video.tools.drawing.rstnew file mode 100644index 00000000..0c2e01be--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.drawing.rst@@ -0,0 +1,37 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.drawing+===========================+++.. automodule:: moviepy.video.tools.drawing+++++++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ blit+ circle+ color_gradient+ color_split++++++++++diff --git a/docs/reference/reference/moviepy.video.tools.interpolators.Interpolator.rst b/docs/reference/reference/moviepy.video.tools.interpolators.Interpolator.rstnew file mode 100644index 00000000..cd663df2--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.interpolators.Interpolator.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.interpolators.Interpolator+==============================================++.. currentmodule:: moviepy.video.tools.interpolators++.. autoclass:: Interpolator+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.interpolators.Trajectory.rst b/docs/reference/reference/moviepy.video.tools.interpolators.Trajectory.rstnew file mode 100644index 00000000..0d7ffd0e--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.interpolators.Trajectory.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.interpolators.Trajectory+============================================++.. currentmodule:: moviepy.video.tools.interpolators++.. autoclass:: Trajectory+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.interpolators.rst b/docs/reference/reference/moviepy.video.tools.interpolators.rstnew file mode 100644index 00000000..87936223--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.interpolators.rst@@ -0,0 +1,36 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.interpolators+=================================+++.. automodule:: moviepy.video.tools.interpolators++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ Interpolator+ Trajectory+++++++++++++++diff --git a/docs/reference/reference/moviepy.video.tools.rst b/docs/reference/reference/moviepy.video.tools.rstnew file mode 100644index 00000000..12fe08f4--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.rst@@ -0,0 +1,50 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools+===================+++.. automodule:: moviepy.video.tools++++++++++++++++++++.. rubric:: Modules++.. autosummary::+ :toctree:+ :template: custom_autosummary/module.rst+ :recursive:+++ moviepy.video.tools.credits+++ moviepy.video.tools.cuts+++ moviepy.video.tools.drawing+++ moviepy.video.tools.interpolators+++ moviepy.video.tools.subtitles++diff --git a/docs/reference/reference/moviepy.video.tools.subtitles.SubtitlesClip.rst b/docs/reference/reference/moviepy.video.tools.subtitles.SubtitlesClip.rstnew file mode 100644index 00000000..39ce716e--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.subtitles.SubtitlesClip.rst@@ -0,0 +1,12 @@+.. custom class to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.subtitles.SubtitlesClip+===========================================++.. currentmodule:: moviepy.video.tools.subtitles++.. autoclass:: SubtitlesClip+ :members:++\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.subtitles.file_to_subtitles.rst b/docs/reference/reference/moviepy.video.tools.subtitles.file_to_subtitles.rstnew file mode 100644index 00000000..bf247ff4--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.subtitles.file_to_subtitles.rst@@ -0,0 +1,6 @@+moviepy.video.tools.subtitles.file\_to\_subtitles+=================================================++.. currentmodule:: moviepy.video.tools.subtitles++.. autofunction:: file_to_subtitles\ No newline at end of filediff --git a/docs/reference/reference/moviepy.video.tools.subtitles.rst b/docs/reference/reference/moviepy.video.tools.subtitles.rstnew file mode 100644index 00000000..4bd06981--- /dev/null+++ b/docs/reference/reference/moviepy.video.tools.subtitles.rst@@ -0,0 +1,42 @@+.. custom module to enable complete documentation of every function+ see https://stackoverflow.com/a/62613202++moviepy.video.tools.subtitles+=============================+++.. automodule:: moviepy.video.tools.subtitles++++++ .. rubric:: Classes++ .. autosummary::+ :toctree:+ :template: custom_autosummary/class.rst++ SubtitlesClip+++++++ .. rubric:: Functions++ .. autosummary::+ :toctree:++ file_to_subtitles++++++++++diff --git a/docs/user_guide/compositing.rst b/docs/user_guide/compositing.rstnew file mode 100644index 00000000..9f395800--- /dev/null+++ b/docs/user_guide/compositing.rst@@ -0,0 +1,137 @@+.. _compositing:++Compositing multiple clips+=========================================++Video composition, also known as non-linear editing, is the fact of mixing and playing several clips together in a new clip. This video is a good example of what compositing you can do with MoviePy:++.. raw:: html++ <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left:15%;">+ <iframe type="text/html" src="https://youtube.com/embed/rIehsqqYFEM?rel=0" frameborder="0"+ style="position: absolute; top: 0; bottom: 10; width: 70%; height: 100%; "></iframe>+ </div>++.. note::+ Before starting, note that video clips generally carry an audio track and a mask, which are also clips. When you compose these clips together, the soundtrack and mask of the final clip are automatically generated by putting together the soundtracks and masks of the clips.+ So most of the time you don't need to worry about mixing the audio and masks.+++Juxtaposing and concatenating clips+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++Two simple ways of putting clips together is to concatenate them (to play them one after the other in a single long clip) or to juxtapose them (to put them side by side in a single larger clip).++Concatenating multiple clips+"""""""""""""""""""""""""""""""""++Concatenation can be done very easily with the function :py:func:`~moviepy.video.compositing.CompositeVideoClip.concatenate_videoclips`.++.. literalinclude:: /_static/code/user_guide/compositing/concatenate.py+ :language: python++The ``final_clip`` is a clip that plays the clips 1, 2, and 3 one after the other.++.. note::+ The clips do not need to be the same size. If they arent's they will all appear centered in a clip large enough to contain the biggest of them, with optionally a color of your choosing to fill the background.++For more info, see :py:func:`~moviepy.video.compositing.CompositeVideoClip.concatenate_videoclips`.+++Juxtaposing multiple clips+""""""""""""""""""""""""""""""++Putting multiple clip side by side is done with :py:func:`~moviepy.video.compositing.CompositeVideoClip.clip_array`:++.. literalinclude:: /_static/code/user_guide/compositing/juxtaposing.py+ :language: python++You obtain a clip which looks like this:++.. figure:: /_static/medias/user_guide/stacked.jpeg+ :align: center++For more info, see :py:func:`~moviepy.video.compositing.CompositeVideoClip.clip_array`.+++More complex video compositing+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++The :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip` class is the base of all video compositing.+For example, internally, both :py:func:`~moviepy.video.compositing.CompositeVideoClip.concatenate_videoclips` and :py:func:`~moviepy.video.compositing.CompositeVideoClip.clip_array` create a :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip`.++It provides a very flexible way to compose clips, by playing multiple clip *on top of* of each other, in the order they have been passed to :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip`, here's an example :++.. literalinclude:: /_static/code/user_guide/compositing/CompositeVideoClip.py+ :language: python++Now ``final_clip`` plays all clips at the same time, with ``clip3`` over ``clip2`` over ``clip1``. It means that, if all clips have the same size, then only ``clip3``, which is on top, will be visible in the video...+Unless ``clip3`` and/or ``clip2`` have masks which hide parts of them.++.. note::+ Note that by default the composition has the size of its first clip (as it is generally a *background*). But sometimes you will want to make your clips *float* in a bigger composition.+ To do so, just pass the size of the final composition as ``size`` parameter of :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip`.++For now we have stacked multiple clip on top of each others, but this is obviously not enough for doing real video compositing.+For that, we will need to change when some clip start et stop to play, as well as define the x:y, position of thoses clips in the final video.++For more info, see :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip`.++Changing starting and stopping times of clips+""""""""""""""""""""""""""""""""""""""""""""""""++In a CompositionClip, each clip start to play at a time that is specified by his ``clip.start`` attribute, and will play until ``clip.end``.++So, considering that you would want to play ``clip1`` for the first 6 seconds, ``clip2`` 5 seconds after the start of the video, and finally ``clip3`` at the end of ``clip2``, you would do as follows:++.. literalinclude:: /_static/code/user_guide/compositing/with_start.py+ :language: python++.. note::+ When working with timing of your clip, you will frequently want to keep only parts of the original clip.+ To do so, you should take a look at :py:meth:`~moviepy.Clip.Clip.with_subclip` and :py:meth:`~moviepy.Clip.Clip.with_cutout`.+++Positioning clips+""""""""""""""""""++Frequently, you will want a smaller clip to appear on top of a larger one, and decide where it will appear in the composition by setting their position.++You can do so by using the :py:meth:`~moviepy.video.VideoClip.VideoClip.with_position` method. The position is always defined from the top left corner, but you can define it+in many ways :++.. literalinclude:: /_static/code/user_guide/compositing/with_start.py+ :language: python++When indicating the position keep in mind that the ``y`` coordinate has its zero at the top of the picture:++.. figure:: /_static/medias/user_guide/videoWH.jpeg+++Adding transitions effects+""""""""""""""""""""""""""++The last part of composition is adding transition effects. For example, when a clip start while another is still playing, it would be nice to make the new one fadein instead of showing abruptly.++To do so, we can use the transitions offered by MoviePy in :py:mod:`~moviepy.video.compositing.transitions`, like :py:func:`~moviepy.video.compositing.transitions.crossfadein` :++.. literalinclude:: /_static/code/user_guide/compositing/crossfadein.py+ :language: python+++MoviePy offer only few transitions in :py:mod:`~moviepy.video.compositing.transitions`. But technically, transitions are mostly effects applyed to the mask of a clip !+That means you can actually use any of the already existing effects, and use them as transitions by applying them on the mask of your clip (see .++For more info, see :py:mod:`~moviepy.video.compositing.transitions` and :py:mod:`moviepy.video.fx`.+++Compositing audio clips+-------------------------++When you mix video clips together, MoviePy will automatically compose their respective audio tracks to form the audio track of the final clip, so you don't need to worry about compositing these tracks yourself.++If you want to make a custom audiotrack from several audio sources, audio clips can be mixed together like video clips, with :py:class:`~moviepy.audio.AudioClip.CompositeAudioClip` and :py:func:`~moviepy.audio.AudioClip.concatenate_audioclips`:++.. literalinclude:: /_static/code/user_guide/compositing/CompositeAudioClip.py+ :language: python+diff --git a/docs/user_guide/create_effects.rst b/docs/user_guide/create_effects.rstnew file mode 100644index 00000000..5866ce7d--- /dev/null+++ b/docs/user_guide/create_effects.rst@@ -0,0 +1,46 @@+.. _create_effects:++Creating your own effects+========================================================++In addition to the existings effects already offered by MoviePy, we can create our own effects to modify a clip as we want.+++Why creating your own effects?+------------------------------------++For simple enough tasks, we've seen that we can :ref:`modifying#filters`. Though it might be enough for simple tasks, filters are kind of limited:++- They can only access frame and/or timepoint+- We cannot pass pass arguments to them+- They are hard to maintain and re-use++To allow for more complexe and reusable clip modifications, we can create our own custom effects, that we will later apply with :py:func:`~moviepy.Clip.Clip.with_effects`.++For example, imagine we want to add a progress bar to a clip, to do so we will not only need the time and image of the current frame, but also the total duration of the clip.+We will also probably want to be able to pass parameters to define the apparence of the progress bar, such as color or height. This is a perfect task for an effect!+++Creating an effect+--------------------++In MoviePy, effects are objects of type :py:class:`moviepy.Effect.Effect`, which is the base ``abstract class`` for all effects (kind of the same as :py:class:`~moviepy.Clip.Clip` is the base for all :py:class:`~moviepy.video.VideoClip.VideoClip` and :py:class:`~moviepy.audio.AudioClip.AudioClip`).++So, to create an effect, we will need to inherint the :py:class:`~moviepy.Effect.Effect` class, and do two things:++- Create an ``__init__`` method to be able to received the parameters of our effect.+- Implement the inherited :py:meth:`~moviepy.Effect.Effect.apply` method, which must take as an argument the clip we want to modify, and return the modified version.++In the end, your effect will probably use :py:func:`~moviepy.Clip.Clip.time_transform`, :py:func:`~moviepy.Clip.Clip.image_transform`, or :py:func:`~moviepy.Clip.Clip.transform` to really apply your modifications on the clip,+The main difference is, because your filter will be a method or an anonymous function inside your effect class, you will be able to access all properties of your object from it!++So, lets see how we could create our progress bar effect:++.. literalinclude:: /_static/code/user_guide/effects/custom_effect.py+ :language: python++.. note::+ When creating an effect, you frequently have to write boilerplate code for assigning properties on object initialization, ``dataclasses`` is a nice way to limit that.++If you want to create your own effects, in addition of this documentation we strongly encourage you to go and take a look at the existing ones (see :py:mod:`moviepy.video.fx` and :py:mod:`moviepy.audio.fx`) to see how they works and take inspiration.+\ No newline at end of filediff --git a/docs/user_guide/index.rst b/docs/user_guide/index.rstnew file mode 100644index 00000000..bb4b162c--- /dev/null+++ b/docs/user_guide/index.rst@@ -0,0 +1,22 @@+.. _user_guide:+++The MoviePy User Guide+------------------------------++The User Guide covers all of MoviePy main concepts grouped by tasks (loading, editing, composing, rendering), with a presentation of the differents concept/elements relative to the tasks, as well of short code example.++It is a good place for users whishing to understand more precisely one of these aspects and to discover the different MoviePy elements relative to it.++For users wanting to have a quick overview of how to use MoviePy, a better place to start is the :ref:`getting_started` section, and more specifically the :ref:`moviepy_10_minutes` tutorial.++For a full overview of MoviePy, see the :ref:`reference_manual`.++.. toctree::+ :maxdepth: 1++ loading+ modifying+ create_effects+ compositing+ renderingdiff --git a/docs/user_guide/loading.rst b/docs/user_guide/loading.rstnew file mode 100644index 00000000..2a77b6bb--- /dev/null+++ b/docs/user_guide/loading.rst@@ -0,0 +1,278 @@+.. _loading:++Loading resources as clips+===================================++The first step for making a video with MoviePy is to load the resources you wish to include in the final video.++In this section we present the different sorts of clips and how to load them.+For information on modifying a clip, see :ref:`modifying`. For how to put clips together see :ref:`compositing`. And for how to see/save theme, see :ref:`rendering` (we will usually save them in example, but we wont explain here).++There's a lot of different resources you can use with MoviePy, and you will load those differents resources with different subtypes of :py:class:`~moviepy.Clip.Clip`, and more preciselly of :py:class:`~moviepy.audio.AudioClip.AudioClip` for any audio element, or :py:class:`~moviepy.video.VideoClip.VideoClip` for any visual element.++The following code summarizes the base clips that you can create with moviepy:++.. literalinclude:: /_static/code/user_guide/loading/loading.py+ :language: python+++The best to understand all these clips more thoroughly is to read the full documentation for each in the :ref:`reference_manual`.+++Realasing resources by closing a clip+---------------------------------------++When you create some types of clip instances - e.g. ``VideoFileClip`` or ``AudioFileClip`` - MoviePy creates a subprocess and locks the file. In order to release those resources when you are finished you should call the ``close()`` method.++This is more important for more complex applications and is particularly important when running on Windows. While Python's garbage collector should eventually clean up the resources for you, closing them makes them available earlier.++However, if you close a clip too early, methods on the clip (and any clips derived from it) become unsafe.++So, the rules of thumb are:++ * Call ``close()`` on any clip that you **construct** once you have finished using it and have also finished using any clip that was derived from it.+ * Even if you close a :py:class:`~moviepy.video.compositing.CompositeVideoClip.CompositeVideoClip` instance, you still need to close the clips it was created from.+ * Otherwise, if you have a clip that was created by deriving it from from another clip (e.g. by calling ``with_mask()``), then generally you shouldn't close it. Closing the original clip will also close the copy.++Clips act as `context managers <https://docs.python.org/3/reference/datamodel.html#context-managers>`_. This means you+can use them with a ``with`` statement, and they will automatically be closed at the end of the block, even if there is+an exception.++.. literalinclude:: /_static/code/user_guide/loading/closing.py+ :language: python+++Categories of video clips+--------------------------++Video clips are the building blocks of longer videos. Technically, they are clips with a ``clip.get_frame(t)`` method which outputs a ``HxWx3`` numpy array representing the frame of the clip at time ``t``.++There are two main type of video clips:++* animated clips (made with :py:class:`~moviepy.video.VideoClip.VideoFileClip`, :py:class:`~moviepy.video.VideoClip.VideoClip` and :py:class:`~moviepy.video.io.ImageSequenceClip.ImageSequenceClip`), which will always have duration.+* unanimated clips (made with :py:class:`~moviepy.video.VideoClip.ImageClip`, :py:class:`~moviepy.video.VideoClip`TextClip` and :py:class:`~moviepy.video.VideoClip.ColorClip`), which show the same picture for an a-priori infinite duration.++There are also special video clips called masks, which belong to the categories above but output greyscale frames indicating which parts of another clip are visible or not.++A video clip can carry around an audio clip (:py:class:`~moviepy.audio.AudioClip.AudioClip`) in :py:attr:`~moviepy.video.VideoClip.VideoClip.audio` which is its *soundtrack*, and a mask clip in :py:attr:`~moviepy.video.VideoClip.VideoClip.mask`.++Animated clips+~~~~~~~~~~~~~~~++Thoses are clips whose image will change in time, and who have a duration and a number of Frames Per Second.++VideoClip+""""""""""++:py:class:`~moviepy.video.VideoClip.VideoClip` is the base class for all the other video clips in MoviePy. If all you want is to edit video files, you will never need it. This class is practical when you want to make animations from frames that are generated by another library.+All you need is to define a function ``make_frame(t)`` which returns a `HxWx3` numpy array (of 8-bits integers) representing the frame at time ``t``.++Here is an example where we will create a pulsating red circle with graphical library `pillow <https://pypi.org/project/Pillow/>`_.++.. literalinclude:: /_static/code/user_guide/loading/VideoClip.py+ :language: python++Resulting in this.++.. image:: /_static/medias/user_guide/circle.gif+ :width: 128 px+ :align: center+ :alt: A pulsating red circle on black background.+++.. note::+ Clips that are made with a ``make_frame`` do not have an explicit frame rate nor duration by default, so you must provide duration at clip creation and a frame rate (``fps``, frames per second) for :py:meth:`~moviepy.video.VideoClip.VideoClip.write_gif` and :py:meth:`~moviepy.video.VideoClip.VideoClip.write_videofile`, and more generally for any methods that requires iterating through the frames.++For more, see :py:class:`~moviepy.video.VideoClip.VideoClip`.+++VideoFileClip+"""""""""""""""++A :py:class:`~moviepy.video.io.VideoFileClip.VideoFileClip` is a clip read from a video file (most formats are supported) or a GIF file. This is probably one of the most used object ! You load the video as follows:++.. literalinclude:: /_static/code/user_guide/loading/VideoFileClip.py+ :language: python++.. note::+ These clips will have an ``fps`` (frame per second) and ``duration`` attributes, which will be transmitted if you do small modifications of the clip, and will be used by default in :py:meth:`~moviepy.video.VideoClip.VideoClip.write_gif`, :py:meth:`~moviepy.video.VideoClip.VideoClip.write_videofile`, etc.++For more, see :py:class:`~moviepy.video.io.VideoFileClip.VideoFileClip`.+++ImageSequenceClip+""""""""""""""""""++This :py:class:`~moviepy.video.io.ImageSequenceClip.ImageSequenceClip` is a clip made from a series of images :++.. literalinclude:: /_static/code/user_guide/loading/ImageSequenceClip.py+ :language: python++When creating an image sequence, ``sequence`` can be either a list of image names (that will be *played* in the provided order), a folder name (played in alphanumerical order), or a list of frames (Numpy arrays), obtained for instance from other clips.++.. warning::+ All the images in list/folder/frames must be of the same size, or an exception will be raised++For more, see :py:class:`~moviepy.video.io.ImageSequenceClip.ImageSequenceClip`.+++DataVideoClip+""""""""""""""""""++:py:class:`~moviepy.video.io.VideoClip.DataVideoClip` is a video clip who take a list of datasets, a callback function,+and make each frame by iterating over dataset and invoking the callback function with the current data as first argument.++You will probably never use this. But if you do, think of it like a :py:class:`~moviepy.video.VideoClip.VideoClip`, where you make frames not based on time,+but based on each entry of a data list.++.. literalinclude:: /_static/code/user_guide/loading/DataVideoClip.py+ :language: python++For more, see For more, see :py:class:`~moviepy.video.io.VideoClip.DataVideoClip`.+++UpdatedVideoClip+""""""""""""""""""++.. warning::+ This is really advanced usage, you will probably never need it, if you do, please go read the code.++:py:class:`~moviepy.video.io.VideoClip.UpdatedVideoClip` is a video whose make_frame requires some objects to be updated before we can compute it.++This is particularly practical in science where some algorithm needs to make some steps before a new frame can be generated, or maybe when trying to make a video based on a live exterior context.++When you use this, you pass a world object to it. A world object is an object who respect thoses 3 rules :++#. It has a ``clip_t`` property, indicating the current world time.+#. It has an ``update()`` method, that will update the world state and is responsible for increasing ``clip_t`` when a new frame can be drown.+#. It has a ``to_frame()`` method, that will render a frame based on world current state.++On :py:meth:`~moviepy.video.io.VideoClip.UpdatedVideoClip.get_frame` call, your :py:class:`~moviepy.video.io.VideoClip.UpdatedVideoClip` will try to update the world until ``world.clip_t`` is superior or equal to frame time, then it will call ``world.to_frame()``.++.. literalinclude:: /_static/code/user_guide/loading/UpdatedVideoClip.py+ :language: python++++Unanimated clips+~~~~~~~~~~~~~~~~++Thoses are clips whose image will, at least before modifications, stay the same. By default they have no duration nor FPS. Meaning you will need to define thoses if you try to do operation needing such information (for example rendering).+++ImageClip+""""""""""++:py:class:`~moviepy.video.VideoClip.ImageClip` is the base class for all unanimated clips, it's a video clip that always displays the same image. Along with :py:class:`~moviepy.video.io.VideoFileClip.VideoFileClip` it's one of the most used kind of clip.+You can create one as follows:++.. literalinclude:: /_static/code/user_guide/loading/ImageClip.py+ :language: python++For more, see :py:class:`~moviepy.video.VideoClip.ImageClip`.+++TextClip+"""""""""""""""++A :py:class:`~moviepy.video.VideoClip.TextClip` is a clip that will turn a text string into an image clip.++:py:class:`~moviepy.video.VideoClip.TextClip` accept many parameters, letting you configure the apparence of the text, such as font and font size,+color, interlining, text alignement, etc.++The font you want to use must be an `OpenType font <https://fr.wikipedia.org/wiki/OpenType>`_, and you will set it by passing the path to the font file.++Here are a few example of using :py:class:`~moviepy.video.VideoClip.TextClip` :++.. literalinclude:: /_static/code/user_guide/loading/TextClip.py+ :language: python++.. note::+ The parameter ``method`` let you define if text should be written and overflow if too long (``label``) or be automatically breaked (``caption``).++For a more detailed explaination of all the parameters, see :py:class:`~moviepy.video.VideoClip.TextClip`.+++ColorClip+"""""""""""""""++A :py:class:`~moviepy.video.VideoClip.ColorClip` is a clip that will return an image of only one color. It is sometimes usefull when doing compositing (see :ref:`compositing`).++.. literalinclude:: /_static/code/user_guide/loading/ColorClip.py+ :language: python++For more, see :py:class:`~moviepy.video.VideoClip.ColorClip`.+++.. _loading#masks:++Mask clips+~~~~~~~~~~~~~~++Masks are a special kind of :py:class:`~moviepy.video.VideoClip.VideoClip` with the property ``is_mask`` set to ``True``. They can be attached to any other kind of :py:class:`~moviepy.video.VideoClip.VideoClip` through method :py:meth:`~moviepy.video.VideoClip.VideoClip.with_mask`.++When a clip as a mask attached to it, this mask will indicate which pixels will be visible when the clip is composed with other clips (see :ref:`compositing`). Masks are also used to define transparency when you export the clip as GIF file or as a PNG.++The fundamental difference between masks and standard clips is that standard clips output frames with 3 components (R-G-B) per pixel, comprised between 0 and 255, while a mask has just one composant per pixel, between 0 and 1 (1 indicating a fully visible pixel and 0 a transparent pixel). Seen otherwise, a mask is always in greyscale.++When you create or load a clip that you will use as a mask you need to declare it. You can then attach it to a clip with the same dimensions :++.. literalinclude:: /_static/code/user_guide/loading/masks.py+ :language: python++.. note::+ In the case of video and image files, if these are not already black and white they will be converted automatically.++ Also, when you load an image with an *alpha layer*, like a PNG, MoviePy will use this layer as a mask, except if you pass ``transparent=False``.+++Any video clip can be turned into a mask with :py:meth:`~moviepy.video.VideoClip.VideoClip.to_mask`, and a mask can be turned to a standard RGB video clip with :py:meth:`~moviepy.video.VideoClip.VideoClip.to_RGB()`.++Masks are treated differently by many methods (because their frames are different) but at the core, they are :py:class:`~moviepy.video.VideoClip.VideoClip`, so you can do with theme everything you can do with a video clip: modify, cut, apply effects, save, etc.+++Using audio elements with audio clips+--------------------------------------++In addition to :py:class:`~moviepy.video.VideoClip.VideoClip` for visual, you can use audio elements, like an audio file, using the :py:class:`~moviepy.audio.AudioClip.AudioClip` class.++Both are quite similar, except :py:class:`~moviepy.audio.AudioClip.AudioClip` method :py:meth:`~moviepy.audio.AudioClip.AudioClip.get_frame` return a numpy array of size ``Nx1`` for mono, and size ``Nx2`` for stereo.+++AudioClip+~~~~~~~~~~++:py:class:`~moviepy.audio.AudioClip.AudioClip` is the base class for all audio clips. If all you want is to edit audio files, you will never need it.++All you need is to define a function ``make_frame(t)`` which returns a ``Nx1`` or ``Nx2`` numpy array representing the sound at time ``t``.++.. literalinclude:: /_static/code/user_guide/loading/AudioClip.py+ :language: python++For more, see :py:class:`~moviepy.audio.AudioClip.AudioClip`.+++AudioFileClip+~~~~~~~~~~~~~~~~~~~~++:py:class:`~moviepy.audio.io.AudioFileClip.AudioFileClip` is used to load an audio file, this is probably the only kind of audio clip you will use.++You simply pass him the file you want to load :++.. literalinclude:: /_static/code/user_guide/loading/AudioFileClip.py+ :language: python++For more, see :py:class:`~moviepy.audio.io.AudioFileClip.AudioFileClip`.+++AudioArrayClip+~~~~~~~~~~~~~~~~~~~~++:py:class:`~moviepy.audio.AudioClip.AudioArrayClip` is used to turn an array representing a sound into an audio clip. You will probably never use it, unless you need to use the result of some third library without using a temporary file.++You need to provide a numpy array representing the sound (of size ``Nx1`` for mono, ``Nx2`` for stereo), and the number of fps, indicating the speed at which the sound is supposed to be played.++.. literalinclude:: /_static/code/user_guide/loading/AudioArrayClip.py+ :language: python++For more, see :py:class:`~moviepy.audio.AudioClip.AudioArrayClip`.\ No newline at end of filediff --git a/docs/user_guide/modifying.rst b/docs/user_guide/modifying.rstnew file mode 100644index 00000000..2eee348b--- /dev/null+++ b/docs/user_guide/modifying.rst@@ -0,0 +1,160 @@+.. _modifying:++Modifying clips and apply effects+===================================++Of course, once you will have loaded a :py:class:`~moviepy.Clip.Clip` the next step of action will be to modify it to be able to integrate it in your final video.++To modify a clip, there is three main courses of actions :+ * The built-in methods of :py:class:`~moviepy.video.VideoClip.VideoClip` or :py:class:`~moviepy.audio.AudioClip.AudioClip` modifying the properties of the object.+ * The already-implemented effects of MoviePy you can apply on clips, usually affecting the clip by applying filters on each frame of the clip at rendering time.+ * The transformation filters that you can apply using :py:func:`~moviepy.Clip.Clip.transform` and :py:func:`~moviepy.Clip.Clip.time_transform`.+++How modifications are applied to a clip ?+-------------------------------------------------------++Clip copy during modification+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++The first thing you must know is that when modifying a clip, MoviePy **will never modify that clip directly**.+Instead it will return **a modified copy of the original** and let the original untouched. This is known as out-place instead of in-place behavior.++To illustrate :++.. literalinclude:: /_static/code/user_guide/effects/modify_copy_example.py+ :language: python++This is an important point to understand, because it is one of the most recurrent source of bug for newcomers.+++Memory consumption of effect and modifications+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+When applying an effect or modification, it does not immediately apply the effect to all the frames of the clip, but only to the first frame: all the other frames will only be modified when required (that is, when you will write the whole clip to a file of when you will preview it).++It means that creating a new clip is neither time nor memory hungry, all the computation happen during the final rendering.+++Time representations in MoviePy+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+Many methods that we will see accept duration or timepoint as arguments. For instance :py:meth:`clip.with_subclip(t_start, t_end) <moviepy.Clip.Clip.with_subclip(t_start, t_end)>` which cuts the clip between two timepoints.++MoviePy usually accept duration and timepoint as either :++* a number of seconds as a ``float``.+* a ``tuple`` with ``(minutes, seconds)`` or ``(hours, minutes, seconds)``.+* a ``string`` such as ``'00:03:50.54'``.++Also, you can usually provide negative times, indicating a time from the end of the clip. For example, ``clip.with_subclip(-20, -10)`` cuts the clip between 20s before the end and 10s before the end.+++Modify a clip using the ``with_*`` methods+-------------------------------------------------------++The first way to modify a clip is by modifying internal properties of your object, thus modifying his behavior.++Thoses methods usually starts with the prefix ``with_`` or ``without_``, indicating that they will return a copy of the clip with the properties modified.++So, you may write something like :++.. literalinclude:: /_static/code/user_guide/effects/using_with_methods.py+ :language: python++In addition to the ``with_*`` methods, a handful of very common methods are also accessible under shorter name, thoses are:++- :py:meth:`~moviepy.video.VideoClip.VideoClip.resized`+- :py:meth:`~moviepy.video.VideoClip.VideoClip.crop`+- :py:meth:`~moviepy.video.VideoClip.VideoClip.rotate`++For a list of all those methods, see :py:class:`~moviepy.Clip.Clip` and :py:class:`~moviepy.video.VideoClip.VideoClip`.++++Modify a clip using effects+---------------------------------++The second way to modify a clip is by using effects that will modify the frames of the clip (which internally are no more than `numpy arrays <https://numpy.org>`_) by applying some sort of functions on them.++MoviePy come with many effects implemented in :py:mod:`moviepy.video.fx` for visual effects and :py:mod:`moviepy.audio.fx` for audio effects.+For practicality, these two modules are loaded in MoviePy as ``vfx`` and ``afx``, letting you import them as ``from moviepy import vfx, afx``.++To use thoses effects, you simply need to instanciate them as object and apply them on your :py:class:`~moviepy.Clip.Clip` using method :py:meth:`~moviepy.Clip.Clip.with_effects`, with a list of :py:class:`~moviepy.Effect.Effect` objects you want to apply.++For convenience the effects are also dynamically added as method of :py:class:`~moviepy.video.VideoClip.VideoClip` and :py:class:`~moviepy.video.AudioClip.AudioClip` classes at runtime, letting you call them as simple method of your clip.++So, you may write something like :++.. literalinclude:: /_static/code/user_guide/effects/using_effects_fx.py+ :language: python++.. note::+ MoviePy effects are automatically applied to both the sound and the mask of the clip if it is relevant, so that you don’t have to worry about modifying these.++For a list of those effects, see :py:mod:`moviepy.video.fx` and :py:mod:`moviepy.audio.fx`.++In addition to the effects already provided by MoviePy, you can obviously :ref:`create_effects` and use them the same way.++.. _modifying#filters:++Modify a clip apparence and timing using filters+----------------------------------------------------------++In addition to modify a clip properties and using effects, you can also modify the apparence or timing of a clip by using your own custom *filters* with :py:func:`~moviepy.Clip.Clip.time_transform`, :py:func:`~moviepy.Clip.Clip.image_transform`, and more generally with :py:func:`~moviepy.Clip.Clip.transform`.++All thoses methods works by taking as first parameter a callback function that will receive either a clip frame, a timepoint, or both, and return a modified version of thoses.++Modify only the timing of a Clip+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++You can change the timeline of the clip with :py:meth:`time_transform(your_filter) <moviepy.Clip.Clip.time_transform>`.+Where ``your_filter`` is a callback function taking clip time as a parameter and returning a new time :++.. literalinclude:: /_static/code/user_guide/effects/time_transform.py+ :language: python++Now the clip ``modified_clip1`` plays three times faster than ``my_clip``, while ``modified_clip2`` will be oscillating between 00:00:00 to 00:00:02 of ``my_clip``. Note that in the last case you have created a clip of infinite duration (which is not a problem for the moment).++.. note::+ By default :py:func:`~moviepy.Clip.Clip.time_transform` will only modify the clip main frame, without modifying clip audio or mask for :py:class:`~moviepy.video.VideoClip.VideoClip`.++ If you wish to also modify audio and/or mask you can provide the parameter ``apply_to`` with either ``'audio'``, ``'mask'``, or ``['audio', 'mask']``.+++Modifying only the apparence of a Clip+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++For :py:class:`~moviepy.video.VideoClip.VideoClip`, you can change the apparence of the clip with :py:meth:`image_transform(your_filter) <moviepy.video.VideoClip.VideoClip.image_transform>`.+Where ``your_filter`` is a callback function, taking clip frame (a numpy array) as a parameter and returning the transformed frame :++.. literalinclude:: /_static/code/user_guide/effects/image_transform.py+ :language: python++Now the clip ``modified_clip1`` will have his green and blue canals inverted.++.. note::+ You can define if transformation should be applied to audio and mask same as for :py:func:`~moviepy.Clip.Clip.time_transform`.++.. note::+ Sometimes need to treat clip frames and mask frames in a different way. To distinguish between the two, you can always look at their shape, clips are ``H*W*3``, and masks ``H*W``.+++Modifying both the apparence and the timing of a Clip+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++Finally, you may want to process the clip by taking into account both the time and the frame picture, for example to apply visual effects variating with time.+This is possible with the method :py:meth:`transform(your_filter) <moviepy.Clip.Clip.transform>`.+Where ``your_filter`` is a callback function taking two parameters, and returning a new frame picture. Where first argument is a ``get_frame`` method (i.e. a function ``get_frame(time)`` which given a time returns the clip’s frame at that time), and the second argument is the time.++.. literalinclude:: /_static/code/user_guide/effects/transform.py+ :language: python++This will scroll down the clip, with a constant height of 360 pixels.++.. note::+ You can define if transformation should be applied to audio and mask same as for :py:func:`~moviepy.Clip.Clip.time_transform`.++.. note::+ When programming a new effect, whenever it is possible, prefer using ``time_transform`` and ``image_transform`` instead of ``transform`` when implementing new effects.+ The reason is that, though they both internally relly on ``transform`` when these effects are applied to ``ImageClip`` objects, MoviePy will recognize they only need to be applied once instead of on each frame, resulting in faster renderings.++To keep things simple, we have only addressed the case of :py:class:`~moviepy.video.VideoClip.VideoClip`, but know that the same principle applies to :py:class:`~moviepy.audio.AudioClip.AudioClip`, except that instead of a picture frame, you will have an audio frame, which is also a numpy array.\ No newline at end of filediff --git a/docs/user_guide/rendering.rst b/docs/user_guide/rendering.rstnew file mode 100644index 00000000..535fd444--- /dev/null+++ b/docs/user_guide/rendering.rst@@ -0,0 +1,145 @@+.. _rendering:++Previewing and saving video clips+====================================++Once you are down working with your clips, the last step will be to export the result into a video/image file, or sometimes to simply preview it in order to verify everything is working as expected.++Previewing a clip+"""""""""""""""""""""++When you are working with a clip, you will frequently need to have a peak at what your clip looks like, either to verify that everything is working as intended, or to check how things looks.++To do so you could render your entire clip into a file, but that's a pretty long task, and you only need a quick look, so a better solution exists: previewing.++Preview a clip as a video+~~~~~~~~~~~~~~~~~~~~~~~~~~++.. warning::+ You must have ``FFPLAY`` installed and accessible to MoviePy to be able to use :py:func:`~moviepy.video.io.preview.preview`.+ If you'r not sure, take a look :ref:`install#binaries`++The first thing you can do is to preview your clip as a video, by calling method :py:func:`~moviepy.video.io.preview.preview` on your clip:++.. literalinclude:: /_static/code/user_guide/rendering/preview.py+ :language: python++You will probably frequently want to preview only a small portion of your clip, though ``preview`` do not offer such capabilities, you can easily emulate such behavior by using :py:meth:`~moviepy.Clip.Clip.with_subclip`.++.. note::+ It is quite frequent for a clip preview to be out of sync, or to play slower than it should. It means that your computer is not powerful enough to render the clip in real time.++ Don’t hesitate to play with the options of preview: for instance, lower the fps of the sound (11000 Hz is still fine) and the video. Also, downsizing your video with resize can help.++For more info, see :py:func:`~moviepy.video.io.preview.preview`.++.. note::+ A quite similar function is also available for :py:func:`~moviepy.audio.AudioClip.AudioClip`, see :py:func:`~moviepy.audio.io.ffplay_audiopreviewer.ffplay_audiopreview`.+++Preview just one frame of a clip+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++In a lot of situation, you dont really need to preview your all clip, seeing only one frame is enough to see how it looks like and to make sure everything goes as expected.++To do so, you can use the method :py:func:`~moviepy.video.io.preview.show` on your clip, passing the frame time as an argument:++.. literalinclude:: /_static/code/user_guide/rendering/show.py+ :language: python++Contrary to video previewing, show does not require ``ffplay``, but use ``pillow`` ``Image.show`` function.++For more info, see :py:func:`~moviepy.video.io.preview.show`.+++Showing a clip in Jupyter Notebook+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++If you work with a `Jupyter Notebook <https://jupyter.org/>`_, it can be very practical to display your clip the notebook. To do so, you can use the method :py:func:`~moviepy.video.io.display_in_notebook.display_in_notebook` on your clip.++.. image:: /_static/medias/user_guide/demo_preview.jpeg+ :width: 500px+ :align: center++With :py:func:`~moviepy.video.io.display_in_notebook.display_in_notebook` you can embed videos, images and sounds, either from a file or directly from a clip:++.. literalinclude:: /_static/code/user_guide/rendering/display_in_notebook.py+ :language: python+++.. warning::+ Know that :py:func:`~moviepy.video.io.display_in_notebook.display_in_notebook` will only work if it is on the last line a the notebook cell.++ Also, note that :py:func:`~moviepy.video.io.display_in_notebook.display_in_notebook` actually embeds the clips physically in your notebook. The advantage is that you can move the notebook or put it online and the videos will work.+ The drawback is that the file size of the notebook can become very large. Depending on your browser, re-computing and displaying at video many times can take some place in the cache and the RAM (it will only be a problem for intensive uses).+ Restarting your browser solves the problem.+++For more info, see :py:func:`~moviepy.video.io.display_in_notebook.display_in_notebook`.+++Save your clip into a file+""""""""""""""""""""""""""""""""""""""""++Once you are satisfied with how your clip looks, you can save it into a file, a step known in video edition as rendering. MoviePy offer various way to save your clip.++Video files (.mp4, .webm, .ogv...)+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++The obvious first choice will be to write your clip to a video file, which you can do with :py:meth:`~moviepy.video.VideoClip.VideoClip.write_videofile`:++.. literalinclude:: /_static/code/user_guide/rendering/write_videofile.py+ :language: python++MoviePy can find the a default codec name for the most common file extensions. If you want to use exotic formats or if you are not happy with the defaults you can provide the codec with ``codec='mpeg4'`` for instance.++There are many many options when you are writing a video (bitrate, parameters of the audio writing, file size optimization, number of processors to use, etc.), and we will not go in details into each. So, for more info, see :py:meth:`~moviepy.video.VideoClip.VideoClip.write_videofile`.++.. note::+ Though you are encouraged to play with settings of ``write_videofile``, know that lowering the optimization preset, or increasing the number of threads will not necessarly+ improve the rendering time, as the bottleneck may be on MoviePy computation of each frame and not in ffmpeg encoding.++ Also, know that it is possible to pass additional parameters to ffmpeg command line invoked by MoviePy by using the ``ffmpeg_params`` argument.++Sometimes it is impossible for MoviePy to guess the ``duration`` attribute of the clip (keep in mind that some clips, like ImageClips displaying a picture, have *a priori* an infinite duration). Then, the ``duration`` must be set manually with :py:meth:`~moviepy.Clip.Clip.with_duration`:++.. literalinclude:: /_static/code/user_guide/rendering/write_videofile_duration.py+ :language: python+++.. note::+ A quite similar function is also available for :py:func:`~moviepy.audio.AudioClip.AudioClip`, see :py:func:`~moviepy.audio.io.AudioClip.write_audiofile`.+++Export a single frame of the clip+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++As for previewing, sometimes you will need to export only one frame of a clip, for example to create the preview image of a video. You can do so with :py:meth:`~moviepy.video.VideoClip.VideoClip.save_frame`:++.. literalinclude:: /_static/code/user_guide/rendering/save_frame.py+ :language: python++For more info, see :py:func:`~moviepy.video.VideoClip.VideoClip.save_frame`.+++Animated GIFs+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++In addition to writing video files, MoviePy also let you write GIF file with :py:meth:`~moviepy.video.VideoClip.VideoClip.write_gif`:++.. literalinclude:: /_static/code/user_guide/rendering/write_gif.py+ :language: python+++For more info, see :py:func:`~moviepy.video.VideoClip.VideoClip.write_gif`.+++Export all the clip as images in a directory+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++Lastly, you may wish to export an entire clip as an image sequence (multiple images in one directory, one image per frame). You can do so with the function :py:meth:`~moviepy.video.VideoClip.VideoClip.write_images_sequence`:++.. literalinclude:: /_static/code/user_guide/rendering/write_images_sequence.py+ :language: python++For more info, see :py:func:`~moviepy.video.VideoClip.VideoClip.write_images_sequence`.diff --git a/examples/README.rst b/examples/README.rstdeleted file mode 100644index 8c42c312..00000000--- a/examples/README.rst+++ /dev/null@@ -1 +0,0 @@-This folder contains curated examples for MoviePy.diff --git a/examples/compo_from_image.py b/examples/compo_from_image.pydeleted file mode 100644index 7147c29f..00000000--- a/examples/compo_from_image.py+++ /dev/null@@ -1,36 +0,0 @@-from moviepy import *-from moviepy.video.tools.segmenting import find_objects---# Load the image specifying the regions.-im = ImageClip("../../ultracompositing/motif.png")--# Loacate the regions, return a list of ImageClips-regions = find_objects(im)---# Load 7 clips from the US National Parks. Public Domain :D-clips = [- VideoFileClip(n, audio=False).subclip(18, 22)- for n in [- "../../videos/romo_0004.mov",- "../../videos/apis-0001.mov",- "../../videos/romo_0001.mov",- "../../videos/elma_s0003.mov",- "../../videos/elma_s0002.mov",- "../../videos/calo-0007.mov",- "../../videos/grsm_0005.mov",- ]-]--# fit each clip into its region-comp_clips = [- clip.resize(r.size).with_mask(r.mask).set_pos(r.screenpos)- for clip, r in zip(clips, regions)-]--cc = CompositeVideoClip(comp_clips, im.size)-cc.resize(0.6).write_videofile("../../composition.mp4")--# Note that this particular composition takes quite a long time of-# rendering (about 20s on my computer for just 4s of video).diff --git a/examples/dancing_knights.py b/examples/dancing_knights.pydeleted file mode 100644index d03bdd96..00000000--- a/examples/dancing_knights.py+++ /dev/null@@ -1,150 +0,0 @@-"""-Result: https://www.youtube.com/watch?v=Qu7HJrsEYFg--This is how we can imagine knights dancing at the 15th century, based on a very-serious historical study here: https://www.youtube.com/watch?v=zvCvOC2VwDc--Here is what we do:--0. Get the video of a dancing knight, and a (Creative Commons) audio music file.-1. Load the audio file and automatically find the tempo.-2. Load the video and automatically find a segment that loops well-3. Extract this segment, slow it down so that it matches the audio tempo, and make- it loop forever.-4. Symmetrize this segment so that we will get two knights instead of one-5. Add a title screen and some credits, write to a file.--This example has been originally edited in an IPython Notebook, which makes it-easy to preview and fine-tune each part of the editing.-"""--import os-import sys--from moviepy import *-from moviepy.audio.tools.cuts import find_audio_period-from moviepy.video.tools.cuts import find_video_period---# Next lines are for downloading the required videos from Youtube.-# To do this you must have youtube-dl installed, otherwise you will need to-# download the videos by hand and rename them, as follows:-# https://www.youtube.com/watch?v=zvCvOC2VwDc => knights.mp4-# https://www.youtube.com/watch?v=lkY3Ek9VPtg => frontier.mp4--if not os.path.exists("knights.mp4") or not os.path.exists("frontier.webm"):- retcode1 = os.system("youtube-dl zvCvOC2VwDc -o knights")- retcode2 = os.system("youtube-dl lkY3Ek9VPtg -o frontier")- if retcode1 != 0 or retcode2 != 0:- sys.stderr.write(- "Error downloading videos. Check that you've installed youtube-dl.\n"- )- sys.exit(1)--# ==========---# LOAD, EDIT, ANALYZE THE AUDIO--audio = (- AudioFileClip("frontier.webm")- .subclip((4, 7), (4, 18))- .audio_fadein(1)- .audio_fadeout(1)-)--audio_period = find_audio_period(audio)-print("Analyzed the audio, found a period of %.02f seconds" % audio_period)---# LOAD, EDIT, ANALYZE THE VIDEO--clip = (- VideoFileClip("knights.mp4", audio=False)- .subclip((1, 24.15), (1, 26))- .crop(x1=500, x2=1350)-)--video_period = find_video_period(clip, start_time=0.3)-print("Analyzed the video, found a period of %.02f seconds" % video_period)--edited_right = (- clip.subclip(0, video_period)- .speedx(final_duration=2 * audio_period)- .fx(vfx.loop, duration=audio.duration)- .subclip(0.25)-)--edited_left = edited_right.fx(vfx.mirror_x)--dancing_knights = (- clips_array([[edited_left, edited_right]])- .fadein(1)- .fadeout(1)- .with_audio(audio)- .subclip(0.3)-)---# MAKE THE TITLE SCREEN--txt_title = (- TextClip(- "15th century dancing\n(hypothetical)",- font_size=70,- font="Century-Schoolbook-Roman",- color="white",- )- .margin(top=15, opacity=0)- .with_position(("center", "top"))-)--title = (- CompositeVideoClip([dancing_knights.to_ImageClip(), txt_title])- .fadein(0.5)- .with_duration(3.5)-)---# MAKE THE CREDITS SCREEN--txt_credits = """-CREDITS--Video excerpt: Le combat en armure au XVe siècle-By J. Donzé, D. Jaquet, T. Schmuziger,-Université de Genève, Musée National de Moyen Age--Music: "Frontier", by DOCTOR VOX-Under licence Creative Commons-https://www.youtube.com/user/DOCTORVOXofficial--Video editing © Zulko 2014- Licence Creative Commons (CC BY 4.0)-Edited with MoviePy: http://zulko.github.io/moviepy/-"""--credits = (- TextClip(- txt_credits,- color="white",- font="Century-Schoolbook-Roman",- font_size=35,- kerning=-2,- interline=-1,- bg_color="black",- size=title.size,- )- .with_duration(2.5)- .fadein(0.5)- .fadeout(0.5)-)---# ASSEMBLE EVERYTHING, WRITE TO FILE--final = concatenate_videoclips([title, dancing_knights, credits])--final.write_videofile(- "dancing_knights.mp4", fps=clip.fps, audio_bitrate="1000k", bitrate="4000k"-)diff --git a/examples/example_with_sound.py b/examples/example_with_sound.pydeleted file mode 100644index 37159838..00000000--- a/examples/example_with_sound.py+++ /dev/null@@ -1,64 +0,0 @@-"""-Description of the video:-The screen is split in two parts showing Carry and Audrey at the phone,-talking at the same time, because it is actually two scenes of a same-movie put together.-"""--from moviepy import *-from moviepy.video.tools.drawing import color_split---duration = 6 # duration of the final clip--# LOAD THE MAIN SCENE-# this small video contains the two scenes that we will put together.--main_clip = VideoFileClip("../../videos/charadePhone.mp4")-W, H = main_clip.size---# MAKE THE LEFT CLIP : cut, crop, add a mask--mask = color_split(- (2 * W / 3, H),- p1=(W / 3, H),- p2=(2 * W / 3, 0),- color_1=1,- color_2=0,- gradient_width=2,-)--mask_clip = ImageClip(mask, is_mask=True)--clip_left = (- main_clip.subclip(0, duration).crop(x1=60, x2=60 + 2 * W / 3).with_mask(mask_clip)-)---# MAKE THE RIGHT CLIP : cut, crop, add a mask--mask = color_split(- (2 * W / 3, H), p1=(2, H), p2=(W / 3 + 2, 0), color_1=0, color_2=1, gradient_width=2-)--mask_clip = ImageClip(mask, is_mask=True)--clip_right = (- main_clip.subclip(21, 21 + duration)- .crop(x1=70, x2=70 + 2 * W / 3)- .with_mask(mask_clip)-)---# ASSEMBLE AND WRITE THE MOVIE TO A FILE--cc = CompositeVideoClip(- [- clip_right.set_pos("right").multiply_volume(0.4),- clip_left.set_pos("left").multiply_volume(0.4),- ],- size=(W, H),-)-# cc.preview()-cc.write_videofile("../../biphone3.avi", fps=24, codec="mpeg4")diff --git a/examples/headblur.py b/examples/headblur.pydeleted file mode 100644index ab6e3db4..00000000--- a/examples/headblur.py+++ /dev/null@@ -1,51 +0,0 @@-from moviepy import *-from moviepy.video.tools.interpolators import Trajectory-from moviepy.video.tools.tracking import manual_tracking # noqa 401---# LOAD THE CLIP (subclip 6'51 - 7'01 of a chaplin movie)-clip = VideoFileClip("media/chaplin.mp4")--# MANUAL TRACKING OF THE HEAD--# the next line is for the manual tracking and its saving-# to a file, it must be commented once the tracking has been done-# (after the first run of the script for instance).-# Note that we save the list (ti, xi, yi), not the functions fx and fy--# manual_tracking(clip, fps=6, savefile="blurred_trajectory.txt")---# IF THE MANUAL TRACKING HAS BEEN PREVIOUSLY DONE,-# LOAD THE TRACKING DATA AND CONVERT IT TO TRAJECTORY INTERPOLATORS fx(t), fy(t)--traj = Trajectory.from_file("blurred_trajectory.txt")---# BLUR CHAPLIN'S HEAD IN THE CLIP PASSING xi(t) and yi(t) FUNCTIONS--clip_blurred = clip.fx(vfx.headblur, traj.xi, traj.yi, 25)---# Generate the text, put in on a grey background--txt = TextClip(- "Hey you! \n You're blurry!",- color="grey70",- size=clip.size,- bg_color="grey20",- font="Century-Schoolbook-Italic",- font_size=40,-)---# Concatenate the Chaplin clip with the text clip, add audio--final = concatenate_videoclips([clip_blurred, txt.with_duration(3)]).with_audio(- clip.audio-)--# We write the result to a file. Here we raise the bitrate so that-# the final video is not too ugly.--final.write_videofile("blurredChaplin.mp4")diff --git a/examples/logo.py b/examples/logo.pydeleted file mode 100644index eff7c5b4..00000000--- a/examples/logo.py+++ /dev/null@@ -1,28 +0,0 @@-import numpy as np--from moviepy import *---w, h = moviesize = (720, 380)--duration = 1---def f(t, size, a=np.pi / 3, thickness=20): # noqa D103- w, h = size- v = thickness * np.array([np.cos(a), np.sin(a)])[::-1]- center = [int(t * w / duration), h / 2]- return biGradientScreen(size, center, v, 0.6, 0.0)---logo = ImageClip("../../videos/logo_descr.png").resize(width=w / 2).with_mask(mask)--screen = logo.on_color(moviesize, color=(0, 0, 0), pos="center")--shade = ColorClip(moviesize, color=(0, 0, 0))-mask_frame = lambda t: f(t, moviesize, duration)-shade.mask = VideoClip(is_mask=True, get_frame=mask_frame)--cc = CompositeVideoClip([im.set_pos(2 * ["center"]), shade], size=moviesize)--cc.subclip(0, duration).write_videofile("moviepy_logo.avi", fps=24)diff --git a/examples/masked_credits.py b/examples/masked_credits.pydeleted file mode 100644index 2c130410..00000000--- a/examples/masked_credits.py+++ /dev/null@@ -1,28 +0,0 @@-from moviepy import *-from moviepy.video.tools.credits import credits1---# Load the mountains clip, cut it, slow it down, make it look darker-clip = (- VideoFileClip("../../videos/badl-0001.mov", audio=False)- .subclip(37, 46)- .speedx(0.4)- .fx(vfx.colorx, 0.7)-)--# Save the first frame to later make a mask with GIMP (only once)-# ~ clip.save_frame('../../credits/mountainMask2.png')---# Load the mountain mask made with GIMP-mountainmask = ImageClip("../../credits/mountainMask2.png", is_mask=True)--# Generate the credits from a text file-credits = credits1("../../credits/credits.txt", 3 * clip.w / 4)-scrolling_credits = credits.set_pos(lambda t: ("center", -10 * t))---# Make the credits scroll. Here, 10 pixels per second-final = CompositeVideoClip([clip, scrolling_credits, clip.with_mask(mountainmask)])--final.subclip(8, 10).write_videofile("../../credits_mountains.avi")diff --git a/examples/moving_letters.py b/examples/moving_letters.pydeleted file mode 100644index 19c85b2b..00000000--- a/examples/moving_letters.py+++ /dev/null@@ -1,77 +0,0 @@-import numpy as np--from moviepy import *-from moviepy.video.tools.segmenting import find_objects---# WE CREATE THE TEXT THAT IS GOING TO MOVE, WE CENTER IT.--screensize = (720, 460)-txtClip = TextClip(- "Cool effect", color="white", font="Amiri-Bold", kerning=5, font_size=100-)-cvc = CompositeVideoClip([txtClip.with_position("center")], size=screensize)--# THE NEXT FOUR FUNCTIONS DEFINE FOUR WAYS OF MOVING THE LETTERS---# helper function-rotMatrix = lambda a: np.array([[np.cos(a), np.sin(a)], [-np.sin(a), np.cos(a)]])---def vortex(screenpos, i, nletters): # noqa D103- d = lambda t: 1.0 / (0.3 + t**8) # damping- a = i * np.pi / nletters # angle of the movement- v = rotMatrix(a).dot([-1, 0])- if i % 2:- v[1] = -v[1]- return lambda t: screenpos + 400 * d(t) * rotMatrix(0.5 * d(t) * a).dot(v)---def cascade(screenpos, i, nletters): # noqa D103- v = np.array([0, -1])- d = lambda t: 1 if t < 0 else abs(np.sinc(t) / (1 + t**4))- return lambda t: screenpos + v * 400 * d(t - 0.15 * i)---def arrive(screenpos, i, nletters): # noqa D103- v = np.array([-1, 0])- d = lambda t: max(0, 3 - 3 * t)- return lambda t: screenpos - 400 * v * d(t - 0.2 * i)---def vortexout(screenpos, i, nletters): # noqa D103- d = lambda t: max(0, t) # damping- a = i * np.pi / nletters # angle of the movement- v = rotMatrix(a).dot([-1, 0])- if i % 2:- v[1] = -v[1]- return lambda t: screenpos + 400 * d(t - 0.1 * i) * rotMatrix(-0.2 * d(t) * a).dot(- v- )---# WE USE THE PLUGIN find_objects TO LOCATE AND SEPARATE EACH LETTER--letters = find_objects(cvc) # a list of ImageClips---# WE ANIMATE THE LETTERS---def moveLetters(letters, funcpos): # noqa D103- return [- letter.with_position(funcpos(letter.screenpos, i, len(letters)))- for i, letter in enumerate(letters)- ]---clips = [- CompositeVideoClip(moveLetters(letters, funcpos), size=screensize).subclip(0, 5)- for funcpos in [vortex, cascade, arrive, vortexout]-]--# WE CONCATENATE EVERYTHING AND WRITE TO A FILE--final_clip = concatenate_videoclips(clips)-final_clip.write_videofile("../../coolTextEffects.avi", fps=25, codec="mpeg4")diff --git a/examples/painting_effect.py b/examples/painting_effect.pydeleted file mode 100644index 78199698..00000000--- a/examples/painting_effect.py+++ /dev/null@@ -1,42 +0,0 @@-"""Requires scikit-image installed (for ``vfx.painting``)."""--from moviepy import *---# WE TAKE THE SUBCLIPS WHICH ARE 2 SECONDS BEFORE & AFTER THE FREEZE--charade = VideoFileClip("../../videos/charade.mp4")-tfreeze = convert_to_seconds(19.21) # Time of the freeze, 19'21--clip_before = charade.subclip(tfreeze - 2, tfreeze)-clip_after = charade.subclip(tfreeze, tfreeze + 2)---# THE FRAME TO FREEZE--im_freeze = charade.to_ImageClip(tfreeze)-painting = charade.fx(vfx.painting, saturation=1.6, black=0.006).to_ImageClip(tfreeze)--txt = TextClip("Audrey", font="Amiri-regular", font_size=35)--painting_txt = (- CompositeVideoClip([painting, txt.set_pos((10, 180))])- .add_mask()- .with_duration(3)- .crossfadein(0.5)- .crossfadeout(0.5)-)--# FADEIN/FADEOUT EFFECT ON THE PAINTED IMAGE--painting_fading = CompositeVideoClip([im_freeze, painting_txt])--# FINAL CLIP AND RENDERING--final_clip = concatenate_videoclips(- [clip_before, painting_fading.with_duration(3), clip_after]-)--final_clip.write_videofile(- "../../audrey.avi", fps=charade.fps, codec="mpeg4", audio_bitrate="3000k"-)diff --git a/examples/soundtrack.py b/examples/soundtrack.pydeleted file mode 100644index 48adbb99..00000000--- a/examples/soundtrack.py+++ /dev/null@@ -1,18 +0,0 @@-"""A simple test script on how to put a soundtrack to a movie."""-from moviepy import *---# We load a movie and replace the sound with some music:--movie = VideoFileClip("../../videos/dam.mov").with_audio(- AudioFileClip("../../sounds/startars.ogg")-)---# If the soundtrack is longer than the movie, then at the end of the clip-# it will freeze on the last frame and wait for the clip to finish.-# If you don't want that, uncomment the next line:--# ~ movie.audio = movie.audio.with_duration(movie.duration)--movie.write_videofile("../../test_soundtrack.avi", codec="mpeg4")diff --git a/examples/star_worms.py b/examples/star_worms.pydeleted file mode 100644index 61aa80c8..00000000--- a/examples/star_worms.py+++ /dev/null@@ -1,184 +0,0 @@-"""-Description of the video:-Mimic of Star Wars' opening title. A text with a (false)-perspective effect goes towards the end of space, on a-background made of stars. Slight fading effect on the text.-"""--import numpy as np-from skimage import transform as tf--from moviepy import *-from moviepy.video.tools.drawing import color_gradient---# RESOLUTION--w = 720-h = w * 9 // 16 # 16/9 screen-moviesize = w, h---# THE RAW TEXT-txt = "\n".join(- [- "A long time ago, in a faraway galaxy,",- "there lived a prince and a princess",- "who had never seen the stars, for they",- "lived deep underground.",- "",- "Many years before, the prince's",- "grandfather had ventured out to the",- "surface and had been burnt to ashes by",- "solar winds.",- "",- "One day, as the princess was coding",- "and the prince was shopping online, a",- "meteor landed just a few megameters",- "from the couple's flat.",- ]-)---# Add blanks-txt = 10 * "\n" + txt + 10 * "\n"---# CREATE THE TEXT IMAGE---clip_txt = TextClip(- txt, color="white", align="West", font_size=25, font="Xolonium-Bold", method="label"-)---# SCROLL THE TEXT IMAGE BY CROPPING A MOVING AREA--txt_speed = 27-fl = lambda gf, t: gf(t)[int(txt_speed * t) : int(txt_speed * t) + h, :]-moving_txt = clip_txt.transform(fl, apply_to=["mask"])---# ADD A VANISHING EFFECT ON THE TEXT WITH A GRADIENT MASK--grad = color_gradient(- moving_txt.size, p1=(0, 2 * h / 3), p2=(0, h / 4), color_1=0.0, color_2=1.0-)-gradmask = ImageClip(grad, is_mask=True)-fl = lambda pic: np.minimum(pic, gradmask.img)-moving_txt.mask = moving_txt.mask.image_transform(fl)---# WARP THE TEXT INTO A TRAPEZOID (PERSPECTIVE EFFECT)---def trapzWarp(pic, cx, cy, is_mask=False):- """Complicated function (will be latex packaged as a fx)."""- Y, X = pic.shape[:2]- src = np.array([[0, 0], [X, 0], [X, Y], [0, Y]])- dst = np.array([[cx * X, cy * Y], [(1 - cx) * X, cy * Y], [X, Y], [0, Y]])- tform = tf.ProjectiveTransform()- tform.estimate(src, dst)- im = tf.warp(pic, tform.inverse, output_shape=(Y, X))- return im if is_mask else (im * 255).astype("uint8")---fl_im = lambda pic: trapzWarp(pic, 0.2, 0.3)-fl_mask = lambda pic: trapzWarp(pic, 0.2, 0.3, is_mask=True)-warped_txt = moving_txt.image_transform(fl_im)-warped_txt.mask = warped_txt.mask.image_transform(fl_mask)---# BACKGROUND IMAGE, DARKENED AT 60%--stars = ImageClip("../../videos/stars.jpg")-stars_darkened = stars.image_transform(lambda pic: (0.6 * pic).astype("int16"))---# COMPOSE THE MOVIE--final = CompositeVideoClip(- [stars_darkened, warped_txt.set_pos(("center", "bottom"))], size=moviesize-)---# WRITE TO A FILE--final.with_duration(8).write_videofile("starworms.avi", fps=5)--# This script is heavy (30s of computations to render 8s of video)---"""=====================================================================-- CODE FOR THE VIDEO TUTORIAL-- We will now code the video tutorial for this video.- When you think about it, it is a code for a video explaining how to- make another video using some code (this is so meta!).- This code uses the variables of the previous code (it should be placed- after that previous code to work).--====================================================================="""---def annotate(clip, txt, txt_color="white", bg_color=(0, 0, 255)):- """Writes a text at the bottom of the clip."""- txtclip = TextClip(txt, font_size=20, font="Ubuntu-bold", color=txt_color)-- txtclip = txtclip.on_color(- (clip.w, txtclip.h + 6), color=(0, 0, 255), pos=(6, "center")- )-- cvc = CompositeVideoClip([clip, txtclip.set_pos((0, "bottom"))])-- return cvc.with_duration(clip.duration)---def resizeCenter(clip): # noqa D103- return clip.resize(height=h).set_pos("center")---def composeCenter(clip): # noqa D103- return CompositeVideoClip([clip.set_pos("center")], size=moviesize)---annotated_clips = [- annotate(clip, text)- for clip, text in [- (- composeCenter(resizeCenter(stars)).subclip(0, 3),- "This is a public domain picture of stars",- ),- (- CompositeVideoClip([stars], moviesize).subclip(0, 3),- "We only keep one part.",- ),- (- CompositeVideoClip([stars_darkened], moviesize).subclip(0, 3),- "We darken it a little.",- ),- (- composeCenter(resizeCenter(clip_txt)).subclip(0, 3),- "We generate a text image.",- ),- (- composeCenter(moving_txt.with_mask(None)).subclip(6, 9),- "We scroll the text by cropping a moving region of it.",- ),- (- composeCenter(gradmask.to_RGB()).subclip(0, 2),- "We add this mask to the clip.",- ),- (composeCenter(moving_txt).subclip(6, 9), "Here is the result"),- (- composeCenter(warped_txt).subclip(6, 9),- "We now warp this clip in a trapezoid.",- ),- (final.subclip(6, 9), "We finally superimpose with the stars."),- ]-]--# Concatenate and write to a file--concatenate_videoclips(annotated_clips).write_videofile("tutorial.avi", fps=5)diff --git a/examples/the_end.py b/examples/the_end.pydeleted file mode 100644index 18608b0c..00000000--- a/examples/the_end.py+++ /dev/null@@ -1,28 +0,0 @@-from moviepy import *-from moviepy.video.tools.drawing import circle---clip = (- VideoFileClip("../../videos/badl-0006.mov", audio=False).subclip(26, 31).add_mask()-)--w, h = clip.size--# The mask is a circle with vanishing radius r(t) = 800-200*t-clip.mask.get_frame = lambda t: circle(- screensize=(clip.w, clip.h),- center=(clip.w / 2, clip.h / 4),- radius=max(0, int(800 - 200 * t)),- color=1,- bg_color=0,- blur=4,-)---the_end = TextClip(- "The End", font="Amiri-bold", color="white", font_size=70-).with_duration(clip.duration)--final = CompositeVideoClip([the_end.set_pos("center"), clip], size=clip.size)--final.write_videofile("../../theEnd.avi")diff --git a/examples/ukulele_concerto.py b/examples/ukulele_concerto.pydeleted file mode 100644index dca60a7b..00000000--- a/examples/ukulele_concerto.py+++ /dev/null@@ -1,51 +0,0 @@-from moviepy import *---# UKULELE CLIP, OBTAINED BY CUTTING AND CROPPING-# RAW FOOTAGE--ukulele = (- VideoFileClip("../../videos/moi_ukulele.MOV", audio=False)- .subclip(60 + 33, 60 + 50)- .crop(486, 180, 1196, 570)-)--w, h = moviesize = ukulele.size--# THE PIANO FOOTAGE IS DOWNSIZED, HAS A WHITE MARGIN, IS-# IN THE BOTTOM RIGHT CORNER--piano = (- VideoFileClip("../../videos/douceamb.mp4", audio=False)- .subclip(30, 50)- .resize((w / 3, h / 3))- .margin(6, color=(255, 255, 255)) # one third of the total screen- .margin(bottom=20, right=20, opacity=0) # white margin- .set_pos(("right", "bottom")) # transparent-)---# A CLIP WITH A TEXT AND A BLACK SEMI-OPAQUE BACKGROUND--txt = TextClip(- "V. Zulkoninov - Ukulele Sonata", font="Amiri-regular", color="white", font_size=24-)--txt_col = txt.on_color(- size=(ukulele.w + txt.w, txt.h - 10),- color=(0, 0, 0),- pos=(6, "center"),- col_opacity=0.6,-)---# THE TEXT CLIP IS ANIMATED.-# I am *NOT* explaining the formula, understands who can/want.-txt_mov = txt_col.set_pos(- lambda t: (max(w / 30, int(w - 0.5 * w * t)), max(5 * h / 6, int(100 * t)))-)---# FINAL ASSEMBLY-final = CompositeVideoClip([ukulele, txt_mov, piano])-final.subclip(0, 5).write_videofile("../../ukulele.avi", fps=24, codec="libx264")diff --git a/media/doc_medias/example.mp4 b/media/doc_medias/example.mp4new file mode 100644index 00000000..a44efe2fBinary files /dev/null and b/media/doc_medias/example.mp4 differdiff --git a/media/doc_medias/example.png b/media/doc_medias/example.pngnew file mode 100644index 00000000..a41694b6Binary files /dev/null and b/media/doc_medias/example.png differdiff --git a/media/doc_medias/example.ttf b/media/doc_medias/example.ttfnew file mode 100644index 00000000..6ef9957bBinary files /dev/null and b/media/doc_medias/example.ttf differdiff --git a/media/doc_medias/example.txt b/media/doc_medias/example.txtnew file mode 100644index 00000000..3be11c69--- /dev/null+++ b/media/doc_medias/example.txt@@ -0,0 +1 @@+Lorem ipsumdiff --git a/media/doc_medias/example.wav b/media/doc_medias/example.wavnew file mode 100644index 00000000..6ebbaaf9Binary files /dev/null and b/media/doc_medias/example.wav differdiff --git a/media/doc_medias/example2.mp4 b/media/doc_medias/example2.mp4new file mode 100644index 00000000..81d126e2Binary files /dev/null and b/media/doc_medias/example2.mp4 differdiff --git a/media/doc_medias/example2.png b/media/doc_medias/example2.pngnew file mode 100644index 00000000..8d29ed5dBinary files /dev/null and b/media/doc_medias/example2.png differdiff --git a/media/doc_medias/example2.wav b/media/doc_medias/example2.wavnew file mode 100644index 00000000..47842edeBinary files /dev/null and b/media/doc_medias/example2.wav differdiff --git a/media/doc_medias/example3.mp4 b/media/doc_medias/example3.mp4new file mode 100644index 00000000..b7d123a1Binary files /dev/null and b/media/doc_medias/example3.mp4 differdiff --git a/media/doc_medias/example3.png b/media/doc_medias/example3.pngnew file mode 100644index 00000000..773f8c7fBinary files /dev/null and b/media/doc_medias/example3.png differdiff --git a/media/doc_medias/example3.wav b/media/doc_medias/example3.wavnew file mode 100644index 00000000..11849e89Binary files /dev/null and b/media/doc_medias/example3.wav differdiff --git a/media/doc_medias/example_img_dir/image_0001.jpg b/media/doc_medias/example_img_dir/image_0001.jpgnew file mode 100644index 00000000..94095efcBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0001.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0002.jpg b/media/doc_medias/example_img_dir/image_0002.jpgnew file mode 100644index 00000000..392570d0Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0002.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0003.jpg b/media/doc_medias/example_img_dir/image_0003.jpgnew file mode 100644index 00000000..0b6196e8Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0003.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0004.jpg b/media/doc_medias/example_img_dir/image_0004.jpgnew file mode 100644index 00000000..4dcadc10Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0004.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0005.jpg b/media/doc_medias/example_img_dir/image_0005.jpgnew file mode 100644index 00000000..04c83926Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0005.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0006.jpg b/media/doc_medias/example_img_dir/image_0006.jpgnew file mode 100644index 00000000..5b9d99deBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0006.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0007.jpg b/media/doc_medias/example_img_dir/image_0007.jpgnew file mode 100644index 00000000..cbff80a5Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0007.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0008.jpg b/media/doc_medias/example_img_dir/image_0008.jpgnew file mode 100644index 00000000..4ad276d5Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0008.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0009.jpg b/media/doc_medias/example_img_dir/image_0009.jpgnew file mode 100644index 00000000..0fabce73Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0009.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0010.jpg b/media/doc_medias/example_img_dir/image_0010.jpgnew file mode 100644index 00000000..a2bbae41Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0010.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0011.jpg b/media/doc_medias/example_img_dir/image_0011.jpgnew file mode 100644index 00000000..25e5eb4cBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0011.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0012.jpg b/media/doc_medias/example_img_dir/image_0012.jpgnew file mode 100644index 00000000..85cd32ddBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0012.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0013.jpg b/media/doc_medias/example_img_dir/image_0013.jpgnew file mode 100644index 00000000..88e2cf4bBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0013.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0014.jpg b/media/doc_medias/example_img_dir/image_0014.jpgnew file mode 100644index 00000000..e84ccaddBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0014.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0015.jpg b/media/doc_medias/example_img_dir/image_0015.jpgnew file mode 100644index 00000000..2a2984daBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0015.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0016.jpg b/media/doc_medias/example_img_dir/image_0016.jpgnew file mode 100644index 00000000..47d55b9fBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0016.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0017.jpg b/media/doc_medias/example_img_dir/image_0017.jpgnew file mode 100644index 00000000..cd069311Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0017.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0018.jpg b/media/doc_medias/example_img_dir/image_0018.jpgnew file mode 100644index 00000000..24279c0aBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0018.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0019.jpg b/media/doc_medias/example_img_dir/image_0019.jpgnew file mode 100644index 00000000..8c22d03dBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0019.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0020.jpg b/media/doc_medias/example_img_dir/image_0020.jpgnew file mode 100644index 00000000..0b906298Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0020.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0021.jpg b/media/doc_medias/example_img_dir/image_0021.jpgnew file mode 100644index 00000000..98931fb5Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0021.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0022.jpg b/media/doc_medias/example_img_dir/image_0022.jpgnew file mode 100644index 00000000..fe37ee0eBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0022.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0023.jpg b/media/doc_medias/example_img_dir/image_0023.jpgnew file mode 100644index 00000000..2e39ea07Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0023.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0024.jpg b/media/doc_medias/example_img_dir/image_0024.jpgnew file mode 100644index 00000000..e0db4664Binary files /dev/null and b/media/doc_medias/example_img_dir/image_0024.jpg differdiff --git a/media/doc_medias/example_img_dir/image_0025.jpg b/media/doc_medias/example_img_dir/image_0025.jpgnew file mode 100644index 00000000..22130e8fBinary files /dev/null and b/media/doc_medias/example_img_dir/image_0025.jpg differdiff --git a/media/doc_medias/example_mask.jpg b/media/doc_medias/example_mask.jpgnew file mode 100644index 00000000..a92b6c58Binary files /dev/null and b/media/doc_medias/example_mask.jpg differdiff --git a/media/doc_medias/example_mask.mp4 b/media/doc_medias/example_mask.mp4new file mode 100644index 00000000..d43d9bf8Binary files /dev/null and b/media/doc_medias/example_mask.mp4 differdiff --git a/setup.py b/setup.pyindex c0e0e601..b0fbf2e5 100644--- a/setup.py+++ b/setup.py@@ -81,6 +81,7 @@ doc_reqs = ["numpydoc<2.0","Sphinx==6.*","pydata-sphinx-theme==0.13",+ "sphinx_design",]test_reqs = [