Can someone help me with Uniview RTSP URL

Hi, I am looking for the correct RTSP syntax for my Uniview based camera which is connected to DVR and has multiple channels connected with login authenticity.

I tried using

  1. rtsp://admin:passwd@192.168.1.2:554/h265/main/ch4/main/av_stream [ for channel 4 ]
  2. rtsp://user:password@IP_NVR:554/unicast/c2/s1/live
  3. rtsp://user:password@IP_NVR:554/unicast/c2/s1/live

But they are not working.

Hi,
Looks like you don’t add " ". Please refer to the posts:
Deepstream 5.1 Test 3 RTSP Camera INPUT - #3 by DaneLLL
Python Bindings for DeepStream not working with RTSP stream - #8 by DaneLLL

@DaneLLL - Thanks for your reply.
I used the syntax gst-launch-1.0 rtspsrc=uri ! fakesink with this syntax: rtsp://user:password@IP_NVR:554/unicast/c2/s1/live and now it is showing me the below error

I tried putting my URI into double quotes but that did not change anything.

I am using h265 compression type and the make of my VR is NVR302-16Q

Hi,
Please try and check if this works:

$ gst-launch-1.0 rtspsrc location="rtsp://user:password@IP_NVR:554/unicast/c2/s1/live" ! rtph265depay !  fakesink

If it works please then try

$ gst-launch-1.0 rtspsrc location="rtsp://user:password@IP_NVR:554/unicast/c2/s1/live" ! rtph265depay !  h265parse ! fakesink

and

$ gst-launch-1.0 rtspsrc location="rtsp://user:password@IP_NVR:554/unicast/c2/s1/live" ! rtph265depay !  h265parse ! nvv4l2decoder ! nvoverlaysink

If the URI is valid these pipelines should all work.

Hi @DaneLLL , thank you for your reply.
I tried all three syntax which you shared but none of them produced a different result.

Adding to it I also tried -

gst-launch-1.0 rtspsrc=LINK ! h265parse ! nvv4l2decoder ! nvvideoconvert ! fakesink

and

gst-launch-1.0 uridecodebin uri=LINK ! fakesink

Both of them didn’t help and I am still getting:

**(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.209: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.263: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.382: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.472: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.502: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.592: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.682: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.712: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.803: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.863: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.921: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:36.981: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:37.072: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:37.102: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:37.191: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:37.281: _gst_util_uint64_scale_int: assertion 'denom > 0' failed

(gst-launch-1.0:2914): GStreamer-CRITICAL **: 03:04:37.314: _gst_util_uint64_scale_int: assertion 'denom > 0' failed**

I am using the below syntax for the URI

  1. rtsp://user:password@IP_NVR:554/unicast/c2/s1/live
    And it works properly in my VLC player.

Hi,
Please check if you can contact camera vendor to get valid URI. If rtspsrc cannot read from the source it cannot work.

And this should be wrong: gst-launch-1.0 srtspsrc=LINK
It shall be: gst-launch-1.0 rtspsrc location=LINK

Hey @DaneLLL ,
We connected with the vendor and can they share the same URI syntax - rtsp://user:password@IP_NVR:554/unicast/c2/s1/live with us. Although we are into technical support with them.

Meanwhile, I want to bring your focus onto this below error message which I got after changing the compression type to h264

(python3:29085): GStreamer-CRITICAL **: 15:19:18.534: _gst_util_uint64_scale_int: assertion ‘denom >0’ failed

(python3:29085): GStreamer-CRITICAL **: 15:19:18.596: _gst_util_uint64_scale_int: assertion ‘denom > 0’ failed

(python3:29085): GStreamer-CRITICAL **: 15:19:18.613: _gst_util_uint64_scale_int: assertion ‘denom > 0’ failed
Decodebin child added: decodebin0

Warning: gst-stream-error-quark: No decoder available for type ‘application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)0, encoding-name=(string)PCMU, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1, ssrc=(uint)854523910’. (6): gsturidecodebin.c(921): unknown_type_cb (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin

(python3:29085): GStreamer-CRITICAL **: 15:19:18.715: _gst_util_uint64_scale_int: assertion ‘denom > 0’ failed
Decodebin child added: decodebin1

Warning: gst-stream-error-quark: No decoder available for type ‘application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)0, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)000167, sprop-parameter-sets=(string)“AAABZ0IAFJY1QsEtNwEBAUAAAPoAAA+gIQ==,AAABaM48gA==”, a-framerate=(string)8, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1, ssrc=(uint)854523910’. (6): gsturidecodebin.c(921): unknown_type_cb (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin
Error: gst-core-error-quark: Your GStreamer installation is missing a plug-in. (12): gsturidecodebin.c(988): no_more_pads_full (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin:
no suitable plugins found:
gstdecodebin2.c(4679): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstDecodeBin:decodebin1:
no suitable plugins found:
Missing decoder: application/x-rtp (application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)0, encoding-name=(string)H264, packetization-mode=(string)0, profile-level-id=(string)000167, sprop-parameter-sets=(string)“AAABZ0IAFJY1QsEtNwEBAUAAAPoAAA+gIQ==,AAABaM48gA==”, a-framerate=(string)8, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1, ssrc=(uint)854523910)
gstdecodebin2.c(4679): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: application/x-rtp (application/x-rtp, media=(string)audio, payload=(int)0, clock-rate=(int)0, encoding-name=(string)PCMU, npt-start=(guint64)0, play-speed=(double)1, play-scale=(double)1, ssrc=(uint)854523910)

Exiting app

This says that there are some missing decoder and plugins. Also can you help me understand the 5th last line which starts from Missing decoder: application/x-rtp ...... please?

Thank you,

Hi,
Please clean cache and check if you can run this command:

$ rm .cache/gstreamer-1.0/registry.aarch64.bin
$ gst-launch-1.0 rtspsrc location=rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4 ! rtph264depay ! h264parse ! nvv4l2decoder ! nvoverlaysink

If you are not able to successfully run the command, we would suggest re-flash the system image and try again.

Hi @DaneLLL ,
I ran the syntax which you shared with me with my uri and got this -

Setting pipeline to PAUSED ...
Opening in BLOCKING MODE
Opening in BLOCKING MODE
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://user1:passwd%4087@192.168.1.5:554/unicast/s1/c1/live
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unauthorized
Additional debug info:
gstrtspsrc.c(6116): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Unauthorized (401)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Hi,

It seems like the user or password is wrong. Please check this.

In this post it suggests set user-id and user-pw. May give it a try.
gstreamer - How to pass authentication in GST Launch? - Stack Overflow

Is there syntax where you put user-id and user-pw separately other than the URI?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.