Skip to content

Commit

Permalink
Merge pull request #710 from cclauss/patch-6
Browse files Browse the repository at this point in the history
Fixes `ffmpeg_movie_from_frames()` and `ffmpeg_resize()`
  • Loading branch information
tburrows13 authored Feb 12, 2018
2 parents c26e7ac + 7f34677 commit 90c5f82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions moviepy/video/io/ffmpeg_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from moviepy.config import get_setting


def ffmpeg_movie_from_frames(filename, folder, fps, digits=6):
def ffmpeg_movie_from_frames(filename, folder, fps, digits=6, bitrate='v'):
"""
Writes a movie out of the frames (picture files) in a folder.
Almost deprecated.
Expand All @@ -18,7 +18,7 @@ def ffmpeg_movie_from_frames(filename, folder, fps, digits=6):
"-r", "%d"%fps,
"-i", os.path.join(folder,folder) + '/' + s,
"-b", "%dk"%bitrate,
"-r", "%d"%self.fps,
"-r", "%d"%fps,
filename]

subprocess_call(cmd)
Expand Down Expand Up @@ -62,7 +62,7 @@ def ffmpeg_extract_audio(inputfile,output,bitrate=3000,fps=44100):
def ffmpeg_resize(video,output,size):
""" resizes ``video`` to new size ``size`` and write the result
in file ``output``. """
cmd= [get_setting("FFMPEG_BINARY"), "-i", video, "-vf", "scale=%d:%d"%(res[0], res[1]),
cmd= [get_setting("FFMPEG_BINARY"), "-i", video, "-vf", "scale=%d:%d"%(size[0], size[1]),
output]

subprocess_call(cmd)
Expand Down

0 comments on commit 90c5f82

Please sign in to comment.