vpuwraper can fulfill VPU decoder/encoder, if customer’s user case is simple, for example they just need to encode yuv stream to H264, or decode H264 stream to yuv,
There is no need to use gstreamer or V4L2 complex framework, you can use vpuwraper.
Platform: i.MX8MP + L5.4.70.2.3.0
- Build Procedure:
mkdir vpu
cd vpu
git clone https://github.com/nxp-imx/imx-vpuwrap
cd imx-vpuwrap/
git tag -l
git switch -c rel_imx_5.4.70_2.3.0
source ../../.././5.4.70.2.3.0/sdk/environment-setup-aarch64-poky-linux
make -f Makefile_8mp
- Test on i.MX8MP EVK board
Pls find attached test log for decode and encode
- If busChromaU in YUV file is null, you will failed to encode it, pls apply vpuwraper patch for L5.4.70.2.3.0.patch to fix it
- If YUV file is interleave format, you need to add interleave parameter : -interleave 1
./test_enc_arm_elinux -i test.yuv -o aaa.h264 -f 2 -w 176 -h 96 -interleave 1
Thanks,
Lambert