My script is not working

I found the issue, blender is loading that video at 270ish FPS with a high frame value, had to set FPS to 59.94 and frame value to 1 and it synced up. I went through the script and fix the less than 150ms movements which was better than starting over, I’ll check it and upload this week if it worked. Taking community advice and trying joyfunscripter for the next one