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.
3061 Discussions

The number of B frame setting is failed in 64bit Windows 7

icecream123
Beginner
392 Views

Hi All,

The Setting B frame function as below is OK in 32 bit Windows 7,
but its fail in 64 bit Windows 7.

Maybe EncoderParams.ps_control.num_b_frames will be changed in insight code.

HRESULT hr = E_FAIL;
IConfigureH264Encoder* pH264EncProps;
IConfigureH264Encoder::H264Params EncoderParams;
hr = encFilter->QueryInterface(IID_IConfigureH264Encoder, (void **)&pH264EncProps);
pH264EncProps->GetParams(&EncoderParams);
EncoderParams.ps_control.num_b_frames = frame_num;
pH264EncProps->SetParams(&EncoderParams);
pH264EncProps->Release();
return hr;

Best Regards,
0 Kudos
1 Reply
IDZ_A_Intel
Employee
392 Views
Hi,

We reproduced your scenario without making any changes to the Media SDK direct show H.264 sample encoder filter or mp4 muxer filter (binary). Setting B-frame number was verified using stream analyzer to work on both 64 and 32 bit.

Can you elaborate a bit more on how you have built your solution?

Note that the encoder properties are written to the Windows registry when calling SetParams.

Regards,
Petter
0 Kudos
Reply