If at least one of the inputs is a video, then the `outputExtension`
attribute should never be set to "none": if it is, no frame will ever be
written on disk, and as a consequence, no SfMData file will be written,
meaning that the whole score computation and keyframe selection process
will have been done for nothing.
The size is set with the minimum between the input frames (when available)
and the set maximum number of output keyframes. This allows the nodes
following the KeyframeSelection one to be chunked if applicable.
The `outputExtension` parameter now supports a new value, `none`, that
disables the export of the keyframes, and becomes the new default value.
The `renameKeyframes` parameter, which changes the way keyframes are named
when they are written, is automatically disabled when `outputExtension` is
set to `none`.
This commit updates the name of the input parameter (from "mediaPaths" to
"inputPaths") as it now also supports SfMData files, and adds two SfMData
files as output parameters: one that contains the selected keyframes, and
one that contains the frames that were not selected as keyframes.
Add a debug option that will, during the scores' computation, skip all the
calculations regarding sharpness. A fixed sharpness score of 1.0 will be
applied to all the frames.
By default, the keyframes' name is their index within the input sequence /
video. A new option is added to name them as consecutive frames, starting
from 0, instead.
Split the existing "rescaledWidth" parameter into "rescaledWidthSharpness"
and "rescaledWidthFlow" to allow independent rescaling of the frames used
to compute the sharpness and motion scores.
Keyframes will be written as JPG, PNG or EXR files (by default, JPG).
If EXR is the selected output extension, the storage data type can also
be chosen.
Group the keyframe selection parameters together depending on the method
(regular or smart) they belong to.
Parameters for a method are only shown if that method is the currently
selected one.
This commit removes most of the existing parameters for the keyframe
selection and adds new ones to enable the regular keyframe selection.
Since the regular method is the only one available for now, the parameter
that allows the user to enable it or not is disabled.
Set the value of the string parameters in the nodes' description as
the unevaluated variable instead of the evaluated variable. The
evaluation will be made later, when the nodes with such parameters
will be computed.