diff --git a/README.md b/README.md index aa2c829..6642ee4 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Options: Height of each thumbnail. Total number of thumbnails per line. Output. + Number of files to process in parallel ``` ## Example diff --git a/generator b/generator index 164862c..5b2044a 100755 --- a/generator +++ b/generator @@ -16,6 +16,7 @@ Options: Height of each thumbnail. Total number of thumbnails per line. Output. + Number of files to process in parallel """ from docopt import docopt @@ -23,6 +24,7 @@ from moviepy.editor import VideoFileClip from PIL import Image from click import progressbar from collections import namedtuple +from multiprocessing import Pool, cpu_count import glob import os import random @@ -39,11 +41,11 @@ def generate_video_thumbnails(args): input_path = args['