add audio volume filter
This commit is contained in:
parent
a3cc6ba3ce
commit
74a7580131
10
ffplayout/filters/a_volume.py
Normal file
10
ffplayout/filters/a_volume.py
Normal 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}'
|
Loading…
x
Reference in New Issue
Block a user