From 171ce348d679bca843022ef18b4c1168973f969d Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 8 Nov 2021 22:25:35 +0100 Subject: [PATCH] improve swr --- copyparty/th_srv.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index 7fc4c19a..25e31824 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -362,7 +362,13 @@ class ThumbSrv(object): raise Exception("not audio") fc = "[0:a:0]aresample=48000{},showspectrumpic=s=640x512,crop=780:544:70:50[o]" - fc = fc.format("" if self.args.th_ff_swr else ":resampler=soxr") + + if self.args.th_ff_swr: + fco = ":filter_size=128:cutoff=0.877" + else: + fco = ":resampler=soxr" + + fc = fc.format(fco) # fmt: off cmd = [