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)