's'
This commit is contained in:
@@ -362,16 +362,17 @@ def start_douyin_youtube_ffplay(
|
||||
"ffmpeg", "-y", "-loglevel", "info", "-nostdin",
|
||||
"-stats", "-stats_period", "1",
|
||||
|
||||
# 网络重连(保持)
|
||||
# 网络重连(保持你的原参数)
|
||||
"-rw_timeout", "60000000",
|
||||
"-reconnect", "1", "-reconnect_at_eof", "1", "-reconnect_streamed", "1",
|
||||
"-reconnect_delay_max", "10",
|
||||
"-http_seekable", "0", # 直播流通常不可 seek,设 0 防问题
|
||||
|
||||
# 持久连接:替换 http_persistent
|
||||
"-multiple_requests", "1", # 启用 Keep-Alive,推荐加这个
|
||||
# 持久连接 + 直播优化(替换所有 http_xxx)
|
||||
"-multiple_requests", "1", # 启用 HTTP Keep-Alive,强烈推荐
|
||||
# "-http_seekable", "0", # 删除!无效,会报错
|
||||
# "-http_persistent", "1", # 删除!旧名,已被 multiple_requests 取代
|
||||
|
||||
# 实时 & 防超速(保持)
|
||||
# 实时核心(保持)
|
||||
"-re",
|
||||
"-use_wallclock_as_timestamps", "1",
|
||||
"-thread_queue_size", "64",
|
||||
@@ -381,7 +382,7 @@ def start_douyin_youtube_ffplay(
|
||||
"-headers", douyin_headers,
|
||||
"-i", real_url,
|
||||
|
||||
# 视频处理(保持)
|
||||
# 视频处理(纵屏黑边)
|
||||
"-vf", "fps=25,scale=1080:1920:force_original_aspect_ratio=decrease:flags=bicubic,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:black",
|
||||
|
||||
"-c:v", "libx264",
|
||||
@@ -400,7 +401,7 @@ def start_douyin_youtube_ffplay(
|
||||
"-pix_fmt", "yuv420p",
|
||||
"-flags", "+global_header",
|
||||
|
||||
# 音频(如果之前简化过,先用这个测试;成功后再加回完整链)
|
||||
# 音频(完整链,如果之前简化过,先测试简化版)
|
||||
"-c:a", "aac", "-b:a", "192k", "-ar", "48000", "-ac", "2",
|
||||
"-af", "aformat=sample_fmts=fltp:sample_rates=48000:channel_layouts=stereo,"
|
||||
"arnndn=m=./arnndn-models/cb.rnnn:mix=0.85,"
|
||||
|
||||
Reference in New Issue
Block a user