allsol's picture
+0

How can i make a video (short one) play forward and backwards based on an audio file?

i have a running dog video and i want it to go back and forth by the beat

Comments

well, another example of what

allsol's picture
Submitted by

well, another example of what i want to do, i have a video that shows lips opening, and i want to display it on screen, so when i talk on the mic the video play and rewind reacting to my voice, giving the illusion of the talking screen ... something like that

i´ve been experimenting, but

allsol's picture
Submitted by

i´ve been experimenting, but im completely new on this kind of software.

Going trhough the examples given with the software i found there is a simple way to play a video forward and backward with the "cycle through list" node. But i can´t figure out how to trigger it with sound, it is working with mouse click by now. This stuff is in the "showInstantReplay" example file

Here are some things to get

Bodysoulspirit's picture
Submitted by

Here are some things to get you started and play with, try changing the parameters to achieve your effect.
It won't work on the beat since while there is a beat detector (I strongly assume) that it will only work for music. So you could use the loudness of your voice instead.

a - Simple loop movie with speed on loudness :

b - Setting the movie on mirrored instead of loop with the rate changing would look better but on my computer when the movie reaches the end the composition freezes, maybe a bug or maybe i's just not supported and I'm doing it wrong :

c - You could try to use the Set Time port of the "Play Movie Node" here is to get you started :

PS of course don't forget the URL to your movie ;)

1 Answer

jstrecker's picture
+1

i have a running dog video and i want it to go back and forth by the beat

You mentioned that you found a solution based on the Show Instant Replay example. Cool.

For reference of anyone else who lands here looking for how to do the same thing, here's one solution:

i have a video that shows lips opening, and i want to display it on screen, so when i talk on the mic the video play and rewind reacting to my voice, giving the illusion of the talking screen

In addition to @Bodysoulspirit's suggestions using Play Movie, here's a composition using Decode Movie Image:

For the smoothing (@Bodysoulpirit, you asked about this), the trick is that the events into the Time port have to be faster than the events into the Set Target port.

Oh, and on another discussion @Kewl figured out smoothing using Parabox Rolling Average List.

Jaymie (@jstrecker) good

Bodysoulspirit's picture
Submitted by

Jaymie (@jstrecker) good point using Decode Movie Frame instead of Play Movie
Ok although I understand why the "Time" events have to be faster then the the "Set Target" it seems perhaps I don't fully understand if when composing.

For example I always wondered why a Hold Value or List higher in the flow combined lower with a Smooth with X with the same event rate never worked, is that the same problem ? So the same rate is not enough, it has to be faster right ? :

Ok so instead of making the time frame rate higher technically I could also lower the Live Input Frame Rate right (considering the window rate is high enough) ? :

But what I still don't understand with the Play Movie node is that when set to mirrored and I use the loudness to change the speed using a Change Speed node connected to the "Set Time" port it works :

But when using the "Playback Rate" instead of 'Set Time" when the movie reaches the end the composition Freezes, no more Events from nowhere, not even the window Requested Frame Output :

Bug or am I just not getting the same obvious thing again ? ;)