From 179f98c949dbeeb383d152e46610dd6789616231 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 11 Jan 2020 00:23:46 +0100 Subject: upload video script --- cli/app/search/video.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/app/search/video.py') diff --git a/cli/app/search/video.py b/cli/app/search/video.py index d8e3f3f..14d84b4 100644 --- a/cli/app/search/video.py +++ b/cli/app/search/video.py @@ -19,7 +19,7 @@ def export_video(fp_frames, fps=30): call(cmd) shutil.rmtree(os.path.join(app_cfg.DIR_OUTPUTS, fp_frames)) -def export_video_final(fp_frames, fps=25): +def export_video_final(fp_frames, fp_out, fps=25): print("Exporting video...") cmd = [ '/home/lens/bin/ffmpeg', @@ -33,8 +33,8 @@ def export_video_final(fp_frames, fps=25): '-vf', 'fps=25', '-pix_fmt', 'yuv420p', '-s', '512x512', - os.path.join(app_cfg.DIR_RENDERS, fp_frames + '.mp4') + fp_out ] # print(' '.join(cmd)) call(cmd) - # shutil.rmtree(os.path.join(app_cfg.DIR_OUTPUTS, fp_frames)) + return fp_out -- cgit v1.2.3-70-g09d2