diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-02-23 17:03:52 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-02-23 17:03:52 +0100 |
| commit | c384a0cbf0c204e6dbeccd71d3966d53217c4e2e (patch) | |
| tree | 892be2beda1352bc62680eb741a4e871c0b3206e /cli/app | |
| parent | cafc6a9321cb4716beb9fa1cc788bed5df5ca642 (diff) | |
wait for ffmpeg
Diffstat (limited to 'cli/app')
| -rw-r--r-- | cli/app/search/live.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/app/search/live.py b/cli/app/search/live.py index 1eab871..251a9f5 100644 --- a/cli/app/search/live.py +++ b/cli/app/search/live.py @@ -565,6 +565,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...") save_time_total += time.time() - save_time img_to_send = out_img.resize((256, 256), Image.BICUBIC) |
