rewrote normalization to use loudnorm in order to avoid clipping

This commit is contained in:
Martinez 2017-08-20 16:16:27 +02:00
parent d12eb050a7
commit f092e852da
3 changed files with 74 additions and 81 deletions

8
aux.py
View file

@ -59,3 +59,11 @@ def update_cfg_context(main, ignore=[]):
added = context_file_write.update_config(context_file_header, (main.name, main.version))
if added:
main.print("added to <m>.over-video<.>: %s" %(", ".join("<g>%s<.>" %(o.name) for o in added)))
# --------------------------------------------------
def float_or_string(a):
try:
return float(a)
except:
return a