在'WMVideo9编码器MFT'编码器上设置GOP大小 [英] Setting GOP size on 'WMVideo9 Encoder MFT' encoder
问题描述
我必须在'WMVideo9编码器MFT'编码器上设置GOP大小,但我不知道如何。我没有通过IMFAttributes找到这样的属性。另外,我必须告诉编码器使用封闭的GOP。输出格式应为MFVideoFormat_WVC1。
关于GOP大小,我得到的最接近的是MF_MT_MAX_KEYFRAME_SPACING。但是,看起来它不会设置GOP大小。
有人可以对此发表评论吗?
我应该调用QueryInterface()吗? IMFTransform是为了获得一些设置GOP大小的界面吗?
谢谢!
不是最大群体图片的价值主要是
MPEG-2 具体?对于你需要什么,压缩率更高?
从不使用MPEG-2和GOP大小编码,但来自
this 您可以使用样本值并根据您的需要进行修改。我找到的唯一价值 其中GOP 在WMV 9编码器中的含义是
MFPKEY_CLOSEDENTRYPOINT 。对于关键帧设置,我认为应该使用MFPKEY_NUMBFRAMES和MFPKEY_KEYDIST。我想MF_MT_MAX_KEYFRAME_SPACING 你的意思是设置了MFPKEY_KEYDIST(
http://msdn.microsoft.com/de-de/library/windows/desktop/ff819505(v=vs.85).aspx )。
<希望它能以某种方式帮助你
问候
coOkie
I have to set the GOP size on 'WMVideo9 Encoder MFT' encoder, but I don't know how. I didn't find such attribute through the IMFAttributes. Also, I would have to tell encoder to use closed GOP. The output format should be MFVideoFormat_WVC1.
Regarding GOP size, the closest I got is MF_MT_MAX_KEYFRAME_SPACING. But, it doesn't look like it will set the GOP size.
Can somebody please comment this?
Should I call QueryInterface() on the IMFTransform in order to get some interface that provides a way for setting the GOP size?
Thank you!
Hi,
wasnt a maximum Group Of Pictures value mostly MPEG-2 specific ? For what you need it, higher compression ?
Never used MPEG-2 nor GOP size with encoding but from this you maybe could use the sample values and mod them to your needs. The only value i found where GOP is meantioned in WMV 9 encoder is MFPKEY_CLOSEDENTRYPOINT. For keyframe setting the MFPKEY_NUMBFRAMES and MFPKEY_KEYDIST should be used i think. I guess MF_MT_MAX_KEYFRAME_SPACING you meantioned sets MFPKEY_KEYDIST( http://msdn.microsoft.com/de-de/library/windows/desktop/ff819505(v=vs.85).aspx ).
Hope it helps you somehow
regards
coOkie
这篇关于在'WMVideo9编码器MFT'编码器上设置GOP大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!