Nvv4l2decoder error

It seems that nvv4l2decoder gives an error when you execute the following command. Why?
IP camera is set to h.264.

GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://[IP address]/stream1 user-id=user user-pw=password ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvideoconvert ! nveglglessink

sorry. contains the language of my country.

パイプラインを一時停止 (PAUSED) にしています...
0:00:00.126053195 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:00.126070334 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MJPG
0:00:00.126074709 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:00.126078691 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MJPG
0:00:00.126106025 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:00.126110026 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H265
0:00:00.126113037 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:00.126116952 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H265
0:00:00.126125362 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:00.126131957 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H264
0:00:00.126136822 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:00.126140204 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H264
0:00:00.126369289 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: 不明なエラーです -1
0:00:00.126375578 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat NM12
0:00:00.126380309 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: 不明なエラーです -1
0:00:00.126385208 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat NM12
0:00:00.126391999 18316 0x558f215960a0 WARN                    v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x558f214b0370 Failed to determine interlace mode
Pipeline is live and does not need PREROLL ...
0:00:00.126838508 18316 0x558f215960a0 WARN               structure gststructure.c:1832:priv_gst_structure_append_to_gstring: No value transform to serialize field 'display' of type 'GstEGLDisplay'
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.1.203/stream1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
パイプラインを再生中 (PLAYING) にしています...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
0:00:00.930360929 18316 0x7fdb700530a0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sending PLAY request
0:00:00.930494882 18316 0x7fdb700530f0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sent PLAY request
0:00:01.134166314 18316 0x7fdb70053000 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<udpsrc2> error: Internal data stream error.
0:00:01.134197361 18316 0x7fdb70053000 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<udpsrc2> error: streaming stopped, reason not-linked (-1)
0:00:01.907220980 18316 0x7fdb700528a0 FIXME               basesink gstbasesink.c:3145:gst_base_sink_default_event:<eglglessink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
(gst-launch-1.0:18316): GStreamer-CRITICAL **: 11:07:51.066: gst_mini_object_unref: assertion 'mini_object != NULL' failed

ffprobe

ffprobe version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2007-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, rtsp, from 'rtsp://admin:1234@192.168.1.203/stream1':
  Metadata:
    title           : FOCUS H&S IP Camera
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1280x720, 29.97 tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s

Hi,
Please try with uridecodebin:

$ gst-launch-1.0 uridecodebin uri=rtsp://[IP address]/stream1 user-id=user user-pw=password ! nvoverlaysink

Check if the URI is valid first.

A public vaid URI for your refernece:
rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen02.stream

Hi,

Tried uridecodebin but it seems similar error.

Not found for nvoverlaysink.

ubuntu@ubuntu-System-Product-Name:~$ GST_DEBUG=3 gst-launch-1.0 uridecodebin uri=rtsp://user:password@192.168.252.203/stream1 ! nveglglessink
パイプラインを一時停止 (PAUSED) にしています...
Pipeline is live and does not need PREROLL ...
0:00:00.140497893  3041 0x5559565f8780 WARN               structure gststructure.c:1832:priv_gst_structure_append_to_gstring: No value transform to serialize field 'display' of type 'GstEGLDisplay'
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:1234@192.168.252.203/stream1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
パイプラインを再生中 (PLAYING) にしています...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
0:00:00.969812090  3041 0x7f5fa006b0a0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sending PLAY request
0:00:00.970017936  3041 0x7f5fa006b0f0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sent PLAY request
0:00:01.256039968  3041 0x7f5fa0041370 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<udpsrc3> error: Internal data stream error.
0:00:01.256070422  3041 0x7f5fa0041370 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<udpsrc3> error: streaming stopped, reason not-linked (-1)
0:00:01.404284220  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:01.404316706  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MJPG
0:00:01.404329872  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:01.404345852  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MJPG
0:00:01.404375128  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:01.404390634  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H265
0:00:01.404403663  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:01.404417338  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H265
0:00:01.404447040  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:01.404464896  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H264
0:00:01.404477476  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: 不明なエラーです -1
0:00:01.404490183  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H264
0:00:01.405228610  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: 不明なエラーです -1
0:00:01.405247550  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat NM12
0:00:01.405260777  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: 不明なエラーです -1
0:00:01.405274723  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat NM12
0:00:01.405292284  3041 0x7f5f7c002cf0 WARN                    v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f5f5c0313a0 Failed to determine interlace mode

“avdec_h264” works fine.

ubuntu@ubuntu-System-Product-Name:~$ GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.252.203/stream1 user-id=user user-pw=password ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! ximagesink
パイプラインを一時停止 (PAUSED) にしています...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.252.203:554/stream1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
パイプラインを再生中 (PLAYING) にしています...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
0:00:00.878251860  3268 0x7fddac0598a0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.878341616  3268 0x7fddac0598f0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sent PLAY request
0:00:01.143832830  3268 0x7fddac059800 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<udpsrc3> error: Internal data stream error.
0:00:01.143873328  3268 0x7fddac059800 WARN                 basesrc gstbasesrc.c:3055:gst_base_src_loop:<udpsrc3> error: streaming stopped, reason not-linked (-1)
0:00:01.688791070  3268 0x7fddac0590a0 FIXME               basesink gstbasesink.c:3145:gst_base_sink_default_event:<ximagesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements

Hi,
The nvoverlaysink is supported on Jetson platforms only. Your device should be x86 PC with NVIDIA desktop GPUs. Please share information about the GPU(RTX2080, or Tesla P4, …)

Do you install the latest release version is 4.0.2? Besides, please check if you have all components matched in versions:
https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html

Hi,

I tried it with the following GPU.

RTX2080
Tesla T4 (for Tesla T4, ran with fakesink.)

also used the following docker container without change.

nvcr.io/nvidia/deepstream:4.0.2-19.12-devel

Hi,
Does the public URI works on your PC?
rtsp://freja.hiof.no:1935/rtplive/ definst /hessdalen02.stream

Would like to know if it is specific to the RTSP source. Please also share information about the source. If it is an IP camera, please share brand and model ID for reference.

Hi,

Yes, public URI works on my PC.

The maker and model of the camera that is causing the problem this time are as follows.

maker : Focus
model : SD-D60IP

I know that some cameras work without problems.
I want to know what might be the possible reasons why nvv4l2decoder does not work.

Hi,
We don’t have IP cameras from the vendor. If you are able to make it a public URI, we can connect to reproduce the issue, and do further investigation. Please check if you can help on this.

Since avdec_h264 is working with the camera, a solution is to run like

gst-launch-1.0 rtspsrc location=rtsp://192.168.252.203/stream1 user-id=user user-pw=password ! rtph264depay ! h264parse ! avdec_h264 ! nvvideoconvert ! nvinfer ! ...

A desktop PC with x86 CPU should give sufficient performance while using software decoder avdec_h264.