Jules2jules wrote:Can you show me in the Fushion time line how I can do this?
1. Drag the clip you want to animate in the timeline, if it has any audio attached, remove it.
2. Drag also the audio file which contains the voice you want to synchronize.
3. Select both the clip and the audio, right click and select New Compound Clip.
2. Open the compound clip in fusion page
4. Add a Time Stretcher node between MediaIn1 and MediaOut1

5. Select the Time Stretcher node, go to the inspector and set the Interpolation mode to Nearest.
6. Hit play and adjust the Source Time parameter back and forth in real time during playback, all your movements will be automatically recorded in keyframes.
7. If you are not satisfied with the recording, double click on the Source Time label to remove all keyframes, click the diamond icon to add a keyframe and repeat step 6.
The main problem is that the Source Time parameter allows frame numbers beyond the frame range of the clip, if you move the Source time beyond the frame range the video will appear as black or paused.
You can follow these extra steps to limit the range of the Source Time parameter
8. Right click on the TimeStretcher node and select Edit Controls
9. Click on the "ID" drop down menu and select the SourceTime parameter
10. Change the Range & Allowed values, for example if the clip is 200 frames long, set both Range & Allowed values 0 to 200
11. Change the Input Ctrl from ScrewControl to SliderControl and click OK.

12. The Source Time parameter will be moved from the Controls tab to the User Tab, you can't move the source time beyond the range you specified on the previous steps

If you want to use Optical Flow (for smoother motion on slowed parts), add an Optical Flow node before the Time stretcher node, set the Time stretcher node Interpolation mode to Flow.

Don't use optical flow before you finish the recording of the Source Time parameter because optical flow is very heavy and can't be used in real time.