Problem controlling the bitrate on the New Vim4 h264 encoder

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 24

Which version of system do you use? Please provide the version of the system here:

Welcome to Fenix 1.7.3 Ubuntu 24.04.2 LTS Linux 5.15.137

Please describe your issue below:

@numbqq

I’m using the encoder API in libvpcodec.so and /usr/include/vp_multi_codec_1_0.h
I’m getting weird error messages that I don’t remember were there on the old VIM4.

Can you please help me port my software to the new VIM4 (with NPU)?
I can use a different h264 hardware encoder library if needed.

When I try and change the bitrate on the encoder by calling vl_video_encoder_change_bitrate()
I get no error back, but when the next frame is encoded this (see log) appears on stderr

Post a console log of your issue below:


Encoder changed to bitrate 2950000
[vdi_sys_sync_inst_param:673] [VDI] fail to deliver sync instance param inst_idx=0

[AML_MultiEncNAL:2283] VPU instance param sync with change param failed!

Hello @steely-glint

Can you check this ?

Hi @numbqq Unfortunately I get the same error message,

Encoder changed to bitrate 2000000
[vdi_sys_sync_inst_param:673] [VDI] fail to deliver sync instance param inst_idx=0

[AML_MultiEncNAL:2272] VPU instance param sync with change param failed!


And no change in the encoded bitrate (Which is what I set when I inited the encoder).

By the way, I am not using gstreamer - I’m accessing the encoder via the libvpcodec.so API - that deb doesn’t seem to update the library. Please let me know if I need to use a different API.

Thanks.

Hello @steely-glint

Could you share your steps to us to reproduce this issue?

Sure - I will need to build a small standalone app - at the moment it is part of a larger app.
I will let you know when I have it.