Skip to content

Video editing with Python

Fixed MoviePy being displayed as Moviepy in some places. (#1885)

Evie3ba7329ae598
diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
index 77175950..5935156a 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.md
+++ b/.github/ISSUE_TEMPLATE/bug-report.md
@@ -30,6 +30,6 @@ clip = ColorClip((600, 400), color=(255, 100, 0), duration=2)
#### Specifications
- Python Version:
- - Moviepy Version:
+ - MoviePy Version:
- Platform Name:
- Platform Version:
diff --git a/docs/docker.rst b/docs/docker.rst
index ad394774..3d9fcd86 100644
--- a/docs/docker.rst
+++ b/docs/docker.rst
@@ -1,4 +1,4 @@
-Moviepy Docker
+MoviePy Docker
===============
Prerequisites
diff --git a/docs/gallery.rst b/docs/gallery.rst
index dd55a66b..de45c483 100644
--- a/docs/gallery.rst
+++ b/docs/gallery.rst
@@ -6,7 +6,7 @@ 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
+Videos edited with MoviePy
---------------------------
diff --git a/moviepy/tools.py b/moviepy/tools.py
index 8817c2d9..a260e75b 100644
--- a/moviepy/tools.py
+++ b/moviepy/tools.py
@@ -28,7 +28,7 @@ def subprocess_call(cmd, logger="bar"):
Set logger to None or a custom Proglog logger to avoid printings.
"""
logger = proglog.default_bar_logger(logger)
- logger(message="Moviepy - Running:\n>>> " + " ".join(cmd))
+ logger(message="MoviePy - Running:\n>>> " + " ".join(cmd))
popen_params = cross_platform_popen_params(
{"stdout": sp.DEVNULL, "stderr": sp.PIPE, "stdin": sp.DEVNULL}
@@ -40,10 +40,10 @@ def subprocess_call(cmd, logger="bar"):
proc.stderr.close()
if proc.returncode:
- logger(message="Moviepy - Command returned an error")
+ logger(message="MoviePy - Command returned an error")
raise IOError(err.decode("utf8"))
else:
- logger(message="Moviepy - Command successful")
+ logger(message="MoviePy - Command successful")
del proc
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py
index 76e19e47..a6cc711b 100644
--- a/moviepy/video/VideoClip.py
+++ b/moviepy/video/VideoClip.py
@@ -364,7 +364,7 @@ class VideoClip(Clip):
# enough cpu for multiprocessing ? USELESS RIGHT NOW, WILL COME AGAIN
# enough_cpu = (multiprocessing.cpu_count() > 1)
- logger(message="Moviepy - Building video %s." % filename)
+ logger(message="MoviePy - Building video %s." % filename)
if make_audio:
self.audio.write_audiofile(
audiofile,
@@ -395,7 +395,7 @@ class VideoClip(Clip):
if remove_temp and make_audio:
if os.path.exists(audiofile):
os.remove(audiofile)
- logger(message="Moviepy - video ready %s" % filename)
+ logger(message="MoviePy - video ready %s" % filename)
@requires_duration
@use_clip_fps_by_default
@@ -441,7 +441,7 @@ class VideoClip(Clip):
"""
logger = proglog.default_bar_logger(logger)
# Fails on GitHub macos CI
- # logger(message="Moviepy - Writing frames %s." % name_format)
+ # logger(message="MoviePy - Writing frames %s." % name_format)
timings = np.arange(0, self.duration, 1.0 / fps)
@@ -450,7 +450,7 @@ class VideoClip(Clip):
name = name_format % i
filenames.append(name)
self.save_frame(name, t, with_mask=with_mask)
- # logger(message="Moviepy - Done writing frames %s." % name_format)
+ # logger(message="MoviePy - Done writing frames %s." % name_format)
return filenames
@@ -1353,7 +1353,7 @@ class TextClip(ImageClip):
# The first 5 lines are header information, not colors, so ignore
return [line.split(" ")[0] for line in lines[5:]]
else:
- raise Exception("Moviepy Error: Argument must equal 'font' or 'color'")
+ raise Exception("MoviePy Error: Argument must equal 'font' or 'color'")
@staticmethod
def search(string, arg):
diff --git a/moviepy/video/compositing/concatenate.py b/moviepy/video/compositing/concatenate.py
index 4e28504a..cbdea828 100644
--- a/moviepy/video/compositing/concatenate.py
+++ b/moviepy/video/compositing/concatenate.py
@@ -102,7 +102,7 @@ def concatenate_videoclips(
)
else:
raise Exception(
- "Moviepy Error: The 'method' argument of "
+ "MoviePy Error: The 'method' argument of "
"concatenate_videoclips must be 'chain' or 'compose'"
)
diff --git a/moviepy/video/io/ImageSequenceClip.py b/moviepy/video/io/ImageSequenceClip.py
index fd939c49..5022b902 100644
--- a/moviepy/video/io/ImageSequenceClip.py
+++ b/moviepy/video/io/ImageSequenceClip.py
@@ -89,7 +89,7 @@ class ImageSequenceClip(VideoClip):
image1 = imread(image)
if size != image1.shape:
raise Exception(
- "Moviepy: ImageSequenceClip requires all images to be the same size"
+ "MoviePy: ImageSequenceClip requires all images to be the same size"
)
self.fps = fps
diff --git a/moviepy/video/io/ffmpeg_writer.py b/moviepy/video/io/ffmpeg_writer.py
index 7032be0a..71dfeff6 100644
--- a/moviepy/video/io/ffmpeg_writer.py
+++ b/moviepy/video/io/ffmpeg_writer.py
@@ -240,7 +240,7 @@ def ffmpeg_write_video(
logfile = open(filename + ".log", "w+")
else:
logfile = None
- logger(message="Moviepy - Writing video %s\n" % filename)
+ logger(message="MoviePy - Writing video %s\n" % filename)
if not pixel_format:
pixel_format = "rgba" if with_mask else "rgb24"
with FFMPEG_VideoWriter(
@@ -269,7 +269,7 @@ def ffmpeg_write_video(
if write_logfile:
logfile.close()
- logger(message="Moviepy - Done !")
+ logger(message="MoviePy - Done !")
def ffmpeg_write_image(filename, image, logfile=False, pixel_format=None):
diff --git a/tests/test_editor.py b/tests/test_editor.py
index c1ae48dd..98bf5e76 100644
--- a/tests/test_editor.py
+++ b/tests/test_editor.py
@@ -1,4 +1,4 @@
-"""Moviepy editor tests."""
+"""MoviePy editor tests."""
import importlib
import io