From 3b49aa268b1a5af9c756f98570ba683957481711 Mon Sep 17 00:00:00 2001 From: Antoine Van-Elstraete Date: Tue, 29 Jun 2021 13:00:33 +0200 Subject: [PATCH] =?UTF-8?q?correction=20(str=20/=20int)=20pour=20le=20star?= =?UTF-8?q?ttime,=20crf=20=C3=A0=2019?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vid_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_convert.py b/vid_convert.py index cad923a..ac3717c 100755 --- a/vid_convert.py +++ b/vid_convert.py @@ -211,10 +211,10 @@ if __name__ == '__main__': for track in infos['audio']: convert_audio(file, track['index'], volumes[track['index']], track['channels'], track['channel_layout'], track['language'], track['title']) if args.starttime: - vid_part_time = args.starttime + vid_part_time = int(args.starttime) else: vid_part_time = 0 while vid_part_time < infos['duration']: - crf = 20 + crf = 19 convert_video(file, infos, vid_part_time, cropsize, crf) vid_part_time += 300