add audio volume filter

This commit is contained in:
jb-alvarado 2021-02-04 12:57:33 +01:00
parent a3cc6ba3ce
commit 74a7580131

View File

@ -0,0 +1,10 @@
from ffplayout.utils import get_float, stdin_args
def filter(probe, node=None):
"""
set audio volume
"""
if stdin_args.volume and get_float(stdin_args.volume, False):
return f'volume={stdin_args.volume}'