subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 回退到 ffmpeg try: cmd = ["ffmpeg", "-i", url, "-c", "copy", output_path, "-y"] subprocess.run(cmd, check=True, capture_output=True) print(f"✅ 视频已保存: {output_path}") return output_path except subprocess.CalledProcessError as e:- Confidence
- 82% confidence
- Finding
- subprocess.run(cmd, check=True, capture_output=True)
