This commit is contained in:
eric
2025-12-12 20:22:18 -06:00
parent 8d3f950303
commit b00663aa6c

View File

@@ -1746,7 +1746,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
"-reconnect_streamed", "1",
"-reconnect_at_eof", "1",
"-reconnect_delay_max", "10",
"-http_persistent", "1",
# "-http_persistent", "1", #移除无效的
"-multiple_requests", "1",
# 输入端:让 YouTube 认为这是“完美真人源”
@@ -1756,6 +1756,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
"-thread_queue_size", "32768",
"-user_agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
"-headers", douyin_headers,
"-http_seekable", "0", # 新增:优化 HLS 非可寻址流
"-i", real_url,
# 视频参数YouTube 2026 年权重天花板配置