I am using this command to concatinate videos and audio in one single video:
subprocess.run("ffmpeg -stream_loop -1 -f concat -i input.txt -i "+audioPat