From dc4411ea74d8ff0ae36774e9d86fc8f5b1d58c0c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 23 Feb 2020 17:22:36 +0100 Subject: oops, readline blocks --- cli/app/search/live.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 7dbe98f..c56b611 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -576,14 +576,14 @@ class Listener: 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(pipe.stdin, format='png', compression_level=3) - printed = False - while True: - line = pipe.stdout.readline() - if not line: - break - elif not printed: - printed = True - print("Waiting for FFMPEG to catch up...") + # printed = False + # while True: + # line = pipe.stdout.read() + # if not line: + # break + # elif not printed: + # printed = True + # print("Waiting for FFMPEG to catch up...") save_time_total += time.time() - save_time img_to_send = out_img.resize((256, 256), Image.BICUBIC) -- cgit v1.2.3-70-g09d2