关于H.264编码器MFT [英] About H.264 Encoder MFT

查看:97
本文介绍了关于H.264编码器MFT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用H.264编码器MFT用于某些目的,并有2个问题要问。


1。我发现Win7中的速率控制不准确,在Win8中它很好。例如,我将输出视频的比特率设置为20Mbps。我看到Win7中的结果是5Mbps,Win8中的结果是18Mbp​​s。请问这是Win7中的预期行为吗? 


2。我的输入视频是隔行扫描的内容,我将MF_MT_INTERLACE_MODE设置为MFVideoInterlace_FieldInterleavedUpperFirst。但我看到输出文件是帧编码,H.264标题显示​​它是渐进内容。请问H.264编码器MFT
是否支持字段编码,或者只支持帧编码? 


谢谢。

解决方案

Windows 7编码器似乎有逻辑去除大部分的精细细节图像几乎是相同的颜色,如天空或草的部分。即使您将通用质量设置为100并且您施加任何荒谬的
目标比特率,也会发生这种情况。其次,Win7不使用CBR,它使用漏桶VBR。 Win8将匹配您的CBR,但它不是默认编码模式,您必须通过ICodecAPI更改它。


我找不到隔行扫描不起作用的任何推理。没有文档说明编码器支持或不支持隔行扫描视频的任何变体。本节
http://msdn.microsoft.com/en -us / library / aa367729(v = vs.85).aspx 只讨论解码/渲染和
http://msdn.microsoft.com/en-us/library/ms694269(v=vs.85).aspx 没有任何关于支持。


Hi,

I am using H.264 Encoder MFT for some purposes and have 2 questions to ask.

1. I found the rate control is not accurate in Win7 and it's good in Win8. For example, I set the bit rate as 20Mbps for the output video. I saw the result is 5Mbps in Win7 and 18Mbps in Win8. Could I ask is this a expected behavior in Win7? 

2. My input video is an interlaced content and I set the MF_MT_INTERLACE_MODE as MFVideoInterlace_FieldInterleavedUpperFirst. But I saw the output file is frame-coding and H.264 header shown it's progressive content. Could I ask the H.264 encoder MFT supports the field-coding or it's only supported frame-coding? 

Thanks.

解决方案

The Windows 7 encoder appears to have logic to get rid of fine detail when large portions of the image are nearly the same colour, like the sky or sections of grass. This will occur even if you set the common quality to 100 and you impose any ridiculous target bitrate. Secondly, Win7 doesn't use CBR, it uses leaky-bucket VBR. Win8 will match your CBR but it is not the default encoding mode and you have to change that through the ICodecAPI.

I can't find any reasoning behind interlacing not working. There's no documentation stating that the encoder does or does not support any variant of interlaced video. This section http://msdn.microsoft.com/en-us/library/aa367729(v=vs.85).aspx only talks about decoding/rendering and http://msdn.microsoft.com/en-us/library/ms694269(v=vs.85).aspx doesn't have any remarks about support.


这篇关于关于H.264编码器MFT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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