From dc809d31769d6bb910394b0a872134876ae22334 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jan 2020 19:35:12 +0100 Subject: video --- 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 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', -- cgit v1.2.3-70-g09d2