[Genio 700] Hardware Video Encoder failed with "Failed to process frame" - pbs_buf related?

Hi team,

I am currently testing the video driver on a Mediatek Genio 700 board running Ubuntu, following the official guidelines here: https://mediatek.gitlab.io/genio/doc/ubuntu/bsp-installation/video.html

I had successfully run the hardware encoding/decoding tests before. However, the same GStreamer command is now failing with the following error: ERROR: from element /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0: Failed to process frame. Additional debug info: Maybe be due to not enough memory or failing driver

After checking the VPUD status and logs, I noticed some messages related to [pbs_buf].

Current system state:

  • CMA Total: 128 MiB (I modified it but it doesn’t work,default kernel config is 32 MiB)

  • Platform: Genio 700-EVK

It seems like a memory allocation issue within the VPU buffer pool. Could you please advise on how to resolve this? Is it necessary to increase the CMA size?

Thank you for your help!