From e4efafa6085399a56e0356975b0648a78255a041 Mon Sep 17 00:00:00 2001 From: Antoine Van-Elstraete Date: Thu, 15 Apr 2021 16:22:43 +0200 Subject: [PATCH] Nettoyage de code (F841, W293, F821, W391) --- vid_convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vid_convert.py b/vid_convert.py index a87a1cf..a763c09 100755 --- a/vid_convert.py +++ b/vid_convert.py @@ -109,8 +109,9 @@ def stabilization(file): par exemple quand filmé au smartphone. ''' cmd_stab = f'ffmpeg -i {file} -vf vidstabdetect=shakiness=10:accuracy=10:result="/tmp/vidstab.trf" -f null - ' + subprocess.getoutput(cmd_stab) + - if __name__ == '__main__': import argparse parser = argparse.ArgumentParser() @@ -127,5 +128,4 @@ if __name__ == '__main__': cropsize = cropping(args.f_input, infos) volumes = volume_audio(args.f_input, infos) if args.stab: - stabilization(f_input) - + stabilization(args.f_input)