How to render videos with placeholders using API / command line interface?
You could write a simple shell script (either for mac or windows) which consists of basic if - then clauses to read the input of the user, then use ffmpeg by calling it from within the script. I believe that ffmpeg might be the most painless option, since scripting for Premiere and After Effects can be a bit tedious.