Windows 上的声子

发布于 2024-09-18 13:40:20 字数 364 浏览 1 评论 0原文

现在我让 Phonon 在带有 DS 后端的 Windows 上工作。但是,它不会播放某些 mp3 文件,并且虽然它似乎正在播放 m4a 文件(歌曲进度条不断移动),但没有声音发出。该应用程序是在 Windows 上使用 PyQt4 构建的,面向 Windows 用户。

我知道这不是我的程序的错误,因为当我用一个不能正常播放的文件替换一个可以正常播放的文件时,这首歌播放得很好。我已经下载了 phonon vlc,并尝试构建它,但我无法让 CMake 创建 makefile。每当我尝试时,它都会告诉我 dev-cpp gcc 无法制作简单的测试文件。

我还尝试下载 clementine 和 amorak,看看是否可以使其工作,但我也遇到了同样的问题。以前有人遇到过此类问题吗?

Right now I have Phonon working on windows with a DS backend. However, it will not play certain mp3 files and although it appears to be playing m4a files (the song progress bar keeps moving) no sound comes out. The application is built using PyQt4 on Windows and is aimed at Windows users.

I know that this is not the fault of my program as when I replaced a file with one that did not play normally with one that did, the song played perfectly. I have downloaded phonon vlc, and tried to build it, but I cannot get CMake to create a makefile. Whenever I try, it tells me that the dev-cpp gcc is not able to make a simple test file.

I also tried downloading clementine and amorak to see if I could get that to work, but I have had the same problems there as well. Has anyone run into this sort of problem before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

ゞ花落谁相伴 2024-09-25 13:40:20

我最近遇到了同样的问题。 Phonon 似乎对 ID3 标签(尤其是压缩标签)有些不满。我已经开始为我打开的每个 mp3 创建一个临时副本,并使用 mutagen< /a> 从该副本中删除标签。然后,我使用 PyQt/Phonon 打开去标记的临时文件,一切都按我的预期进行。顺便说一句,诱变剂很棒。

声子确实有一种会悄无声息地失败的习惯。这就是我所做的:检查您的 MediaObject 是否处于 Phonon.ErrorState 中;如果是这样,请检查其 errorString(),通常是一些难以理解的消息。谷歌这条消息并尝试从那里开始工作。

编辑:嗯,有趣。这不是 Phonon 有问题,而是 DirectShow 后端无法播放带有压缩 ID3 标头的文件。虽然我上面概述的“修复”确实有效,但我发现尽管安装了正确的编解码器,但在播放其他类型的文件(例如 .m4a)时仍然遇到问题。

解决方案是安装 K-Lite Codec Pack< /a>,并使用附带的 Win7DSFilterTweaker 工具将各种编解码器类型的默认解码器从“Microsoft”更改为“ffdshow”。您可能还需要运行ffdshow音频解码器配置工具,并勾选DirectShow控件中标记为当未知应用程序尝试加载ffshow时显示对话框的框 em> 选项卡。

I've run into the same problem recently. It seems to be that Phonon has a bit of a hissy fit about ID3 tags, particularly compressed ones. I've taken to creating a temporary copy of every mp3 that I open and using mutagen to delete the tags from that copy. I then open the de-tagged temporary file using PyQt/Phonon, and everything works as I expect. BTW, mutagen is awesome.

Phonon does have a bit of a habit of failing reasonably silently. This is what I do: check if your MediaObject is in a Phonon.ErrorState; if so check its errorString(), usually some incomprehensible message. Google this message and try to work from there.

Edit: Hmm, interesting. It's not Phonon having the problem, it's the DirectShow backend not being able to play the file with the compressed ID3 headers. While the "fix" I outline above does work, I found I was still having problems playing other types of files, e.g. .m4a, despite having the right codecs installed.

The solution was to install the K-Lite Codec Pack, and use the Win7DSFilterTweaker tool that comes with it to change the default decoder for the various codec types from "Microsoft" to "ffdshow". You might also need to run the ffdshow audio decoder configuration tool and tick the box marked Show dialog when an unknown application tries to load ffshow in the DirectShow control tab.

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