AnsweredAssumed Answered

H.264 encoding with i.MX8QXPMEK

Question asked by Kazuma Sasaki on Mar 14, 2019
Latest reply on Mar 27, 2019 by Kazuma Sasaki

<Test Environment>

Board : i.MX8QXPMEK Silicon Rev.B0

BSP : L4.14.78_1.0.0_ga

Camera : MINISASTOCSI

Using Device Tree : fsl-imx8qxp-mek-mipi-ov5640.dtb

 

<Question>

I am testing H.264 encoding with following command.

When I check CPU utilization during H.264 encoding, CPU consumed around 100% as below log.

Should I use any other command to use hardware encodere?

 

<Test Command>

# killall weston

# gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=300 ! 'video/x-raw,format=(string)NV12,width=1920,height=1080,framerate=(fraction)30/1' ! queue ! v4l2h264enc ! avimux ! filesink location=test.avi &

# top

top - 01:08:06 up 0 min,  1 user,  load average: 1.02, 0.30, 0.11
Tasks: 100 total,   1 running,  53 sleeping,   0 stopped,   0 zombie
%Cpu0  :100.0 us,  0.0 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu1  :  1.4 us,  2.9 sy,  0.0 ni, 95.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  1309460 total,   721564 free,   444364 used,   143532 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   765992 avail Mem

 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
3918 root      20   0  431580  26420  24152 S 100.0  2.0   0:03.14 gst-launch+

 

Best Regards,

Kazuma Sasaki.

Outcomes