From c70a7b83d67ca46530b13cf66070c69f8dd27f44 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sun, 10 Jul 2022 15:08:05 +0100 Subject: [PATCH] foamCreateVideo: added options to pause the video at beginning and/or end, updated video options for ffmpeg and enabled the -start option with mencoder --- bin/foamCreateVideo | 200 +++++++++++++++++++++++++++++++------------- 1 file changed, 144 insertions(+), 56 deletions(-) diff --git a/bin/foamCreateVideo b/bin/foamCreateVideo index 1ede8b76d4..bc5ac36ce2 100755 --- a/bin/foamCreateVideo +++ b/bin/foamCreateVideo @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | Website: https://openfoam.org -# \\ / A nd | Copyright (C) 2015-2020 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------ # License @@ -27,7 +27,7 @@ # # Description # Creates a video file from PNG images -# - requires mencoder or ffmpeg +# - requires ffmpeg or mencoder installed # #------------------------------------------------------------------------------ @@ -36,13 +36,15 @@ usage() { Usage: ${0##*/} [OPTIONS] ... options: - -dir | -d directory containing png images (default local dir) - -fps | -f frames per second (default = 10) - -help | -h print the usage - -image | -i name of image sequence (default = image) - -out | -o name of output video file (default = video) - -start | -s specify the start frame number for ffmpeg - -webm | -w WebM output video file format + -begin-pause | -b