How to run a camera stream via gsreamer (GPU)

Hello. I use gstreamer to output an opencv frame to a UDP stream with the following command:

cv::VideoWriter writer; // gstreamer
writer.open(“appsrc ! videoconvert ! video/x-raw, format=(string)BGRx, width=(int)800, height=(int)600, framerate=(fraction)30/1 ! videoconvert ! video/x-raw, format=(string)I420 ! omxh264enc control-rate=2 bitrate=8000000 ! video/x-h264, stream-format=byte-stream ! > rtph264pay mtu=1500 ! udpsink host=0.0.0.0 port=5000 sync=false async=false”, 0, 30, cv::Size(frame_width, frame_height), true);

But I don’t understand how I can rewrite the preplane to do the conversion on the GPU or how I could speed it up.

Hi,
There are topics about this use-case:
Stream processed video with OpenCV on Jetson TX2 - #5 by DaneLLL
OpenvCV, Gstreamer, Python camera capture/access and streaming to RTP

Please take a look.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.