From 10493b832e2bf6815878b483fbfb4774bb87b12c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 17 Jan 2020 16:54:30 +0100 Subject: no png compression --- cli/app/commands/cortex/upload_video.py | 4 +--- cli/app/search/live.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'cli/app') diff --git a/cli/app/commands/cortex/upload_video.py b/cli/app/commands/cortex/upload_video.py index 4590a6c..c0d2afd 100644 --- a/cli/app/commands/cortex/upload_video.py +++ b/cli/app/commands/cortex/upload_video.py @@ -34,9 +34,7 @@ def cli(ctx, opt_fp_in, opt_folder_id): fp_out = os.path.join(app_cfg.DIR_RENDERS, fn + '.mp4') export_video_final(opt_fp_in, fp_out) - if fp_out is None: - return - + if not os.path.exists(fp_out): print("No video found") return diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 8038e72..605bd42 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -463,7 +463,7 @@ class Listener: if out_img is not None: save_time = time.time() # out_img.save(os.path.join(path_out, "frame_{:05d}.png".format(i)), format='png', compression_level=3) - out_img.save(p.stdin, format='png', compression_level=3) + out_img.save(p.stdin, format='png', compression_level=0) save_time_total += time.time() - save_time resize_time = time.time() -- cgit v1.2.3-70-g09d2