in python calling this in a qr job never returns def extractaudio(videopath): audiopath…
- User
in python calling this in a qr job never returns def extract_audio(video_path): audio_path = video_path.replace(".mp4", ".wav") # result = subprocess.run( # ["poetry","run", "python", "conve rt_audio.py", video_path], check=True # ) #return result.stdout.strip()
env = os.environ.copy() env["OBJC_DISABLE_INITIALIZE_FORK_SAFETY"] = "YES"subprocess.run(["ffmpeg", "-y", "-i", video_path, "-ar", "16000", "-ac", "1", audio_path], env=env, text=True, check=True, ) return audio_path Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.