第三方MFT与媒体基础的整合 [英] Third party MFT integration to media foundation

查看:67
本文介绍了第三方MFT与媒体基础的整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个问题并且正在寻找答案/文件: 

I have couple of questions and looking for answer/documentation: 

1。如何将MFT集成到解码器库和

1. how to integrate the MFT to decoder library and

2。注册媒体基础

3. 我可以将示例解码器MFT 示例集成到媒体基础

3. Can I integrate the sample decoder MFT example to the media foundation

AudioDe

推荐答案

(1)我不确定'将MFT集成到解码器库'是什么意思。  如果您有一个格式的现有解码器库,则需要实现

IMFTransform
 并将IMFTransform呼叫映射到解码器库中的呼叫。 如果您正在查看示例解码器MFT,ProcessInput,ProcessOutput和媒体类型函数,可能需要更改以调用解码器库。

(1) I am not sure what you mean by 'integrate the MFT to decoder library.'  If you have an existing decoder library for a format, you need to implement IMFTransform and map IMFTransform calls to calls into the decoder library.  If you are looking at the sample decoder MFT, ProcessInput, ProcessOutput, and the media type functions woud likely need to change to call into the decoder library.

(2)MFT通过< a href ="http://msdn.microsoft.com/en-us/library/windows/desktop/ms705640(v=vs.85).aspx">
MFTRegister 。 您需要先将MFT注册为COM对象。

(2) MFTs are registered through MFTRegister.  You need to register an MFT as a COM object first.

(3)是。 示例解码器MFT代码支持自注册。 如果您构建二进制文件,请打开提升的命令提示符并运行"regsvr32 decoder.dll"。 这将注册它以处理媒体基础中加载的任何MPEG1流。

(3) Yes.  The sample decoder MFT code supports self registration.  If you build the binary, open up an elevated command prompt and run "regsvr32 decoder.dll".  This will register it to handle any MPEG1 streams loaded in media foundation.


这篇关于第三方MFT与媒体基础的整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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