如何让 wxPython 视频播放器在 Windows 中运行
我正在尝试让 此处 描述的 wxPython 视频播放器运行Windows,这样我就可以对其进行一些小的修改并运行一个脚本,该脚本将让用户在观看视频时按空格键并输出每次按空格键的时间记录。但到目前为止,我什至无法让视频播放器工作;当我尝试打开视频时,收到以下错误消息:
Unable to load (filename): Unsupported format?
谷歌搜索发现我可能缺少 gstreamer 软件包,因此我安装了我能从 这里,但仍然不起作用。我到底需要安装什么才能让 wxPython 播放视频,以及如何安装它?
谢谢!
I'm trying to get the wxPython video player described here to work in Windows, so that I can do some minor modifications to it and get a script running that will let a user hit the spacebar while watching a video and spit out a record of the timing of each spacebar press. So far, though, I can't even get the videoplayer working; when I try to open a video, I get the following error message:
Unable to load (filename): Unsupported format?
A little google searching turned up the possibility that I might be missing gstreamer packages, so I installed the closest thing I could find from here, but it still doesn't work. What exactly do I need to have installed to get wxPython to play videos, and how do I install it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
wxPython 应该在 Linux 上使用 GStreamer(如果可用)。请参阅http://wxpython-users.1045709.n5.nabble.com/wxpython-gstreamer-and-overlapping-panel-staticText-td4834139.html 或 http://pythonide.blogspot.com/2008/03/howto-write-wxpython-video-player-with.html 虽然我不明白为什么这在OP发布时很重要谈论Windows。
我使用 mplayer 控件创建了一个简单的媒体播放器。您可以在这里阅读: http ://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/ 它在 Windows XP 和 Windows 7 上进行了测试,没有任何问题。
wxPython should use GStreamer on Linux, if available. See http://wxpython-users.1045709.n5.nabble.com/wxpython-gstreamer-and-overlapping-panel-staticText-td4834139.html or http://pythonide.blogspot.com/2008/03/howto-write-wxpython-video-player-with.html although I don't see why that matters when the OP was talking about Windows.
I created a simple media player using the mplayer control. You can read about it here: http://www.blog.pythonlibrary.org/2010/07/24/wxpython-creating-a-simple-media-player/ It was tested on Windows XP and Windows 7 with no issues.