mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
whv
This commit is contained in:
parent
5822c0ae9f
commit
aa94ae5b89
@ -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]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user