已经转换了的不要再转换
This commit is contained in:
parent
cd0a171460
commit
0787d24014
@ -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,
|
||||
]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user