How enable GPU with gstreamer in maaxboard-zeus?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How enable GPU with gstreamer in maaxboard-zeus?

840 Views
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 Kudos
Reply
2 Replies

787 Views
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 Kudos
Reply

775 Views
gonewithwind-peter
Senior Contributor I

@Alejandro_Salas 

Thank you so much.

let me try