-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在Mac电脑上运行出现“Segmentation fault: 11” #172
Comments
请确保conda或python与芯片架构(x86,arm64)一致 file $(which python) 如果不一致,就可能出现此错误 |
There was a Python path issue with pip installation on macOS using Conda. A temporary solution resolved the problem (sudo ln -s /Users/xxx/miniconda3/envs/bmf_39/bin/python3 /Users/xxx/miniconda3/envs/bmf_39/lib/python3.9/site-packages/bmf/lib/Python)but a thorough solution is needed for a permanent fix. |
mac电脑上安装bmf:
pip install BabitMF
运行代码出现“Segmentation fault: 11”
环境具体信息:2.3 GHz 双核Intel Core i5,macOS 13.6.9 (22G830),conda python3.7,python3.9也是会出现相同的错误
我的代码为:
import sys
import bmf
print("当前 Python 版本:", sys.version)
input_video_path = "./testData/input.mp4"
output_path = "./testData/output.mp4"
(
bmf.graph()
.decode({'input_path': input_video_path})['video']
.scale(720, 576)
.encode(None, {
"output_path": output_path,
"video_params": {
"codec": "libx264"
}
}).run()
)
The text was updated successfully, but these errors were encountered: