Commit 6ba8ecc0 by xiaoqi

test

parent 9457829c
Showing with 12 additions and 1 deletions
......@@ -16,7 +16,7 @@ from moviepy import VideoFileClip, clips_array
p_codec = "libx264"
# p_preset = "veryslow"
p_preset = "medium"
p_preset = "veryslow"
p_bitrate = "2000k"
p_threads = 24
p_crf = "22"
......
import sys
import convert_webp_2_mp4
# sys.argv 是一个列表,第一个元素是脚本名,后续是传递的参数
script_name = sys.argv[0] # 脚本名
webp_path_or_dir = sys.argv[1] # 第一个参数
crf = sys.argv[2] # 第一个参数
# convert_webp_2_mp4.p_crf = crf
# convert_webp_2_mp4.check_file_or_dir(webp_path_or_dir)
print(f"输入的CRF{crf} 目录{webp_path_or_dir}")
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