zhangyong hace 1 año
padre
commit
a2b546c0be
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      video_agc/agc_video_method.py

+ 3 - 3
video_agc/agc_video_method.py

@@ -261,8 +261,8 @@ class AgcVidoe():
             "-threads", str(num_threads),
             *resolution_cmd,  # 添加分辨率参数
             "-vf", f"scale=480:854,{background_cmd},{subtitle_cmd}",  # 添加背景色和字幕
-            "-preset", "medium",  # 添加 medium
-            "-profile:v", "main",  # 指定视频编码的配置文件
+            "-preset", "slow",  # 添加 medium
+            "-profile:v", "high",  # main指定视频编码的配置文件
             "-b:v", "5M",
             "-r", "30",  # 设置帧率为30帧每秒
             "-shortest",  # 保持与音频时长一致
@@ -301,7 +301,7 @@ class AgcVidoe():
             kb_count = int(result[1][1])
             channel = ['douyin', 'kuaishou', 'koubo']
             for platform in channel:
-                limit_count = 35
+                limit_count = 40
                 count = cls.get_link_count(mark, platform)
                 if platform == "douyin" and count >= yhmw_count:
                     continue