I know how to blend two videos into a single video of cross-fading clips with a glitch effect, e.g. every 2.7 seconds, with this command string:
ffmpeg -i input