From e57b938ca381a267c0dba422d04ce8621465ae1e Mon Sep 17 00:00:00 2001 From: Aza Maulana Date: Tue, 29 Sep 2020 22:56:10 +0700 Subject: [PATCH] issue #3: optimization thumbnail generating speed --- bot/plugins/thumbnail_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/plugins/thumbnail_video.py b/bot/plugins/thumbnail_video.py index b826d42f..7c9978de 100644 --- a/bot/plugins/thumbnail_video.py +++ b/bot/plugins/thumbnail_video.py @@ -30,10 +30,10 @@ async def func(filepath): cmd = [ "ffmpeg", "-hide_banner", - "-i", - filepath, '-ss', str(duration), + "-i", + filepath, '-vframes', '1', '-vf',