Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyframeSelection: Add new parameter value to disable the export of keyframes #1454

Merged
merged 2 commits into from
Jun 9, 2023

Conversation

cbentejac
Copy link
Contributor

@cbentejac cbentejac commented Jun 6, 2023

Description

Related Meshroom pull request: alicevision/Meshroom#2036

This PR adds a new supported value to the outputExtension parameter, none, that disables the export of selected keyframes on disk when it is set.

Up until now, the selected keyframes were always written on disk at the same time as the SfMData files, and there was no way to avoid this. By setting outputExtension to none, only the two SfMData files (one containing the selected keyframes, one containing the frames that were not selected) will be written.

Not writing the selected keyframes on disk results in a slight performance improvement as less I/O operations are performed.

Note: outputExtension should not be set to none when the input is a video: since the frames from the video are not available on disk, the process expects the keyframes to be written in the output folder to be able to write at least the SfMData file containing the selected keyframes.

Features list

  • Add a new parameter value for outputExtension that disables the export of keyframes;
  • Update the README.

@cbentejac cbentejac added this to the 3.1.0 milestone Jun 6, 2023
@cbentejac cbentejac self-assigned this Jun 6, 2023
@cbentejac cbentejac changed the title KeyframeSelection: Add KeyframeSelection: Add new parameter value to disable the export of keyframes Jun 6, 2023
…none`

Add the support for a `none` value for the output extension value. If this
value is provided, the selected keyframes will not be written on disk at
the end of the process. Only the SfMData files (one containing the
keyframes, one containing the frames that were not selected) will be
generated.

In the case of video inputs, which already only produce the SfMData file
containing the keyframes, setting the output extension to `none` will lead
to no output at all, since the keyframes' SfMData file needs them to be
written on disk.

The README is also updated with that information.
…ension

Add the support of the `none` value for the output extension parameter.
The provided output extension is also lowercased before being compared with
the list of supported values.

The documentation for the `outputExtension` parameter is updated
accordingly.
@mugulmd mugulmd merged commit 9083d6e into develop Jun 9, 2023
@mugulmd mugulmd deleted the dev/noKeyframeExport branch June 9, 2023 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants