Stop thumbnail generator attemps after 60 seconds of input file.
This commit is contained in:
parent
8b4fa133d1
commit
48c7a8e8d9
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ def generate_video_thumbnail(filepath, width, height, special={}) -> PIL.Image:
|
|||
if 'timestamp' in special:
|
||||
timestamp_choices = [float(special['timestamp'])]
|
||||
else:
|
||||
timestamp_choices = list(range(0, int(duration), 3))
|
||||
timestamp_choices = list(range(0, min(int(duration), 60), 3))
|
||||
|
||||
image = None
|
||||
for this_time in timestamp_choices:
|
||||
|
|
|
|||
Loading…
Reference in a new issue