diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-23 17:22:36 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-23 17:22:36 +0100 |
| commit | dc4411ea74d8ff0ae36774e9d86fc8f5b1d58c0c (patch) | |
| tree | 228e55c707938380fde6d72782c968400f0cc18a /cli/app | |
| parent | eae1292a01b4111e6ae2b36dcf8b4ea9266150e0 (diff) | |
oops, readline blocks
Diffstat (limited to 'cli/app')
| -rw-r--r-- | cli/app/search/live.py | 16 |
1 files 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) |
