How to check whether the hardware decode is used in Tx2

Following the instruction in ACCELERATED GSTREAMER USER GUIDE, I run the below order to decode my video file.

gst-launch-1.0 filesrc location="test_video.mp4" ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! nveglglessink -e

The video is playing correctly. Cpu and gpu are both running. As I know, NVDEC is an independent module. My question is how I can know the hardware decode is working.

I use a tool called jtop, which displays the cpu, gpu and nvdec in Tx2. However, jtop shows that nvdec doesn’t start when I run the previous order. It’s kind of wired. Is the tool wrong, or omxh264dec can not hardware decode ?

Thanks in advance.

Hi,
Please run ‘sudo tegrastats’. When NVDEC is running, the working frequency will be printed.

Thanks. It works out.

For more detail about tegrastats, please check Development Guide