Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3058 Discussions

Does Intel Media SDK support Set Encoder Framerate(FPS) ?

icecream123
Beginner
728 Views
Hi All,

Does Intel Media SDK support H.264 encoder framerate(FPS) setting ?

We can found that set GOP (I frame interval), B frame number, frame size(resolution), and multi-slice(NALU) in property page.

But there is no framerate setting in property page,
no framerate field in H264Params.

How could we set the Intel H.264 encoder framerate (FPS) ?

Thank you
Icecream
0 Kudos
3 Replies
Eric_S_Intel
Employee
728 Views

Hi,

Are you referring to the property page available on the sample dshow filters? If so, those filters are only samples and

do not expose all the features of the Media SDK. The encoder does have the ability to set a particular frame rates and the setting is found in the mfxFrameInfo structure.

Set the encoders frame rate by setting mfxFrameInfo->FrameRateExtN / mfxFrameInfo->FrameRateExtD.

So, to set 30fps: mfxFrameInfo->FrameRateExtN = 30 and mfxFrameInfo->FrameRateExtD = 1

Perhaps you can enhance the samples to add this functionality.

Eric

0 Kudos
icecream123
Beginner
728 Views
Hi Eric,

Yes, we found the FrameRateExtN and FrameRateExtD setting very insight the Intel SDK source code.
As below fragment:

mfxU32 fcExtN(0), fcExtD(0);

ConvertFrameRate( (mfxF64)statistics.frame_rate / 100.0
, &fcExtN
, &fcExtD);

vParam.mfx.FrameInfo.FrameRateExtN = fcExtN;
vParam.mfx.FrameInfo.FrameRateExtD = fcExtD;

In real world, the FPS setting is stable, about 30 fps.
But In Intel Decoder, FPS the not very smooth,
I think that is because of Intel implement the FPS controlled with statistics.

Do you have any idea to OPEN the FPS setting with CH264EncPropPage and IConfigureH264Encoder ?
I think that FPS controlled by user directly is a good conceptation.

Thanks

Best Regards
Icecream
0 Kudos
icecream123
Beginner
728 Views
Hi ,

I have try to set 30 fps:

mfxFrameInfo->FrameRateExtN = 30 and
mfxFrameInfo->FrameRateExtD = 1

But I can't fix Encoder FPS as 30.

Do you have any idea ?

Thanks
Best Regards,
0 Kudos
Reply