Hi everyone,
I have a simple question (for anyone that knows what they're doing). I'm pretty new to the software, and I can make a number of simple things happen, but I haven't been able to make this work, yet.
What I want to do is control the playhead of a video file, using the volume of an audio file as the input. Effectively, what that means is that the louder the volume becomes, the further through the video file the playhead moves. So if it were a video of an explosion, for example, the low volume input would play the start and as it becomes louder, it plays the flames leaping out from the center.
I hope my explanation makes sense! Let me know if you've achieved something like this.
Simple volume to video playback position questions
Re: Simple volume to video playback position questions
You can do this with short loops using the JPEG Folder module. Just attach the Index# to a source.
Hope this is what you're after!
Sadler
Hope this is what you're after!
Sadler
Re: Simple volume to video playback position questions
Hey, thanks for getting back to me!
Can a JPG be animated, then? Because this module would accept my folder full of MOVs. And I never knew JPGs could be animated/loops.
Can a JPG be animated, then? Because this module would accept my folder full of MOVs. And I never knew JPGs could be animated/loops.
Re: Simple volume to video playback position questions
You can easily do this with the VideoFile module and its Goto Start parameter, but the caveat is that your video must use one of a very specific set of codecs that allow you to jump directly to any frame. For example, mp4's won't work very well. The best codec is Hap, but Motion JPEG will also work, as will Apple ProRes.
Re: Simple volume to video playback position questions
You might be confusing the VideoFolder with the JpegFolder. If you have a sequence of jpg images then you can play these frames back using the JpegFolder according to the index. Scale the index by the number of frames you want to play.doleo: Can a JPG be animated, then? Because this module would accept my folder full of MOVs. And I never knew JPGs could be animated/loops.
Are you sure Eric? It would be great to play HAP files this way. Can you explain further?Eric: You can easily do this with the VideoFile module and its Goto Start parameter
Re: Simple volume to video playback position questions
Load a Hap file, set the Speed to 0, link the Start Time to the Volume, and trigger the Goto Start param when you want to jump.
Or you can set up some kind of Expression to trigger the Goto Start param regularly to achieve a smoother motion. Version 2.31 would let you do an Expression like "if current time is not equal to previous time, output 1, otherwise output 0": if (x != xp, 1, 0) where x is linked to the time, but I'm sure there are other useful ways to do it. Maybe keeping track of and comparing an integer frame counter would be more efficient since comparing time would almost always result in unnecessary triggers.
Or you can set up some kind of Expression to trigger the Goto Start param regularly to achieve a smoother motion. Version 2.31 would let you do an Expression like "if current time is not equal to previous time, output 1, otherwise output 0": if (x != xp, 1, 0) where x is linked to the time, but I'm sure there are other useful ways to do it. Maybe keeping track of and comparing an integer frame counter would be more efficient since comparing time would almost always result in unnecessary triggers.
Re: Simple volume to video playback position questions
Yeah, that works. An oscillator on the Goto Start seems to work too.