This is a late contribution, but the original script lacks a function to capture several audio streams properly (if you have multiple audio streams configured). To change that, replace the line
Python:
"-vcodec", "copy", "-acodec", "copy", targetname]
with
Python:
"-map", "0?", "-vcodec", "copy", "-c:a", "copy", targetname]
Additionally, you can replace the FFMPEG file from moviepy with a newer version (the one it uses is quite old)
If you installed it using pip, the default location should be
C:\Users\"Your Name"\AppData\Local\Programs\Python\...\Lib\site-packages\imageio_ffmpeg\binaries
or wherever you installed Python to.