's'
This commit is contained in:
7
main.py
7
main.py
@@ -1693,8 +1693,7 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
|
||||
|
||||
NO_FRAME_TIMEOUT = 120
|
||||
START_CHECK_AFTER = 25
|
||||
# STALE_OUTPUT_SECONDS = 40
|
||||
STALE_OUTPUT_SECONDS = 120
|
||||
STALE_OUTPUT_SECONDS = 40
|
||||
|
||||
|
||||
|
||||
@@ -1739,10 +1738,12 @@ def start_record(url_data: tuple, count_variable: int = -1) -> None:
|
||||
)
|
||||
ffmpeg_command = [
|
||||
"ffmpeg", "-y", "-loglevel", "info", "-nostdin", "-re",
|
||||
"-stats", # 加这行:强制每帧打印统计(frame= fps= bitrate=)
|
||||
"-stats_period", "1", # 加这行:每 1 秒强制打印一次进度
|
||||
"-fflags", "+genpts", # 加这行:强制生成时间戳,日志更快出
|
||||
"-rw_timeout", "30000000",
|
||||
"-reconnect", "1", "-reconnect_at_eof", "1", "-reconnect_streamed", "1",
|
||||
"-reconnect_delay_max", "5",
|
||||
|
||||
"-fflags", "+genpts+discardcorrupt+nobuffer+flush_packets",
|
||||
"-flags", "low_delay",
|
||||
"-err_detect", "ignore_err",
|
||||
|
||||
Reference in New Issue
Block a user