Instead I found a zsh/bash script from [@zmwangx](https://github.com/zmwangx) and the fork of [@romanwarlock](https://github.com/romanwarlock) which were looking promising.
Since I'm no expert in FFmpeg nor shell scripting I had some trouble adapting the script to my needs initially, but improved eventually.