import subprocess def run_ffmpeg_command(command): try: subprocess.run(command, check=True) except subprocess.CalledProcessError as e: print(f"An error occurred: {e}")