This commit is contained in:
Markos Gogoulos 2025-05-26 11:47:44 +03:00
parent 5822c0ae9f
commit aa94ae5b89

View File

@ -912,7 +912,7 @@ def produce_video_chapters(chapter_id):
timestamp = chapter["start"] timestamp = chapter["start"]
title = chapter["title"] title = chapter["title"]
output_filename = f"thumbnail_{i:02d}.jpg" # noqa output_filename = f"thumbnail_{i:02d}.jpg" # noqa
output_path = os.path.join(output_folder, output_filename) output_path = os.path.join(output_folder, output_filename)
command = [settings.FFMPEG_COMMAND, "-y", "-ss", str(timestamp), "-i", video_path, "-vframes", "1", "-q:v", "2", "-s", f"{width}x{height}", output_path] command = [settings.FFMPEG_COMMAND, "-y", "-ss", str(timestamp), "-i", video_path, "-vframes", "1", "-q:v", "2", "-s", f"{width}x{height}", output_path]