避免参数中有空格导致异常

This commit is contained in:
2021-09-02 20:48:10 +08:00
parent 0787d24014
commit 519e70cad0
3 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@ for file in glob("*.flv"):
if os.path.exists(new_file):
continue
os.system(" ".join([
"ffmpeg", "-y", "-i", file,
"ffmpeg", "-y", "-i", f"\"{file}\"",
"-c copy", "-f mp4",
new_file,
f"\"{new_file}\"",
]))