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

Add Align to Reference option in timeline #1247

Merged
merged 4 commits into from Apr 30, 2022

Conversation

bmatherly
Copy link
Member

This is phase 1 of the "Align to Reference" feature.

This phase allows multiple timeline clips to be selected. The user selects the reference track to align to. Clips can only be aligned to a track and not to a specific clip. If a clip is on the reference track, it will be flagged as an error. An undo command allows the entire change to be reverted with undo.

This adds a project link dependency to fftw3 (which is already available in our builds)

Demo:

align_demo.mp4

Future phases:
2) Quality threshold to detect clips that can not be aligned. In Phase 1, unrelated clips will still find some alignment (even though there really is none)
3) Drift compensation - automatically apply a speed factor to a clip to correct cameras that record at different rates (some code for this exists, but it is not ready for testing)

@ddennedy
Copy link
Member

Hey, just to let you know I have been waiting to see if I will make a 22.04 bug fixes release before merging this (and my glaxnimate MLT producer).

@bmatherly
Copy link
Member Author

Hey, just to let you know I have been waiting to see if I will make a 22.04 bug fixes release before merging this

Thanks for letting me know. It is OK with me if this request waits for a while. I am currently working on "phase 2". This request does not need to wait for phase 2, but if I finish phase 2 before this PR is merges, then I will add to it.

Do you have any comments about the UI or the usability? I would like to resolve usability comments before it is merged.

@bmatherly
Copy link
Member Author

  1. Quality threshold to detect clips that can not be aligned.

This is now implemented

src/commands/timelinecommands.h Outdated Show resolved Hide resolved
src/dialogs/alignaudiodialog.cpp Outdated Show resolved Hide resolved
src/dialogs/alignmentarray.cpp Outdated Show resolved Hide resolved
src/dialogs/alignmentarray.h Outdated Show resolved Hide resolved
src/docks/timelinedock.cpp Outdated Show resolved Hide resolved
Also fix clips with in/out point set.
Do not attempt to align clips if the quality is below the threshold
Fix code style
Fix label capitalization
@ddennedy ddennedy merged commit e853e13 into mltframework:master Apr 30, 2022
@ddennedy ddennedy added this to the v22.05 milestone Apr 30, 2022
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.

None yet

2 participants