如何让 wxPython 视频播放器在 Windows 中运行

发布于 2024-12-19 07:32:06 字数 497 浏览 0 评论 0原文

我正在尝试让 此处 描述的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月如刀 2024-12-26 07:32:06

wxPython 应该在 Linux 上使用 GStreamer(如果可用)。请参阅http://wxpython-users.1045709.n5.nabble.com/wxpython-gstreamer-and-overlapping-panel-staticText-td4834139.htmlhttp://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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文