Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files- infertest.py +0 -1
infertest.py
CHANGED
@@ -481,7 +481,6 @@ def combine_vocal_and_inst(vocal_path, inst_path):
|
|
481 |
output_path = "output/result/combine.mp3"
|
482 |
#command = f'ffmpeg -y -i "{inst_path}" -i "{vocal_path}" -filter_complex [0:a]volume={inst_volume}[i];[1:a]volume={vocal_volume}[v];[i][v]amix=inputs=2:duration=longest[a] -map [a] -b:a 320k -c:a libmp3lame "{output_path}"'
|
483 |
command=f'ffmpeg -y -i "inst_path" -i "vocal_path" -filter_complex "amix=inputs=2:duration=longest" -b:a 320k -c:a libmp3lame "{output_path}"'
|
484 |
-
'
|
485 |
result = subprocess.run(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
486 |
if result.stderr:
|
487 |
print("Error:", result.stderr.decode())
|
|
|
481 |
output_path = "output/result/combine.mp3"
|
482 |
#command = f'ffmpeg -y -i "{inst_path}" -i "{vocal_path}" -filter_complex [0:a]volume={inst_volume}[i];[1:a]volume={vocal_volume}[v];[i][v]amix=inputs=2:duration=longest[a] -map [a] -b:a 320k -c:a libmp3lame "{output_path}"'
|
483 |
command=f'ffmpeg -y -i "inst_path" -i "vocal_path" -filter_complex "amix=inputs=2:duration=longest" -b:a 320k -c:a libmp3lame "{output_path}"'
|
|
|
484 |
result = subprocess.run(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
485 |
if result.stderr:
|
486 |
print("Error:", result.stderr.decode())
|