This commit is contained in:
Markos Gogoulos 2025-05-26 11:45:56 +03:00
parent 77503b38b9
commit 5822c0ae9f
2 changed files with 2 additions and 2 deletions

View File

@ -820,7 +820,7 @@ def seconds_to_timestamp(seconds):
seconds_int = int(seconds_remainder)
milliseconds = int((seconds_remainder - seconds_int) * 1000)
return f"{hours:02d}:{minutes:02d}:{seconds_int:02d}.{milliseconds:03d}"
return f"{hours:02d}:{minutes:02d}:{seconds_int:02d}.{milliseconds:03d}" # noqa
def get_trim_timestamps(media_file_path, timestamps_list, run_ffprobe=False):

View File

@ -912,7 +912,7 @@ def produce_video_chapters(chapter_id):
timestamp = chapter["start"]
title = chapter["title"]
output_filename = f"thumbnail_{i:02d}.jpg"
output_filename = f"thumbnail_{i:02d}.jpg" # noqa
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]