From 3103e577ad84c269c48943447fbb7132834ae873 Mon Sep 17 00:00:00 2001 From: Overwatch Date: Mon, 8 Sep 2014 22:33:02 +0200 Subject: [PATCH] - don't normalize if there's no audio in the source file --- over-video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/over-video.py b/over-video.py index a964a86..bb59a9f 100755 --- a/over-video.py +++ b/over-video.py @@ -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()