Keyframe limit

GaryCh wrote on 1/19/2016, 2:34 PM
I have a script that attempts to change text (text, position, etc) every frame in my videos. It appears that there is a limit to the number of keyframes I can put on the titlesandtext media generator. My current test has 11,000 keyframes. Sony Vegas locks up everytime. Is there a limit? If so is it per media generator event, or project wide?
Posted here as the script works fine when there aren't as many keyframes.

Comments

GaryCh wrote on 1/19/2016, 2:40 PM
reply post to attach system spec
System #1
Computer Brand/Model: Lenovo
Operating System: Windows 7 64-bit
RAM: 96gb
Processor: 3.4 ghz
Video Card: nvidia quadro 5000
Sound Card: Soundmax integrated audio
Video Capture: na
CD Burner: na
DVD Burner: na
Camera: FS700, GoPro
Add. Comments: Vegas Suite 12
altarvic wrote on 1/19/2016, 3:16 PM
There is no limit. Just created 15000 keyframes - no problems.
GaryCh wrote on 1/28/2016, 2:26 PM
What type of keyframes, and how did you add them?

I use a script to generate titlesandtext keyframes. The text changes every frame. The script does not fail with short videos, but does on longer ones.

I may cross post this to script forum, but thought it was a limitation of the titlesandtext plug-in, since the script works on smaller numbers of keyframes.
NormanPCN wrote on 1/28/2016, 4:30 PM
You may have answered your question. There may be some problem/limit on keyframes that are changing the actual text and not keyframes of some numeric parameter.
altarvic wrote on 1/28/2016, 5:26 PM
I created text counter from 1 to 15000 with Text Wizard
Warper wrote on 2/1/2016, 5:15 AM
As far as I know, there is no hard limit, but keyframes list is just a list, not a robust array. If you want to iterate through them to find one you need, it takes time. If you have to insert/delete a keyframe, iteration process is abrupted and you have to start over. It makes computation difficulty a quadriple of number of frames. For linera difficulty it's 100 vs. 1000 (10 times longer) for 100 keyframes vs. 1000 keyframes, but for iteration-inside iteration it's 10k vs. 100M (10 thousands times longer) for 100 vs. 1000 keyframes.
If this process overlaps with some modification made by vegas plug-ins, Vegas can lock up.
And even if not lock up, it's longer than human expects.
Also, while normal script (without updateGUI calls or dialogues) works, it postpones most of activity Vegas does in main thread - for this time Vegas looks like locked up application in windows.
You have to be very careful for such things in your script if you want to handle big numbers of keyframes/events/media/etc.