媒体基金会新手问题 [英] Media Foundation newbie question
问题描述
我是Media Foundation的新手,仍然在为我们的新项目进行评估.
Hi,I'm new to Media Foundation and still evaluating it for a new project of ours.
我目前正在尝试在示例C ++中操作Microsoft H264解码器转换,该转换为它提供了从文件读取的纯H264比特流(PES).
What I'm currently trying to do is to operate the Microsoft H264 Decoder transform in a sample C++ which supplies it a pure H264 bitstream (PES) read from a file.
程序非常简单,仅创建一个Decoder实例并将其提供样本.
The program is very simple, merely creates a Decoder instance and feeds it with samples.
我使用pDecoder-> ProcessInput()馈入解码器,然后立即调用pDecoder-> ProcessOutput(),尽管馈送了来自文件的整个比特流,但总返回MF_E_TRANSFORM_NEED_MORE_INPUT.
I feed the decoder using pDecoder->ProcessInput() and immediately afterwards invoke pDecoder->ProcessOutput() which always returns MF_E_TRANSFORM_NEED_MORE_INPUT despite feeding it with the entire bitstream from the file which amounts to 70MB.
任何想法都将受到欢迎,甚至最好是重定向到完成类似功能的代码示例.
Any ideas would be welcome or even better a redirection to a code sample that accomplishes something similiar would be most welcome.
谢谢!
推荐答案
您可能要先介绍一些论坛搜索主题,例如:
you may want to start with a few forum searches on topics such as:
MF_E_TRANSFORM_NEED_MORE_INPUT
IMFTransform :: ProcessOutput
MF_E_TRANSFORM_NEED_MORE_INPUT
IMFTransform::ProcessOutput
类似本主题的内容可能会有所帮助:
something like this topic might help:
这篇关于媒体基金会新手问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!