deepstream4.0 with rtsp of sink running in docker cannot work

Hi,

Ubuntu18.04, GTX 1060

the docker version is:
nvcr.io/nvidia/deepstream:4.0-19.07

the deepstream versionis:
deepstream_sdk_v4.0_x86_64

deepstream4.0 with rtsp of source running in docker can work.
The deepstream can receive the rtsp.

But deepstream4.0 with rtsp of sink running in docker cannot work.
The deepstream can not running.

  1. run deepstream4.0 in host PC
    The deepstream4.0 with rtsp can work well in host PC。
    The VLC can receive the rtsp that was send by deepstream4.0.

  2. run deepstream4.0 in docker without rtsp of sink
    the deepstream4.0 with EglSink can work well in docker.
    The video can play.

the configfile is:

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=4
camera-v4l2-dev-node=0
camera-width=1920
camera-height=1080
uri=rtsp://192.168.13.33:8554/
num-sources=1
gpu-id=0

(0): memtype_device - Memory type Device

(1): memtype_pinned - Memory type Host Pinned

(2): memtype_unified - Memory type Unified

cudadec-memtype=0

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

[sink1]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
sync=0
#iframeinterval=10
bitrate=1600000

set below properties in case of RTSPStreaming

rtsp-port=8553
#udp-port=5401
#rtsp://localhost:8553/ds-test

  1. run deepstream4.0 in docker with rtsp of sink
    the deepstream4.0 with rtsp of RTSPStreaming can not work well in docker.

the configfile is:

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=4
camera-v4l2-dev-node=0
camera-width=1920
camera-height=1080
uri=rtsp://192.168.13.33:8554/
num-sources=1
gpu-id=0

(0): memtype_device - Memory type Device

(1): memtype_pinned - Memory type Host Pinned

(2): memtype_unified - Memory type Unified

cudadec-memtype=0

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0

[sink1]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
sync=0
#iframeinterval=10
bitrate=1600000

set below properties in case of RTSPStreaming

rtsp-port=8553
#udp-port=5401
#rtsp://localhost:8553/ds-test

And the error info is:

linux@linux-System-Product-Name:~$ docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/linux/tool/deepstream4.0/deepstream/deepstream_sdk_v4.0_x86_64/:/root/deepstream_volume -e DISPLAY=$DISPLAY -e LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/root/deepstream_volume/sources/develop/mqttclient/mqtt/lib -p 8553:8553 -p 5401:5401 -w /root nvcr.io/nvidia/deepstream:4.0-19.07

root@fac47bcb18e9:~# /root/deepstream_volume/sources/apps/sample_apps/deepstream-app/deepstream-app -c /root/deepstream_volume/sources/objectDetector_Yolo/deepstream_app_config_yoloV3.txt
Posting connect semaphore for client ClientASyncPub rc 00 num_instances:0
1 num_instances:1
show_bbox_text:0

*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8553/ds-test ***

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:07.096961382 10 0x562fb47c2b60 WARN nvinfer gstnvinfer.cpp:515:gst_nvinfer_logger:<primary_gie_classifier> NvDsInferContext[UID 1]:log(): Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
Deserialize yoloLayerV3 plugin: yolo_83
Deserialize yoloLayerV3 plugin: yolo_95
Deserialize yoloLayerV3 plugin: yolo_107

Runtime commands:
h: Print this help
q: Quit

p: Pause
r: Resume

** INFO: <bus_callback:166>: Pipeline ready

** INFO: <bus_callback:152>: Pipeline running

Creating LL OSD context new
ERROR from sink_sub_bin_encoder2: Device ‘/dev/nvhost-msenc’ failed during initialization
Debug info: gstv4l2object.c(4050): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin2/nvv4l2h264enc:sink_sub_bin_encoder2:
Call to S_FMT failed for YM12 @ 1920x1080: Unknown error -1
ERROR from sink_sub_bin_encoder2: Device ‘/dev/nvhost-msenc’ failed during initialization
Debug info: gstv4l2object.c(4050): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin2/nvv4l2h264enc:sink_sub_bin_encoder2:
Call to S_FMT failed for YM12 @ 1920x1080: Unknown error -1
Quitting
App run failed
root@fac47bcb18e9:~#

What the wrong?
Thank you very much.

Hi,
Please check
[url]https://devtalk.nvidia.com/default/topic/1065241/deepstream-sdk/help-with-deepstream-gst-pipeline/post/5395679/#5395679[/url]

Hi,
We have updated to DS4.0.1. Please upgrade and try.

thanks, i have use docker with DS4.0.1 to run it.
That is ok.