|
|
|
@ -140,7 +140,9 @@ class AudioPre:
|
|
|
|
|
)
|
|
|
|
|
if os.path.exists(path):
|
|
|
|
|
opt_format_path = path[:-4] + ".%s" % format
|
|
|
|
|
os.system("ffmpeg -i %s -vn %s -q:a 2 -y" % (path, opt_format_path))
|
|
|
|
|
cmd="ffmpeg -i \"%s\" -vn \"%s\" -q:a 2 -y" % (path, opt_format_path)
|
|
|
|
|
print(cmd)
|
|
|
|
|
os.system(cmd)
|
|
|
|
|
if os.path.exists(opt_format_path):
|
|
|
|
|
try:
|
|
|
|
|
os.remove(path)
|
|
|
|
@ -175,7 +177,9 @@ class AudioPre:
|
|
|
|
|
)
|
|
|
|
|
if os.path.exists(path):
|
|
|
|
|
opt_format_path = path[:-4] + ".%s" % format
|
|
|
|
|
os.system("ffmpeg -i %s -vn %s -q:a 2 -y" % (path, opt_format_path))
|
|
|
|
|
cmd="ffmpeg -i \"%s\" -vn \"%s\" -q:a 2 -y" % (path, opt_format_path)
|
|
|
|
|
print(cmd)
|
|
|
|
|
os.system(cmd)
|
|
|
|
|
if os.path.exists(opt_format_path):
|
|
|
|
|
try:
|
|
|
|
|
os.remove(path)
|
|
|
|
@ -303,7 +307,9 @@ class AudioPreDeEcho:
|
|
|
|
|
)
|
|
|
|
|
if os.path.exists(path):
|
|
|
|
|
opt_format_path = path[:-4] + ".%s" % format
|
|
|
|
|
os.system("ffmpeg -i %s -vn %s -q:a 2 -y" % (path, opt_format_path))
|
|
|
|
|
cmd="ffmpeg -i \"%s\" -vn \"%s\" -q:a 2 -y" % (path, opt_format_path)
|
|
|
|
|
print(cmd)
|
|
|
|
|
os.system(cmd)
|
|
|
|
|
if os.path.exists(opt_format_path):
|
|
|
|
|
try:
|
|
|
|
|
os.remove(path)
|
|
|
|
@ -334,7 +340,9 @@ class AudioPreDeEcho:
|
|
|
|
|
)
|
|
|
|
|
if os.path.exists(path):
|
|
|
|
|
opt_format_path = path[:-4] + ".%s" % format
|
|
|
|
|
os.system("ffmpeg -i %s -vn %s -q:a 2 -y" % (path, opt_format_path))
|
|
|
|
|
cmd="ffmpeg -i \"%s\" -vn \"%s\" -q:a 2 -y" % (path, opt_format_path)
|
|
|
|
|
print(cmd)
|
|
|
|
|
os.system(cmd)
|
|
|
|
|
if os.path.exists(opt_format_path):
|
|
|
|
|
try:
|
|
|
|
|
os.remove(path)
|
|
|
|
|