Using GPU for gstreamer pipeline

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

Using GPU for gstreamer pipeline

1,750 次查看
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

标记 (1)
0 项奖励
2 回复数

1,734 次查看
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 项奖励

1,669 次查看
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

标记 (3)
0 项奖励