未能播放MP3文件与IGraphBuilder.RenderFile COM异常 [英] Failure to play MP3 file with COM exception in IGraphBuilder.RenderFile

查看:452
本文介绍了未能播放MP3文件与IGraphBuilder.RenderFile COM异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Direct Show发展。我正在学习有关直接显示的东西。我想写起着一些音频文件的方法。它工作正常的许多.mp3文件,但是对于一些我的mp3文件的方法RenderFile模块()接口的IGraphBuilder抛出异常以下

I am new to direct show development. I am learning things about direct show. I am trying to write a method which plays some audio files. It works fine for many .mp3 files, but for some of my mp3 file the method RenderFile() of interface IGraphBuilder throws following exception

收到COMException发生:引脚不能由于不支持相同的传输连接。

COMException occured : "Pins cannot connect due to not supporting the same transport."

我最好的猜测是,我错过了一些codeC播放这些文件。任何人都可以建议我做错了。有没有什么办法来选择一个过滤器,可以播放这些文件。我可以播放这些文件与Windows Media Player,所以我相信我安装了所需的codeCS。

My best guess is that I am missing some codec to play those files. Can anyone suggest what I am doing wrong. Is there any way to select a filter which can play those files. I am able to play those files with Windows Media Player, so I believe that I have required codecs installed.

任何帮助将是很有价值的。

Any help will be of great value.

先谢谢了。

推荐答案

这是一个众所周知的问题,MP3文件和标准的DirectShow fitler阅读。问题是,如果一个文件有一个很大的部分与ID3标签,过滤器可能会放弃他们跳过音频数据,这使得整个播放失败。

This is a well known problem with MP3 files and standard DirectShow fitler reading them. The problem is that if a file has a big section with ID3 tags, the filter might give up skipping them to audio data and this makes the whole playback fail.

如果你打开​​他们开始的 WM ASF阅读器过滤器 。这是假设你建,或者至少是手动启动建设,该图覆盖默认的建筑行为。

These files will still play fine if you open them starting with WM ASF Reader Filter. This assumes you build, or at least start building, the graph manually to override default building behavior.

这篇关于未能播放MP3文件与IGraphBuilder.RenderFile COM异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆