Skip to content

Commit

Permalink
Merge pull request #2 from gpantelis/gpantelis-patch-2
Browse files Browse the repository at this point in the history
make the code PEP8 compatible
  • Loading branch information
gpantelis authored Jun 5, 2017
2 parents 40a2d96 + 728a066 commit c313fdb
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions moviepy/video/io/ffmpeg_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,28 +67,29 @@ def ffmpeg_resize(video,output,size):

subprocess_call(cmd)

def ffmpeg_stabilaze_video(filename,output = None):
def ffmpeg_stabilize_video(filename, output = None):
"""
Makes a new video file , from the given one
Makes a new video file, from the given one
which is more stable
Parameters
Parameters
-----------
filename
The name of the shaky video
filename
The name of the shaky video
output
The name of new stabilazed video
"""
output
The name of new stabilazed video
"""

name,ext = os.path.splitext(filename)
name, ext = os.path.splitext(filename)
if not output:
output = "%s_stabilazed%s"%(name,ext)
output = "%s_stabilazed%s"%(name, ext)

cmd = [get_setting("FFMPEG_BINARY"),"-i",
filename,"-vf",
"deshake",output]
cmd = [get_setting("FFMPEG_BINARY"), "-i",
filename, "-vf",
"deshake", output]

subprocess_call(cmd)

0 comments on commit c313fdb

Please sign in to comment.