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.

without B frame

johnson_j_
New Contributor I
565 Views

HI:

I want to get frames encoded without B frames, any ways to do that?

Thanks a lot!

0 Kudos
5 Replies
Sravanthi_K_Intel
565 Views

Hi Johnson,

You can do that by setting the GotRefDist=1 in mfxInfoMFX structure. You can find more information in the mediasdk-man.pdf (p120) in <MEDIASDK>/doc folder. To quote from the manual (you can find an example code on p123 in the same manual).

GopRefDist
Distance between I- or P- key frames; if it is zero, the GOP structure is unspecified. Note: If GopRefDist = 1, there are no B-frames used. See Example 14 for pseudo-code that demonstrates how SDK uses this parameter.

0 Kudos
johnson_j_
New Contributor I
565 Views

Is there any sample code somewhere?

0 Kudos
Sravanthi_K_Intel
565 Views

When setting the mfx structure, you can set this flag as well. You can find an example in the simple_6_encode_vmem_lowlatency tutorial.

You can find the tutorials in the "TUTORIALS" tab in this page: https://software.intel.com/en-us/media-solutions-portal

Here is the direct link to download the tutorials zip file: http://software.intel.com/sites/default/files/mediasdk-tutorials-0.0.3.zip

0 Kudos
johnson_j_
New Contributor I
565 Views

got it. THX

0 Kudos
zhang__kai
Beginner
565 Views

nice

0 Kudos
Reply