summaryrefslogtreecommitdiff
path: root/cli/app/search/video.py
diff options
context:
space:
mode:
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