mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Improvements to thumbnail generation and detail page
This commit is contained in:
@@ -4,7 +4,7 @@ import os
|
||||
import json
|
||||
import threading
|
||||
from utilities.render_worker import RenderStatus
|
||||
from utilities.ffmpeg_presets import generate_fast_preview, save_first_frame
|
||||
from utilities.ffmpeg_presets import generate_thumbnail, save_first_frame
|
||||
|
||||
|
||||
def post_job_to_server(input_path, job_list, client, server_port=8080):
|
||||
@@ -22,7 +22,7 @@ def generate_thumbnail_for_job(job, thumb_video_path, thumb_image_path, max_widt
|
||||
def generate_thumb_thread(source):
|
||||
in_progress_path = thumb_video_path + '_IN-PROGRESS'
|
||||
subprocess.run(['touch', in_progress_path])
|
||||
generate_fast_preview(source_path=source, dest_path=thumb_video_path, max_width=max_width)
|
||||
generate_thumbnail(source_path=source, dest_path=thumb_video_path, max_width=max_width)
|
||||
os.remove(in_progress_path)
|
||||
|
||||
# Determine best source file to use for thumbs
|
||||
|
||||
Reference in New Issue
Block a user