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“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= 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.

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.