FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Namespaces | Variables
normalize.py File Reference

Go to the source code of this file.

Namespaces

 normalize
 

Variables

list normalize.ifile = sys.argv[1]
 
list normalize.encopt = sys.argv[2:-1]
 
list normalize.ofile = sys.argv[-1]
 
string normalize.analysis_cmd = 'ffprobe -v error -of compact=p=0:nk=1 '
 
tuple normalize.probe_out = subprocess.check_output(analysis_cmd, shell=True)
 
int normalize.loudness = -23
 
tuple normalize.sline = line.rstrip()
 
tuple normalize.adjust = ref-float(loudness)
 
list normalize.norm_cmd = ['ffmpeg', '-i', ifile, '-af', 'volume=%fdB' % adjust]