Skip to content

Video editing with Python

fix flake8 linting

osaajania195334b61dc
diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py
index e571602d..4e1c7ce1 100644
--- a/moviepy/video/VideoClip.py
+++ b/moviepy/video/VideoClip.py
@@ -724,7 +724,7 @@ class VideoClip(Clip):
The return is a Pillow Image
Parameters
- -----------
+ ----------
backrgound (Image)
The background image to apply current clip on top of
if the background image is transparent it must be given as a RGBA image
diff --git a/moviepy/video/compositing/CompositeVideoClip.py b/moviepy/video/compositing/CompositeVideoClip.py
index d38c3f6e..7639bb2d 100644
--- a/moviepy/video/compositing/CompositeVideoClip.py
+++ b/moviepy/video/compositing/CompositeVideoClip.py
@@ -129,8 +129,7 @@ class CompositeVideoClip(VideoClip):
def frame_function(self, t):
"""The clips playing at time `t` are blitted over one another."""
-
- # For the mask we recalculate the final transparency will need
+ # For the mask we recalculate the final transparency we'll need
# to apply on the result image
if self.is_mask:
mask = np.zeros((self.size[1], self.size[0]), dtype=float)
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py
index 946fd54d..f5c60151 100644
--- a/moviepy/video/io/ffmpeg_reader.py
+++ b/moviepy/video/io/ffmpeg_reader.py
@@ -98,9 +98,11 @@ class FFMPEG_VideoReader:
else:
i_arg = ["-i", self.filename]
- # For webm video (vp8 and vp9) with transparent layer, force libvpx/libvpx-vp9 as ffmpeg
- # native webm decoder dont decode alpha layer
- # (see https://www.reddit.com/r/ffmpeg/comments/fgpyfb/help_with_webm_with_alpha_channel/)
+ # For webm video (vp8 and vp9) with transparent layer, force libvpx/libvpx-vp9
+ # as ffmpeg native webm decoder dont decode alpha layer
+ # (see
+ # https://www.reddit.com/r/ffmpeg/comments/fgpyfb/help_with_webm_with_alpha_channel/
+ # )
if self.depth == 4:
codec_name = self.infos.get("video_codec_name")
if codec_name == "vp9":
diff --git a/moviepy/video/tools/drawing.py b/moviepy/video/tools/drawing.py
index cfbd1965..253de9b7 100644
--- a/moviepy/video/tools/drawing.py
+++ b/moviepy/video/tools/drawing.py
@@ -3,7 +3,6 @@ methods that are difficult to do with the existing Python libraries.
"""
import numpy as np
-from PIL import Image
def color_gradient(