Video editing with Python
Fix doc errors (#1000, #1156) (#1159)
Tom Burrows1cd506bccca6
diff --git a/docs/getting_started/videoclips.rst b/docs/getting_started/videoclips.rstindex dbae04b8..56e57a15 100644--- a/docs/getting_started/videoclips.rst+++ b/docs/getting_started/videoclips.rst@@ -169,7 +169,7 @@ MoviePy has default codec names for the most common file extensions. If you wantSometimes 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 ``clip.set_duration``: ::# Make a video showing a flower for 5 seconds- my_clip = Image("flower.jpeg") # has infinite duration+ my_clip = ImageClip("flower.jpeg") # has infinite durationmy_clip.write_videofile("flower.mp4") # Will fail! NO DURATION!my_clip.set_duration(5).write_videofile("flower.mp4") # works!diff --git a/moviepy/video/fx/fadein.py b/moviepy/video/fx/fadein.pyindex 6720a956..270fd5fa 100644--- a/moviepy/video/fx/fadein.py+++ b/moviepy/video/fx/fadein.py@@ -7,7 +7,7 @@ def fadein(clip, duration, initial_color=None):over ``duration`` seconds at the beginning of the clip. Can be used formasks too, where the initial color must be a number between 0 and 1.For cross-fading (progressive appearance or disappearance of a clip- over another clip, see ``composition.crossfade``+ over another clip, see ``transfx.crossfadein``"""if initial_color is None:diff --git a/moviepy/video/fx/fadeout.py b/moviepy/video/fx/fadeout.pyindex 4b7e5723..e1c7cf6f 100644--- a/moviepy/video/fx/fadeout.py+++ b/moviepy/video/fx/fadeout.py@@ -10,7 +10,7 @@ def fadeout(clip, duration, final_color=None):over ``duration`` seconds at the end of the clip. Can be used formasks too, where the final color must be a number between 0 and 1.For cross-fading (progressive appearance or disappearance of a clip- over another clip, see ``composition.crossfade``+ over another clip, see ``transfx.crossfadeout``"""if final_color is None: