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
bc491bfe
Unverified
Commit
bc491bfe
authored
Mar 17, 2021
by
seb-b
Committed by
GitHub
Mar 17, 2021
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
Changes
1
Show whitespace changes
Inline
Side-by-side
wagtailvideos/ffmpeg.py
View file @
bc491bfe
...
...
@@ -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