's'
This commit is contained in:
@@ -165,7 +165,8 @@ def start_douyin_youtube_ffplay(
|
||||
if "h264_nvenc" in (enc.stdout or ""):
|
||||
codec_v = "h264_nvenc"
|
||||
video_args = ["-profile:v", "high", "-level", "4.0",
|
||||
"-tune", "ll", "-rc", "vbr", "-cq", "21", "-b:v", b_v]
|
||||
"-tune", "ll", "-rc", "vbr", "-cq", "24",
|
||||
"-b:v", b_v, "-maxrate", maxrate, "-bufsize", bufsize]
|
||||
print("[INFO] 检测到 NVIDIA GPU → 使用 NVENC 硬件加速")
|
||||
except Exception as e:
|
||||
print(f"[WARN] NVENC 检测失败,回退软件编码: {e}")
|
||||
|
||||
Reference in New Issue
Block a user