def ffmpeg_movie_from_frames(filename, folder, fps, digits=6):
 s = (('%' + ('%02d' % digits)) + 'd.png')
 cmd = [get_setting('FFMPEG_BINARY'), '-y', '-f', 'image2', '-r', ('%d' % fps), '-i', ((os.path.join(folder, folder) + '/') + s), '-b', ('%dk' % bitrate), '-r', ('%d' % self.fps), filename]
 subprocess_call(cmd)

def ffmpeg_movie_from_frames ( filename , folder , fps , digits = 6 ) : s = ( ( '%' + ( '%02d' % digits ) ) + 'd.png' ) cmd = [ get_setting ( 'FFMPEG_BINARY' ) , '-y' , '-f' , 'image2' , '-r' , ( '%d' % fps ) , '-i' , ( ( os . path . join ( folder , folder ) + '/' ) + s ) , '-b' , ( '%dk' % bitrate ) , '-r' , ( '%d' % self . fps ) , filename ] subprocess_call ( cmd )
writes a movie out of the frames in a folder .