Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about HEVC encoder "base:low_delay" #601

Open
MarcusMathiassen opened this issue May 18, 2024 · 0 comments
Open

Questions about HEVC encoder "base:low_delay" #601

MarcusMathiassen opened this issue May 18, 2024 · 0 comments

Comments

@MarcusMathiassen
Copy link

Hi,

I am trying to get the encoder (on an RK3588) to output as fast as possible. Currently using MPP_TIMEOUT_BLOCK with a MPP_BUFFER_TYPE_EXT_DMA buffer which seems to block for about ~14.5ms before giving me a frame back. I went looking through the Developer Guide and found the "base:low_delay" option (found in the CN version — missing from the EN version though so maybe it is quite a recent addition) and thought it looked interesting.

From what I can tell from the source it looks like we set something like the below:

    mpp_enc_cfg_set_s32(cfg, "base:low_delay", 1);
    mpp_enc_cfg_set_u32(cfg, "split:mode", MPP_ENC_SPLIT_BY_CTU);
    mpp_enc_cfg_set_u32(cfg, "split:arg", 32);
    mpp_enc_cfg_set_u32(cfg, "split:out", MPP_ENC_SPLIT_OUT_LOWDELAY);
    mpp_enc_cfg_set_u32(cfg, "rc:drop_mode", MPP_ENC_RC_DROP_FRM_DISABLED);
    mpp_enc_cfg_set_u32(cfg, "rc:max_reenc_times", 0);
    mpp_enc_cfg_set_u32(cfg, "rc:super_mode", MPP_ENC_RC_SUPER_FRM_NONE);

It enables both a low_delay_part_mode and low_delay_output flag that gets used during encoding. Now exactly how one uses it I am not sure.

Is there any more information about it? Or example to look at?
Also would this be the way to get the lowest possible latency or are there other things to consider as well?

Thanks,
Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant