Critical Error reading RTSP stream from IP cameras
Mark Howell
mark-sub1 at hypgnosys.org
Mon Jan 22 18:01:56 UTC 2018
On 01/22/2018 04:36 AM, Jajoo, Malhar wrote:
>
> Hi,
>
>
> I am using*sricam SP019* IP(Wireless) camera.
> I have been able to find the RTSP URL for my camera:
> ("rtsp://IP_ADDRESS:554/onvif1").
> However, I am unable to open the RTSP stream using openCV VideoCapture
> interface.
>
> *Already tried ( and didn't help much )-*
>
> 1. I have posted in the openCV forum but have not received any reply yet.
>
> 2. Tried the BigBuckBunny RTSP URL from website
> (https://www.wowza.com/html/mobile.html)
> *and it works using openCV cv::VideoCapture().
>
> *
> 3. I managed to play my IP cameras RTSP stream in VLC and the onvifer
> Android app provided.
>
> The app also provided the following info -
> - Encoding: H264
> - Transport Protocol: RTP/RTSP/TCP
> - RTSP port: 554
>
>
> 4. I have also recompiled openCV from scratch enabling gstreamer and
> ffmpeg Cmake Flags (-D WITH_GSTREAMER=ON and -D WITH_FFMPEG=ON).
>
>
>
> However, I still keep getting the*error* shown: *GLib-GObject-CRITICAL
> **: g_object_set: assertion 'G_IS_OBJECT (object)' failed*
>
>
> *My question*:
> It would be extremely helpful if someone could give a hint as to
> what's causing the error.
>
> Thanks!
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
1) Try playing the RTSP stream in something like VLC (videolan.org) to
make sure the camera is working
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).
something like:
$ gst-launch-1.0 -v rtspsrc location=rtsp://IP_ADDRESS:554/onvif1 !
rtph264depay ! avdec_h264 ! videoconvert ! xvimagesink
there are also more automatic/portable ways to do that with playbin, e.g.:
gst-launch-1.0 -v playbin uri=rtsp://IP_ADDRESS:554/onvif1
Cheers,
Mark.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180122/b9db7992/attachment-0001.html>
More information about the gstreamer-devel
mailing list