summaryrefslogtreecommitdiff
path: root/cli/app/search/video.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-11 00:23:46 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-11 00:23:46 +0100
commit179f98c949dbeeb383d152e46610dd6789616231 (patch)
treee48ce022dfd09b06520a46bcf50a46a64ed68c6d /cli/app/search/video.py
parentb280b3b837b205e9283c0444bdb28bc2aa4e48ad (diff)
upload video script
Diffstat (limited to 'cli/app/search/video.py')
-rw-r--r--cli/app/search/video.py6
1 files changed, 3 insertions, 3 deletions
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