Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Fixed files size VBR encoding

BScha9
Beginner
83 Views
Segmenting encoders are required to output continuous short AVC files, say 1S in duration.   Furthermore, the files size have a fixed maximum, say 1MB.   The segment files are usually transferred over IP data network via HTTP to a client where the files are then decoded and played out in a smooth manner.

With this in mind, what is the proper configuration of the AVC CODEC in order that each 'fixed max size' file is of the highest quality?
0 Kudos
3 Replies
Petter_L_Intel
Employee
83 Views
Hi,

I believe your best approach is to experiment with the SDK using your typical workloads to determine suitable configuration for your purposes. AVC encoder support a range of bit rate control methods such as CBR and VBR. Both CBR and VBR rate control can be configured to not exceed specified bit rate. Based on the selected bit rate you can calculate estimated max file size for the interval you have in mind. There is no SDK configuration parameter that lets you set max file size.

Regards,
Petter
BScha9
Beginner
83 Views
Refer to software.intel.com/file/43685  paragraph 6.1.4 HRD Parameters.

This suggests that the encoder VBR BR can be tuned preventing a decoder underflow/overflow.

RateControMethod
InitialDelayInKB
BufferSizeInKB
TargetKbps
MaxKbps

I have not been able to find the Intel spin on HRD type II model.  I would hope to find a relationship between the above 5 parameters and the HRD model. 
Petter_L_Intel
Employee
83 Views
Hi,

Intel Media SDK encoder is HRD compliant unless otherwise specified (as for specific parameter options) in the manual.

The chapter you refer to is a bit unclear and confusing. We will improve the wording in future documentation.

Regards,
Petter
Reply