diff options
Diffstat (limited to 'cli/app')
| -rw-r--r-- | cli/app/search/video.py | 6 |
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', |
