Using GPU for gstreamer pipeline

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

Using GPU for gstreamer pipeline

1,742 Views
snehal_jadhav
Contributor III

Hi,

I am trying to stream camera from Imx6q platform using Gstreamer pipeline on remote display which has NVIDIA GPU.  how can I have Gstreamer pipeline make use of GPU for having reduced latency on remote display.

 

Thanks

Tags (1)
0 Kudos
2 Replies

1,726 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Snehal,

You can use the gstreamer on a remote display with the GPU internal or external in this case Nvidia with:

gst-launch-1.0 -v ximagesrc use-damage=0 ! nvvidconv ! 'video/x-raw(memory:NVMM),alignment=au,format=I420,framerate=25/1,pixel-aspect-ratio=1/1' ! omxh264enc ! 'video/x-h264,stream-format=byte-stream' ! filesink location="test.h264" -e

 Regards

0 Kudos

1,661 Views
snehal_jadhav
Contributor III

Hi,

Thanks for your reply.

we have added nvdec gstreamer plugins to make use of GPU(on system having NVIDIA GPU). We are using below pipeline to stream camera 

gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp,encoding-name=H264,payload=96 ! rtpjitterbuffer latency=0 drop-on-latency=TRUE ! rtph264depay ! video/x-h264 ! h264parse ! nvdec ! glimagesink sync=false

After adding nvdec gstreamer plugins we are getting ~115ms to ~174ms latency in streaming on remote display. Is there any way we can use to reduce the latency.

Thanks

Tags (3)
0 Kudos