diff --git a/douyin_youtube_ffplay.py b/douyin_youtube_ffplay.py index fe74aab..f799da0 100644 --- a/douyin_youtube_ffplay.py +++ b/douyin_youtube_ffplay.py @@ -227,7 +227,20 @@ def start_douyin_youtube_ffplay( "-x264-params","force-cfr=1:scenecut=0:open_gop=0:sync-lookahead=0", "-pix_fmt", "yuv420p", "-c:a", "aac", "-b:a", "128k", "-ar", "44100", "-ac", "2", - "-af", "aresample=async=1:first_pts=0", + "-af", + "arnndn=m=./arnndn-models/cb.rnnn:mix=0.88," # 人声增强 + "afftdn=nf=-24:tn=1," # FFT 降噪,抹平音乐中频 + "highpass=f=110,lowpass=f=4800," # 切掉低音鼓/高频镲 + "equalizer=f=250:width_type=o:width=2:g=-9," # 衰减低中频,音乐基础弱化 + "equalizer=f=800:width_type=o:width=1.5:g=-6," # 再衰减中频,人声外区域 + "atempo=1.03," # 轻微加速 3%,节奏轻微错位 + "asetrate=48000*1.02,aresample=48000," # 音高上移 ~1/2 半音 + "afreqshift=shift=20," # 整体频率偏移 20Hz,破坏指纹 + "acompressor=threshold=-28dB:ratio=5:attack=8:release=80:makeup=5," # 压缩动态,音乐更“扁” + "volume=1.15," # 补偿整体音量 + "aresample=async=1:first_pts=0" # 保证音视频同步 + + "-flags", "+global_header", "-flvflags", "no_duration_filesize", "-f", "flv", youtube_rtmp