已经转换了的不要再转换

This commit is contained in:
Jerry Yan 2021-09-02 14:39:51 +08:00
parent cd0a171460
commit 0787d24014

View File

@ -4,8 +4,10 @@ import os
for file in glob("*.flv"):
new_file = file.replace(".flv", ".mp4")
if os.path.exists(new_file):
continue
os.system(" ".join([
"ffmpeg", "-i", file,
"ffmpeg", "-y", "-i", file,
"-c copy", "-f mp4",
new_file,
]))