<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="">
<div id="divtagdefaultwrapper" dir="ltr" style="">
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
Hi Mark,</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
Thanks a lot for your suggestion. I have been able to play the RTSP stream in VLC media player.</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<ol style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-bottom: 0px; margin-top: 0px;">
<li>For the 1st command you suggested,<br>
I have tried to construct a pipeline(based on some googling) -}<br>
<br>
$ <span style="font-size: 12pt;">gst-launch-1.0 -v rtspsrc location="<rtsp_url>" latency=10 ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! xvimagesink<br>
</span><br>
I keep getting t<span style="font-size: 12pt;">he warning:</span><b style="font-size: 12pt;"> No element "<some element>" </b><span style="font-size: 12pt;"> for some of the elements.<br>
</span>I am currently looking into this issue. <br>
<br>
</li><li>
<p style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">
For the 2nd command you suggested,<br>
I am able to play the file, but there is only audio. I see some errors on my console reporting that <br>
I do not have H264 decoder or it cannot be found.<br>
<br>
</p>
</li></ol>
I am having quite some difficulty in resolving these as I'm having shortage of time + multimedia frameworks is not
<br>
the central focus of my project :( .</div>
<div id="divtagdefaultwrapper" dir="ltr" style=""><br>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="">Any help will be greatly appreciated.</div>
<div id="divtagdefaultwrapper" dir="ltr" style=""><br>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="">Best,</div>
<div id="divtagdefaultwrapper" dir="ltr" style="">Malhar <br>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
<p style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; margin-top: 0px; margin-bottom: 0px;">
<br>
</p>
</div>
<hr tabindex="-1" style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr" style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt;">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gstreamer-devel <gstreamer-devel-bounces@lists.freedesktop.org> on behalf of Mark Howell <mark-sub1@hypgnosys.org><br>
<b>Sent:</b> Monday, January 22, 2018 8:01:56 PM<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<br>
<b>Subject:</b> Re: Critical Error reading RTSP stream from IP cameras</font>
<div> </div>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 12pt; background-color: rgb(255, 255, 255);">
<div class="x_moz-cite-prefix">On 01/22/2018 04:36 AM, Jajoo, Malhar wrote:<br>
</div>
<blockquote type="cite">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0; margin-bottom:0">Hi,</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<div>I am using<b> sricam SP019</b> IP(Wireless) camera.</div>
<div>I have been able to find the RTSP URL for my camera: (<a class="x_moz-txt-link-rfc2396E" href="">"rtsp://IP_ADDRESS:554/onvif1"</a>).</div>
<div>However, I am unable to open the RTSP stream using openCV VideoCapture interface.</div>
<div><br>
</div>
<div><b>Already tried ( and didn't help much )-</b></div>
<div><br>
</div>
<div>
<ol style="margin-bottom:0px; margin-top:0px">
<li>I have posted in the openCV forum<span style="font-size:12pt"> but have not received any reply yet.<br>
</span><br>
</li><li>Tried the BigBuckBunny RTSP URL from website (<a href="https://www.wowza.com/html/mobile.html" class="x_OWAAutoLink" id="LPlnk348167" previewremoved="true">https://www.wowza.com/html/mobile.html</a>)
<br>
<b>and it works using openCV cv::VideoCapture().<br>
<br>
</b></li><li><span style="">I managed to play my IP cameras RTSP stream in VLC and the onvifer Android app provided.<br>
<br>
</span>
<div style="">The app also provided the following info - </div>
<div style=""> - Encoding: H264</div>
<div style=""> - Transport Protocol: RTP/RTSP/TCP</div>
<div style=""></div>
<div style=""> - RTSP port: 554</div>
<br>
<br>
</li><li><span style="font-size:12pt">I have also recompiled openCV from scratch enabling gstreamer and ffmpeg Cmake Flags (-D WITH_GSTREAMER=ON and -D WITH_FFMPEG=ON).</span>
</li></ol>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="">However, I still keep getting the<b> error</b> shown: <span><b>GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed</b></span></div>
<div style=""><br>
</div>
</div>
<div style=""><br>
</div>
<div><b>My question</b>: </div>
<div>I<span style="font-size:12pt">t would be extremely helpful if someone could give a hint as to what's causing the error.</span></div>
<div><br>
</div>
<div>Thanks!</div>
<br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
gstreamer-devel mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<p>1) Try playing the RTSP stream in something like VLC (videolan.org) to make sure the camera is working</p>
<p><br>
</p>
<p>2) Try using gst-launch-1.0 at the command line to build a pipeline that plays your camera stream with just GStreamer; this would isolate it from any OpenCV issues (for which you may not find much help here).</p>
<p><br>
</p>
<p>something like:</p>
<p><br>
</p>
<p>$ gst-launch-1.0 -v rtspsrc location=<a class="x_moz-txt-link-freetext" href="">rtsp://IP_ADDRESS:554/onvif1</a> ! rtph264depay ! avdec_h264 ! videoconvert ! xvimagesink</p>
<p><br>
</p>
<p>there are also more automatic/portable ways to do that with playbin, e.g.:</p>
<p><br>
</p>
<p>gst-launch-1.0 -v playbin uri=<a class="x_moz-txt-link-freetext" href="">rtsp://IP_ADDRESS:554/onvif1</a></p>
<p><br>
</p>
<p>Cheers,</p>
<p><br>
</p>
<p>Mark.</p>
</div>
</div>
</body>
</html>