The error information in the log is as follows:
device:0 chan 0, venc or jpege input buffer is invalid, make sure it has been allocated with hi_mpi_dvpp_malloc or aclDvppMalloc.
device:0 chan 0, venc or jpege output buffer is invalid, make sure it has been allocated with hi_mpi_dvpp_malloc or aclDvppMalloc.
device:0 chan 0, jpege input buffer is invalid, make sure it has been allocated with hi_mpi_dvpp_malloc or aclDvppMalloc.
device:0 chan 0, jpege output buffer is invalid, make sure it has been allocated with hi_mpi_dvpp_malloc or aclDvppMalloc.
According to the log information, the specified API is not used to allocate buffer.
Use acldvppMalloc in media data processing V1 or hi_mpi_dvpp_malloc in media data processing V2 to allocate DVPP buffer for storing the input or output data of JPEGE or VENC.