Commit 7e156b36 authored by Jonny Scholes's avatar Jonny Scholes
Browse files

Make generated thumbnail the size & aspect ratio of the input video

parent 44a6b710
......@@ -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