Hi,
I’ve been trying to integrate OpenCV to Kurento, using RTP and RTCP with Gstreamer pipeline.
I got the pure RTP working with C++, but no success on how to write a pipeline that works with VideoWriter. Using gst-launch-1.0 works fine, but I just get syntax error with C++.
I’ve been trying this:
std::string Stream_Pipeline("rtpbin name=rtpbin appsrc is-live=true ! autovideoconvert ! "
"omxh264enc control-rate=2 bitrate=90000 ! video/x-h264, stream-format=byte-stream ! rtph264pay mtu=1400 config-interval=1 pt=96 ! \"application/x-rtp,payload=(int)103,clock-rate=(int)90000,ssrc=(uint)112233\" ! rtpbin.send_rtp_sink_0 "
"rtpbin.send_rtp_src_0 ! udpsink host=10.1.1.12 port=44058 sync=false async=false bind-port=5004 "
"rtpbin.send_rtcp_src_0 ! udpsink port=5001 sync=false async=false "
"udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0");
cv::VideoWriter Stream(Stream_Pipeline, cv::CAP_GSTREAMER, 30, cv::Size(1920, 1080), true);
Any ideas how to get it running? I’ve been unsuccessful finding working code using the rtpbin module.
//HS