I’m trying to run a sample app to understand how deepstream works. I run into “** ERROR: main:651: Failed to set pipeline to PAUSED” Error. I’m not sure if I’ve missed any steps.
Allow external applications to connect to the host’s X display:
xhost +
Run the docker container using the nvidia-docker command
nvidia-docker run -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /root nvcr.io/nvidia/deepstream:4.0-19.07
Current Working Directory:
/root/deepstream_sdk_v4.0_x86_64/samples/configs/deepstream-app
Thanks for the suggestion of ‘–gst-debug’. I was able to find some similar errors in the forum and was able to update certain things. After trial and error, I updated the docker run command as I was still getting errors with command in the documentation.
If you do not have a local display attached to your server (i.e headless) then you won’t be able to use EGL sink, and hence you’ll see this error.
Can you post the full [sink] config block you have used for this option ?
Fakesink doesn’t have a display output by default. But as you can see from the logs, pipeline has been running successfully.
If you are running this on a headless server, i would suggest using type=4 which is RTSP streaming output. The related config block sample looks like this -
[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
sync=0
bitrate=4000000
# set below properties in case of RTSPStreaming
rtsp-port=8554
udp-port=5400
gpu-id=1
You can also find more information regarding config options for sink group over here - DeepStream Development Guide
*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***
X11 connection rejected because of wrong authentication.
0:00:00.428063294 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.428083924 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe minimum capture size for pixelformat YM12
0:00:00.428091359 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.428097475 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe maximum capture size for pixelformat YM12
0:00:00.428104797 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x55a5e2d49110 Failed to determine interlace mode
0:00:00.428130359 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:src> Unable to try format: Unknown error -1
0:00:00.428136687 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:src> Could not probe minimum capture size for pixelformat H264
0:00:00.428141049 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:src> Unable to try format: Unknown error -1
0:00:00.428145633 447 0x55a5e2df1930 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:src> Could not probe maximum capture size for pixelformat H264
Creating LL OSD context new
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream-4.0/lib/libnvds_mot_klt.so
gstnvtracker: Optional NvMOT_RemoveStreams not implemented
gstnvtracker: Batch processing is OFF
0:00:02.581583413 447 0x55a5e2df1930 WARN basesrc gstbasesrc.c:3583:gst_base_src_start_complete:
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
To go back to the tiled display, right-click anywhere on the window.
** INFO: <bus_callback:163>: Pipeline ready
0:00:02.586883947 447 0x55a5e2c2cc00 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:02.586897157 447 0x7f2458003990 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:02.587002978 447 0x7f2458003990 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:02.587006738 447 0x55a5e2c2cc00 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:02.587096542 447 0x7f2458003990 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length: processing at or past EOS
0:00:02.587099136 447 0x55a5e2c2cc00 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length: processing at or past EOS
0:00:02.588665653 447 0x7f24340046d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:02.588758714 447 0x7f24340046d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:02.588830528 447 0x7f24340046d0 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length: processing at or past EOS
0:00:02.589610490 447 0x55a5e2c38850 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 1
0:00:02.590086806 447 0x55a5e2c38850 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex: failed to find fragment defaults for stream 2
0:00:02.590516460 447 0x55a5e2c38850 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length: processing at or past EOS
0:00:02.629068696 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:02.629082515 447 0x55a5e2c2cf20 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:02.629088402 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:02.629093906 447 0x55a5e2c2cf20 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:02.629106469 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:02.629113127 447 0x55a5e2c2cf20 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:02.629117747 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:02.629125391 447 0x55a5e2c2cf20 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:02.629138195 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:02.629144078 447 0x55a5e2c2cf20 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:02.629148203 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:sink Unable to try format: Unknown error -1
0:00:02.629153321 447 0x55a5e2c2cf20 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:02.629175700 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:src Unable to try format: Unknown error -1
0:00:02.629181382 447 0x55a5e2c2cf20 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:02.629185777 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder0:src Unable to try format: Unknown error -1
0:00:02.629190975 447 0x55a5e2c2cf20 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:02.629199710 447 0x55a5e2c2cf20 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f2414017be0 Failed to determine interlace mode
0:00:02.629414628 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:sink Unable to try format: Unknown error -1
0:00:02.629426865 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:sink Could not probe minimum capture size for pixelformat MJPG
0:00:02.629434961 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:sink Unable to try format: Unknown error -1
0:00:02.629441851 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:sink Could not probe maximum capture size for pixelformat MJPG
0:00:02.629455002 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:sink Unable to try format: Unknown error -1
0:00:02.629473225 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:sink Could not probe minimum capture size for pixelformat H265
0:00:02.629479765 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:sink Unable to try format: Unknown error -1
0:00:02.629485193 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:sink Could not probe maximum capture size for pixelformat H265
0:00:02.629495718 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:sink Unable to try format: Unknown error -1
0:00:02.629501211 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:sink Could not probe minimum capture size for pixelformat H264
0:00:02.629507051 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:sink Unable to try format: Unknown error -1
0:00:02.629513836 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:sink Could not probe maximum capture size for pixelformat H264
0:00:02.629540063 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:src Unable to try format: Unknown error -1
0:00:02.629545678 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:src Could not probe minimum capture size for pixelformat NM12
0:00:02.629580626 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder1:src Unable to try format: Unknown error -1
0:00:02.629586453 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder1:src Could not probe maximum capture size for pixelformat NM12
0:00:02.629597296 447 0x55a5e2c2ca80 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f243001b6b0 Failed to determine interlace mode
0:00:02.630201641 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:sink Unable to try format: Unknown error -1
0:00:02.630213163 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:sink Could not probe minimum capture size for pixelformat MJPG
0:00:02.630218736 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:sink Unable to try format: Unknown error -1
0:00:02.630225430 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:sink Could not probe maximum capture size for pixelformat MJPG
0:00:02.630237094 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:sink Unable to try format: Unknown error -1
0:00:02.630243919 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:sink Could not probe minimum capture size for pixelformat H265
0:00:02.630249815 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:sink Unable to try format: Unknown error -1
0:00:02.630255238 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:sink Could not probe maximum capture size for pixelformat H265
0:00:02.630265492 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:sink Unable to try format: Unknown error -1
0:00:02.630269891 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:sink Could not probe minimum capture size for pixelformat H264
0:00:02.630275575 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:sink Unable to try format: Unknown error -1
0:00:02.630283019 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:sink Could not probe maximum capture size for pixelformat H264
0:00:02.630300152 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:src Unable to try format: Unknown error -1
0:00:02.630305472 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:src Could not probe minimum capture size for pixelformat NM12
0:00:02.630311264 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder2:src Unable to try format: Unknown error -1
0:00:02.630316323 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder2:src Could not probe maximum capture size for pixelformat NM12
0:00:02.630322948 447 0x7f24180128a0 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f240801efd0 Failed to determine interlace mode
0:00:02.635027207 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:sink Unable to try format: Unknown error -1
0:00:02.635039216 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:sink Could not probe minimum capture size for pixelformat MJPG
0:00:02.635044583 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:sink Unable to try format: Unknown error -1
0:00:02.635051140 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:sink Could not probe maximum capture size for pixelformat MJPG
0:00:02.635062694 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:sink Unable to try format: Unknown error -1
0:00:02.635067505 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:sink Could not probe minimum capture size for pixelformat H265
0:00:02.635075993 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:sink Unable to try format: Unknown error -1
0:00:02.635084252 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:sink Could not probe maximum capture size for pixelformat H265
0:00:02.635094573 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:sink Unable to try format: Unknown error -1
0:00:02.635099707 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:sink Could not probe minimum capture size for pixelformat H264
0:00:02.635105253 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:sink Unable to try format: Unknown error -1
0:00:02.635112248 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:sink Could not probe maximum capture size for pixelformat H264
0:00:02.635128859 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:src Unable to try format: Unknown error -1
0:00:02.635134834 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2919:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:src Could not probe minimum capture size for pixelformat NM12
0:00:02.635139784 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:3033:gst_v4l2_object_get_nearest_size:nvv4l2decoder3:src Unable to try format: Unknown error -1
0:00:02.635144067 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2925:gst_v4l2_object_probe_caps_for_format:nvv4l2decoder3:src Could not probe maximum capture size for pixelformat NM12
0:00:02.635150318 447 0x55a5e2c2c850 WARN v4l2 gstv4l2object.c:2370:gst_v4l2_object_add_interlace_mode:0x7f242001ac20 Failed to determine interlace mode
0:00:02.735061939 447 0x55a5e2c2cf20 ERROR v4l2 gstv4l2object.c:2072:gst_v4l2_object_get_interlace_mode: Driver bug detected - check driver with v4l2-compliance from v4l-utils.git - media (V4L2, DVB and IR) applications and libraries
Are you sure that you havent left the EGL sink option enabled when you ran this ? Because the error message says - “X11 connection rejected because of wrong authentication.”
Please disable all other sink blocks and leave just the RTSP sink enabled.
It finally ran after I pulled a different container (deepstream:4.0.1-19.09-devel). I enabled the RTSP as you had suggested. But I’m still unable to view the GUI. Am I supposed to set anything else?
*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***
Creating LL OSD context new
0:00:00.910840667 19 0x55e5cdb96630 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:useEngineFile(): Failed to read from model engine file
0:00:00.910877953 19 0x55e5cdb96630 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:initialize(): Trying to create engine from model files
0:00:11.577739030 19 0x55e5cdb96630 INFO nvinfer gstnvinfer.cpp:519:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:generateTRTModel(): Storing the serialized cuda engine to file at /root/deepstream_sdk_v4.0.1_x86_64/samples/models/Primary_Detector/resnet10.caffemodel_b30_int8.engine
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
To go back to the tiled display, right-click anywhere on the window.