How enable GPU with gstreamer in maaxboard-zeus?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How enable GPU with gstreamer in maaxboard-zeus?

987 次查看
gonewithwind-peter
Senior Contributor I

HI,

I am using gstreamer to capture video streaming in maaxboard (yocto zeus), I run command:

gst-launch-1.0 v4l2src device=/dev/video0 io-mode=0 ! image/jpeg, width=1920, height=1080,framerate=30/1 ! jpegdec ! video/x-raw ! xvimagesink &

it works.

but how to enable GPU?

 or it's default enabled?

if not, how to do in yocto image building process ,or some commands or some options in gstreamer.

 

any ideas?

 

Thank you.

 

0 项奖励
回复
2 回复数

934 次查看
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @gonewithwind-peter 

In video streaming the responsible of the execution is the CPU, there are some commands in IMX8 GStreamer User's Guide to reduce the CPU usage.

About the GPU you can use some plugin for example glimagevideo (glimagesink). Glimagesink renders video frames to a drawable on a local or remote display using OpenGL in GPU, but only the GPU executes the plugin.

 

I hope I had answered your question.

 

Best regards!

0 项奖励
回复

922 次查看
gonewithwind-peter
Senior Contributor I

@Alejandro_Salas 

Thank you so much.

let me try