Hi Joan,
I have tested Demo on latest kernel 4.14 and vpu hantro version "mx-vpu-hantro-1.10.0" still I see 100 % or more cpu usage at 30 fps video.
Here i am putting log information:
====================================================
root@imx8mqevk:~# ./hx170dec /run/media/mmcblk0p7/test.h264
X170 H.264 Decoder API v1.1 - SW build: 3.1 - HW build: 67315198
UNABLE TO OPEN INPUT FILE: "tb.cfg"
USING DEFAULT CONFIGURATION
Decoder Macro Block Error Concealment 0
Decoder RLC 0
Decoder Clock Gating 1
Decoder Data Discard 0
Decoder Latency Compensation 0
Decoder Output Picture Endian 1
Decoder Bus Burst Length 16
Decoder Asic Service Priority 0
Decoder Output Format 0
TB Packet by Packet 0
TB Nal Unit Stream 0
TB Seed Rnd 1
TB Stream Truncate 0
TB Stream Header Corrupt 0
TB Stream Bit Swap 0; odds 0
TB Stream Packet Loss 0; odds 0
Open /dev/dri/card0 success
num of fb:0
num of crtc:1
num of encoder:1
num of connector:1
Not found connection
kms info: fb_base = 0x4070e8
w/h=(4219940,0)
bits_per_pixel=105069262
bpp=840554096
screen_buf_size =0
H264DEC_HDRS_RDY
sizeof(dpb) = 4360
offset of dpbs = 2432
Width 1280 Height 720
Cropping params: (0, 0) 1280x720
MonoChrome = 0
Interlaced = 0
DPB mode = 0
Pictures in DPB = 5
Pictures in Multibuffer PP = 5
Output format = H264DEC_SEMIPLANAR_YUV420
video_range 0, matrix_coefficients 2
Other 9
Waiting for frame buffers
H264DecGetBufferInfo ret 9
buf_to_free (nil), next_buf_size 1612832, buf_num 5
H264DecAddBuffer ret 9
H264DecAddBuffer ret 9
H264DecAddBuffer ret 9
H264DecAddBuffer ret 9
H264DecAddBuffer ret 0
====================================================
Here I am doing only decoding and I have disable the prints and dump logic in demo and still is see high CPU usage.
Also about the use of gstreamer, I need to give this decoded buffer to gpu for croma coversion, scalling and other video post processing. Let me know if any help available on this. So i can use that and skip this exploration.
Thanks,
Jignesh Patel