- don't normalize if there's no audio in the source file
This commit is contained in:
parent
9d72d2156c
commit
3103e577ad
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ if __name__ == '__main__':
|
|||
# --------------------------------------------------
|
||||
# normalization pre-pass
|
||||
|
||||
if (main.cfg.armed or main.cfg.dump_commands) and main.cfg.normalize and (not main.cfg.audio == 'drop'):
|
||||
if audio_streams and main.cfg.normalize and (main.cfg.armed or main.cfg.dump_commands) and (not main.cfg.audio == 'drop'):
|
||||
if main.cfg.normalize_override == 0.0:
|
||||
_print('running normalization pre-pass')
|
||||
|
||||
|
@ -218,7 +218,7 @@ if __name__ == '__main__':
|
|||
info.volume_correction = main.cfg.normalize_target - info.mean_volume
|
||||
else:
|
||||
_print('§runexpected ffmpeg output§/, dump follows', prefix.fail, suffix=':\n')
|
||||
print(output)
|
||||
print(output.decode('utf-8'))
|
||||
raise RuntimeError
|
||||
|
||||
pb.blank()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue