Unverified Commit bc491bfe authored by seb-b's avatar seb-b Committed by GitHub
Browse files

Merge pull request #77 from neon-jungle/adjust-thumb-size

Make generated thumbnail the size & aspect ratio of the input video
parents 44a6b710 b01ca25b
......@@ -60,7 +60,7 @@ def get_thumbnail(file_path):
'-vcodec', 'mjpeg',
'-vframes', '1',
'-an', '-f', 'rawvideo',
'-s', '320x240',
'-vf', 'scale=iw:-1', # Make thumbnail the size & aspect ratio of the input video
output_file,
], stdin=DEVNULL(), stdout=DEVNULL())
except subprocess.CalledProcessError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment