-
AE – Optimizing Lip-Sync or Keyframe-Handling
Hey guys,
I would really appreciate your help.
I’m trying to find an easy and timesaving way for lipsync.
By now I’m using a really simple way of doing this. It works pretty fine but I’m sure there’s a way to make it better.I have a vector mouth. it’s an oval. Lets say: 100px witdh and 20px height.
I took the voice-file and converted it and did the “Audio into Keyframes”-Action.
I pickwhipped the scale of the the mouth to the slider of the channels.The code looks like this:
temp = thisComp.layer("Audioamplitude 2").effect("Beide Kanäle")("Schieberegler");[100,100 + (linear(temp,10,25,0,5))*100]
So. In this case the height of the mouth changes depending on the volume value. For simple cartoon-style-animation it works quite good.
What’s my problem?
The “Audio-into-keyframes”-action creates keyframes on every single frame of the comp. Is it somehow possible to tell AE to take only a look on the peaks and zeros?
Maybe for better understanding…
If we take a look at the keyframes that were creates, it looks like an edgy wave/diagram. it also looks like a path createt with Illustrator with a lots of anchor points. Is it possible to simplify this path? to kick out all unneccesary anchors and make a smooth (not edgy) wave containing the most important anchors(keyframes/peaks).I could imagine, that this way the lipsync might look much smoother.
Thanks in advance
PS: working with AE cs6