Merging and splitting videos can be a pain in the neck and you may find yourself looking for expensive software. However, I may have an easy recipe. Have you ever heard about FFmpeg?
For someone used to unix environment, Windows batch script can be a little bit confuse. Bellow I provide an example to invoke pyInstaller as a batch.