Automated/Scripted Video Editing
Consider the following technologies:


ffmpeg + command line 
Adobe After Effects + ExtendScript language (based on JavaScript) 
Sony Vegas Pro + C# language (or any other Microsoft .NET language)