This commit is contained in:
eric
2025-12-12 23:17:27 -06:00
parent 26db3d41ce
commit 2cb81ebb03

12
main.py
View File

@@ -1688,9 +1688,13 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
MAX_RETRY_DELAY = 90
INITIAL_RETRY_DELAY = 3
NO_FRAME_TIMEOUT = 120
START_CHECK_AFTER = 25
STALE_OUTPUT_SECONDS = 40
# NO_FRAME_TIMEOUT = 120
# START_CHECK_AFTER = 25
# STALE_OUTPUT_SECONDS = 40
START_CHECK_AFTER = 15
STALE_OUTPUT_SECONDS = 90 # 改这一行就解决 99% 的“新配置不行”
NO_FRAME_TIMEOUT = 180
STDERR_QUEUE_TIMEOUT = 1.0
END_KEYWORDS = [
@@ -1733,7 +1737,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
"Origin: https://live.douyin.com\r\n"
)
ffmpeg_command = [
"ffmpeg", "-loglevel", "info", "-nostdin", "-re",
"ffmpeg", "-y", "-loglevel", "info", "-nostdin", "-re",
"-rw_timeout", "30000000",
"-reconnect", "1", "-reconnect_at_eof", "1", "-reconnect_streamed", "1",
"-reconnect_delay_max", "5",