summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-09 19:35:12 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-09 19:35:12 +0100
commitdc809d31769d6bb910394b0a872134876ae22334 (patch)
tree05061779dacf262457bf19d6b93c6bbb02d6cd22 /cli
parent9b7a68fdc9eec564000013c808f394b15757b529 (diff)
video
Diffstat (limited to 'cli')
-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 3d9f563..d8e3f3f 100644
--- a/cli/app/search/video.py
+++ b/cli/app/search/video.py
@@ -10,7 +10,7 @@ def export_video(fp_frames, fps=30):
'/home/lens/bin/ffmpeg',
'-hide_banner',
'-y', # '-v', 'quiet',
- '-r', fps,
+ '-r', str(fps),
'-i', os.path.join(app_cfg.DIR_OUTPUTS, fp_frames, 'frame_%04d.png'),
'-pix_fmt', 'yuv420p',
os.path.join(app_cfg.DIR_OUTPUTS, fp_frames + '.mp4')
@@ -19,13 +19,13 @@ 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):
+def export_video_final(fp_frames, fps=25):
print("Exporting video...")
cmd = [
'/home/lens/bin/ffmpeg',
'-hide_banner',
'-y', # '-v', 'quiet',
- '-r', fps,
+ '-r', str(fps),
'-i', os.path.join(app_cfg.DIR_OUTPUTS, fp_frames, 'frame_%05d.png'),
'-c:v', 'libx264',
'-preset', 'slow',