Critical Error reading RTSP stream from IP cameras
Jajoo, Malhar
malhar.jajoo14 at imperial.ac.uk
Mon Jan 22 20:05:40 UTC 2018
Hi Mark,
Thanks a lot for your suggestion. I have been able to play the RTSP stream in VLC media player.
1. For the 1st command you suggested,
I have tried to construct a pipeline(based on some googling) -}
$ gst-launch-1.0 -v rtspsrc location="<rtsp_url>" latency=10 ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! xvimagesink
I keep getting the warning: No element "<some element>" for some of the elements.
I am currently looking into this issue.
2. For the 2nd command you suggested,
I am able to play the file, but there is only audio. I see some errors on my console reporting that
I do not have H264 decoder or it cannot be found.
I am having quite some difficulty in resolving these as I'm having shortage of time + multimedia frameworks is not
the central focus of my project :( .
Any help will be greatly appreciated.
Best,
Malhar
________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Mark Howell <mark-sub1 at hypgnosys.org>
Sent: Monday, January 22, 2018 8:01:56 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: Critical Error reading RTSP stream from IP cameras
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<mailto: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/1d1a3175/attachment.html>
More information about the gstreamer-devel
mailing list