diff options
Diffstat (limited to 'cli/app/search/video.py')
| -rw-r--r-- | cli/app/search/video.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/app/search/video.py b/cli/app/search/video.py index 14d84b4..c87edb5 100644 --- a/cli/app/search/video.py +++ b/cli/app/search/video.py @@ -20,6 +20,10 @@ def export_video(fp_frames, fps=30): shutil.rmtree(os.path.join(app_cfg.DIR_OUTPUTS, fp_frames)) def export_video_final(fp_frames, fp_out, fps=25): + if os.path.exists(fp_out): + print("Video already exists: {}".format(fp_out)) + return None + print("Exporting video...") cmd = [ '/home/lens/bin/ffmpeg', |
