Commit c3211600 by xiaoqi

脚本

parent 77402b2a
Showing with 4 additions and 1 deletions
...@@ -53,6 +53,7 @@ sharpening = sys.argv[6] # 第一个参数 ...@@ -53,6 +53,7 @@ sharpening = sys.argv[6] # 第一个参数
denoising = sys.argv[7] # 第一个参数 denoising = sys.argv[7] # 第一个参数
color_enhancement = sys.argv[8] # 第一个参数 color_enhancement = sys.argv[8] # 第一个参数
webp_path_or_dir = sys.argv[9] # 第一个参数 webp_path_or_dir = sys.argv[9] # 第一个参数
codec = sys.argv[10] # 第一个参数
# if not is_null_or_empty(gift_id): # if not is_null_or_empty(gift_id):
# webp_path_or_dir = find_first_file("webp_dir", gift_id) # webp_path_or_dir = find_first_file("webp_dir", gift_id)
# else: # else:
...@@ -63,6 +64,7 @@ if not is_null_or_empty(fps): ...@@ -63,6 +64,7 @@ if not is_null_or_empty(fps):
convert_webp_2_mp4.p_fps = int(fps) convert_webp_2_mp4.p_fps = int(fps)
convert_webp_2_mp4.p_enable_sharpening = sharpening convert_webp_2_mp4.p_enable_sharpening = sharpening
convert_webp_2_mp4.p_bitrate = bitrate convert_webp_2_mp4.p_bitrate = bitrate
convert_webp_2_mp4.p_codec = codec
convert_webp_2_mp4.p_enable_denoising = denoising convert_webp_2_mp4.p_enable_denoising = denoising
convert_webp_2_mp4.p_enable_color_enhancement = color_enhancement convert_webp_2_mp4.p_enable_color_enhancement = color_enhancement
# convert_webp_2_mp4.check_file_or_dir(webp_path_or_dir) # convert_webp_2_mp4.check_file_or_dir(webp_path_or_dir)
...@@ -96,7 +98,8 @@ def get_output_name(): ...@@ -96,7 +98,8 @@ def get_output_name():
parts.append(f"denoising-{denoising}") parts.append(f"denoising-{denoising}")
if not is_null_or_empty(color_enhancement): if not is_null_or_empty(color_enhancement):
parts.append(f"color-{color_enhancement}") parts.append(f"color-{color_enhancement}")
if not is_null_or_empty(codec):
parts.append(f"codec-{codec}")
# 拼接所有部分,并用 '-' 连接 # 拼接所有部分,并用 '-' 连接
output_name = "-".join(parts) output_name = "-".join(parts)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment