libVLC 函数 media_player_new() 抛出分段错误
media_player_new() 抛出分段错误。
import vlc
ins=vlc.Instance()
player=ins.media_player_new()
这是崩溃的地方:
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libvlc.dylib 0x000000010059aa78 libvlc_media_player_new + 24
libvlc.dylib 位于脚本查找的位置:/Applications/VLC.app/Contents/MacOS/lib
vlc.py 可以在这里找到:git://git.videolan.org/vlc/ bindings/python.git
有什么想法为什么或如何调试吗?
media_player_new() throws segmentation fault.
import vlc
ins=vlc.Instance()
player=ins.media_player_new()
Here is where it crashes:
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libvlc.dylib 0x000000010059aa78 libvlc_media_player_new + 24
libvlc.dylib is in the place where script is looking: /Applications/VLC.app/Contents/MacOS/lib
vlc.py can be found here: git://git.videolan.org/vlc/bindings/python.git
Any ideas why or how to debug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过运行
export VERSIONER_PYTHON_PREFER_32_BIT=yes
以 32 位模式启动 Python 这不是一个理想的解决方案,但它对我有用。应用这些补丁将真正解决问题:http://trac.videolan.org/vlc/ticket /4686
Launch Python in 32 bit modes by running
export VERSIONER_PYTHON_PREFER_32_BIT=yes
This is not an ideal solution, but it works for me.Applying these patches will fix the issue for real: http://trac.videolan.org/vlc/ticket/4686