subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
] print(f" 烧入字幕: {os.path.basename(video_path)} -> {os.path.basename(output_path)}") result = subprocess.run(cmd, capture_output=True, text=True) if result.returncode != 0: raise RuntimeError(f"ffmpeg 字幕烧入失败:\n{result.stderr}") return output_path- Confidence
- 81% confidence
- Finding
- result = subprocess.run(cmd, capture_output=True, text=True)
