From c294489a605416c1ecc0ea756629111f3b016666 Mon Sep 17 00:00:00 2001 From: Bradley Bickford Date: Fri, 5 Jan 2024 19:32:17 -0500 Subject: [PATCH] Attempted fixes for breadmixers ffmpeg issues --- bin/breadmixer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/breadmixer.py b/bin/breadmixer.py index 59fbac0..d07af53 100644 --- a/bin/breadmixer.py +++ b/bin/breadmixer.py @@ -139,7 +139,7 @@ for i in range(0, len(file_dict_items), args.filespercycle): command_list.append(output_file_name) - ffmpeg_process = subprocess.Popen(command_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + ffmpeg_process = subprocess.Popen(' '.join(command_list), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) print(ffmpeg_process.args) stdout, stderr = ffmpeg_process.communicate() @@ -170,7 +170,7 @@ final_command_list.append("-map") final_command_list.append("\"[boosted]\"") final_command_list.append(os.path.join(json_config["media_voice_folder"], args.callid, "output.mp3")) -final_command_process = subprocess.Popen(final_command_list, stdout=subprocess.PIPE, stderr=subprocess.PIPE) +final_command_process = subprocess.Popen(' '.join(final_command_list), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) stdout, stderr = final_command_process.communicate() if (final_command_process.returncode != 0):