<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_ym19_1_1510042689858_5693"><span id="yui_3_16_0_ym19_1_1510042689858_5692">You have one sink too many.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1510042689858_5691"><span id="yui_3_16_0_ym19_1_1510042689858_5690">You should remove the ximagesink.</span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> Le Lundi 6 novembre 2017 17h35, HeroGian <Brilli.Gianluca@Gmail.com> a écrit :<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">Hello,<br></div><div dir="ltr">I want to stream a MJPEG video from my ethernet camera with OpenCV and<br></div><div dir="ltr">Gstreamer.<br></div><div dir="ltr">I have tried to open the stream with the following gstreamer pipeline:<br></div><div dir="ltr"><br></div><div dir="ltr">std::string pipe(<br></div><div dir="ltr">                "rtspsrc location=rtsp://192.168.1.219:554/video.pro1 !<br></div><div dir="ltr">application/x-rtp,encoding-name=JPEG,payload=26 ! "<br></div><div dir="ltr">                "rtpjpegdepay ! jpegdec ! xvimagesink sync=false ! appsink"<br></div><div dir="ltr">        );<br></div><div dir="ltr">cv::VideoCapture cap(pipe, cv::CAP_GSTREAMER);<br></div><div dir="ltr"><br></div><div dir="ltr">but the previous code returns me the following error:<br></div><div dir="ltr"><br></div><div dir="ltr">OpenCV Error: Unspecified error (GStreamer: cannot find appsink in manual<br></div><div dir="ltr">pipeline<br></div><div dir="ltr">) in cvCaptureFromCAM_GStreamer, file<br></div><div dir="ltr">/home/nvidia/Documents/CameraTests/src/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp,<br></div><div dir="ltr">line 796<br></div><div dir="ltr">VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised<br></div><div dir="ltr">OpenCV exception:<br></div><div dir="ltr"><br></div><div dir="ltr">/home/nvidia/Documents/CameraTests/src/opencv-3.3.0/modules/videoio/src/cap_gstreamer.cpp:796:<br></div><div dir="ltr">error: (-2) GStreamer: cannot find appsink in manual pipeline<br></div><div dir="ltr"> in function cvCaptureFromCAM_GStreamer<br></div><div dir="ltr"><br></div><div dir="ltr">I managed to stream the the same RTSP source with H264 and H265 algorithms, <br></div><div dir="ltr">MJPEG is the only format that doesn't work, then I suppose that is a<br></div><div dir="ltr">gstreamer pipeline problem..<br></div><div dir="ltr"><br></div><div dir="ltr">thanks<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">--<br></div><div dir="ltr">Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">gstreamer-devel mailing list<br></div><div dir="ltr"><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br></div><div dir="ltr"><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></div><br><br></div>  </div> </div>  </div></div></body></html>