Skip to content

Video editing with Python

PEP 8 compatible

George Pantelis42e381848054
diff --git a/moviepy/video/io/ffmpeg_tools.py b/moviepy/video/io/ffmpeg_tools.py
index 31af2cc0..98a194df 100644
--- a/moviepy/video/io/ffmpeg_tools.py
+++ b/moviepy/video/io/ffmpeg_tools.py
@@ -120,8 +120,8 @@ def ffmpeg_resize(video, output, size):
subprocess_call(cmd)
-def ffmpeg_stabilized_video(filename, output = None):
- """
+def ffmpeg_stabilized_video(filename, output=None):
+ """
Makes a new video file, from the given one
which is more stable
@@ -135,11 +135,11 @@ def ffmpeg_stabilized_video(filename, output = None):
"""
name, ext = os.path.splitext(filename)
if not output:
- output = "%s_stabilized%s"%(name, ext)
+ output = output = "{0}_stabilized{1}".format(name, ext)
cmd = [get_setting("FFMPEG_BINARY"), "-i",
- filename, "-vf",
- "deshake", output]
-
+ filename, "-vf",
+ "deshake", output]
subprocess_call(cmd)
+