Gstreamer GPU Encoding

Hello

Ive been using gstreamer to encode video wit this pipeline:

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12, framerate=30/1' ! nvvidconv flip-method=4 ! nvv4l2h265enc maxperf-enable=1 bitrate=12000000 !h265parse !qtmux ! filesink location=videofile_v4l_h265.mp4 -e

Using tegrastats i noticed the GPU is at 0% and CPU goes up a few percents. Is this normal? Am i doing something wrong? Is there a way to force GPU encoding?

Hi,
The hardware encoder is NVENC. Please look at tegrastats utility.

Tegrastats only outputs this info to me, even if NVENC is being used.

RAM 1372/3956MB (lfb 442x4MB) SWAP 0/1978MB (cached 0MB) CPU [7%@1036,10%@1036,8%@1036,11%@1036] EMC_FREQ 0% GR3D_FREQ 0% PLL@14.5C CPU@17.5C PMIC@100C GPU@17C AO@26C thermal@17.25C POM_5V_IN 2311/2286 POM_5V_GPU 0/0 POM_5V_CPU 288/288

is there a problem with tegrastats for me?

Hi,
Probably you don’t run with sudo. Please try sudo tegrastats.