Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
7e156b36
Commit
7e156b36
authored
Mar 16, 2021
by
Jonny Scholes
Browse files
Make generated thumbnail the size & aspect ratio of the input video
parent
44a6b710
Changes
1
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/ffmpeg.py
View file @
7e156b36
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment