hi,I installed deepstream 2.0, all in accordance with the official configuration settings.but i have Mistakes in running
test@lb-ubnt:~/qin/DeepStream_Release$ deepstream-app -c samples/configs/deepstream-app/source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gst-plugin-scanner:11727): Clutter-CRITICAL **: Unable to initialize Clutter: Could not initialize Gdk
(gst-plugin-scanner:11727): Clutter-Gst-CRITICAL **: Unable to initialize Clutter
** ERROR: main:490: Failed to set pipeline to PAUSED
Quitting
App run failed
I try to locate the problem.i run gstreamer examples and i have the same mistaken,but I don’t know how to solve it.
test@lb-ubnt:~/qin/gst-docs/examples/tutorials$ gcc basic-tutorial-2.c -o basic-tutorial-2 pkg-config --cflags --libs gstreamer-1.0
test@lb-ubnt:~/qin/gst-docs/examples/tutorials$ ./basic-tutorial-2
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gst-plugin-scanner:11577): Clutter-CRITICAL **: Unable to initialize Clutter: Could not initialize Gdk
(gst-plugin-scanner:11577): Clutter-Gst-CRITICAL **: Unable to initialize Clutter
hi i input rm ${HOME}/.cache/gstreamer-1.0/registry.x86_64.bin and see below
root@c5a751dfe3db:/home/DeepStream_Release/samples/configs/deepstream-app# deepstream-app -c source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gst-plugin-scanner:21327): Clutter-CRITICAL **: Unable to initialize Clutter: Could not initialize Gdk
(gst-plugin-scanner:21327): Clutter-Gst-CRITICAL **: Unable to initialize Clutter
(gst-plugin-scanner:21327): GStreamer-WARNING **: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvvideocodecs.so’: libnvcuvid.so.1: cannot open shared object file: No such file or directory
(gst-plugin-scanner:21327): GStreamer-WARNING **: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnveglglessink.so’: libGLESv2.so.2: cannot open shared object file: No such file or directory
(gst-plugin-scanner:21327): GStreamer-WARNING **: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvvideocodecs.so’: libnvcuvid.so.1: cannot open shared object file: No such file or directory
(gst-plugin-scanner:21327): GStreamer-WARNING **: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnveglglessink.so’: libGLESv2.so.2: cannot open shared object file: No such file or directory
** ERROR: <create_render_bin:51>: Failed to create ‘sink_sub_bin_sink1’
** ERROR: <create_render_bin:124>: create_render_bin failed
** ERROR: <create_sink_bin:346>: create_sink_bin failed
** ERROR: <create_processing_instance:685>: create_processing_instance failed
** ERROR: <create_pipeline:949>: create_pipeline failed
** ERROR: main:469: Failed to create pipeline
Quitting
App run failed
In order to solve this problem i send
ln -s /usr/lib/nvidia-396/libnvcuvid.so.1 /usr/lib/libnvcuvid.so.1
ln -s /usr/lib/nvidia-396/libGLESv2.so.2 /usr/lib/libGLESv2.so.2
after that i input rm ${HOME}/.cache/gstreamer-1.0/registry.x86_64.bin too and see below
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gst-plugin-scanner:21387): Clutter-CRITICAL **: Unable to initialize Clutter: Could not initialize Gdk
(gst-plugin-scanner:21387): Clutter-Gst-CRITICAL **: Unable to initialize Clutter
** ERROR: main:490: Failed to set pipeline to PAUSED
Quitting
App run failed
in Add environment variables I don’t know which is right so cuda
export PATH=/usr/local/cuda-9.2/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64:$LD_LIBRARY_PATH
export CUDA_INSTALL_DIR=/usr/local/cuda-9.2
export CUDNN_INSTALL_DIR=/usr/local/cuda-9.2 cudnn
export CUDNN_HOME=/home/cuda
export LD_LIBRARY_PATH=${CUDNN_HOME}/lib64:$LD_LIBRARY_PATH
export CPLUS_INCLUDE_PATH=${CUDNN_HOME}/include:$CPLUS_INCLUDE_PATH tensorrt
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/TensorRT-4.0.1.6/lib gstreamer
export GST_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/gstreamer-1.0
export C_INCLUDE_PATH=/usr/include/gstreamer-1.0:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=/usr/include/gstreamer-1.0:$CPLUS_INCLUDE_PATH opencv
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib deepstream
if you do not copy nvidia plugin into system path, you need to explicitly point to it,
for your reference,
export GST_PLUGIN_PATH=/home/tse/work/docker/workspace/work/deepstream/DeepStream_Release/usr/lib/x86_64-linux-gnu/gstreamer-1.0
for LD_LIBRARY_PATH, you need to specify library path, not install path, like /path to ds package/usr/local/deepstream
you are sinking to egl display, which need nvidia graphic for display, or you can choose sink to file, #Type - 1=FakeSink 2=EglSink 3=File
choose type 3, enable sink1 and disable sink0.
and the result
test@lb-ubnt:~/qin/DeepStream_Release/samples/configs/deepstream-app$ deepstream-app -c source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gst-plugin-scanner:15335): Clutter-CRITICAL **: Unable to initialize Clutter: Could not initialize Gdk
(gst-plugin-scanner:15335): Clutter-Gst-CRITICAL **: Unable to initialize Clutter
Using Cached GIE model /home/test/qin/DeepStream_Release/samples/configs/deepstream-app/../../models/Secondary_CarMake/resnet18.caffemodel_b16_int8.cache crypto flags(0)
Using Cached GIE model /home/test/qin/DeepStream_Release/samples/configs/deepstream-app/../../models/Secondary_CarColor/resnet18.caffemodel_b16_int8.cache crypto flags(0)
Using Cached GIE model /home/test/qin/DeepStream_Release/samples/configs/deepstream-app/../../models/Secondary_VehicleTypes/resnet18.caffemodel_b16_int8.cache crypto flags(0)
Using Cached GIE model /home/test/qin/DeepStream_Release/samples/configs/deepstream-app/../../models/Primary_Detector/resnet10.caffemodel_b4_int8.cache crypto flags(0)
** ERROR: main:490: Failed to set pipeline to PAUSED
Quitting
App run failed
root@c5a751dfe3db:/home/DeepStream_Release/samples/configs/deepstream-app# deepstream-app -c source4_720p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(gst-plugin-scanner:25225): Clutter-CRITICAL **: Unable to initialize Clutter: Could not initialize Gdk
(gst-plugin-scanner:25225): Clutter-Gst-CRITICAL **: Unable to initialize Clutter
Using Cached GIE model /home/DeepStream_Release/samples/configs/deepstream-app/…/…/models/Secondary_CarMake/resnet18.caffemodel_b16_int8.cache crypto flags(0)
Using Cached GIE model /home/DeepStream_Release/samples/configs/deepstream-app/…/…/models/Secondary_CarColor/resnet18.caffemodel_b16_int8.cache crypto flags(0)
Using Cached GIE model /home/DeepStream_Release/samples/configs/deepstream-app/…/…/models/Secondary_VehicleTypes/resnet18.caffemodel_b16_int8.cache crypto flags(0)
Using Cached GIE model /home/DeepStream_Release/samples/configs/deepstream-app/…/…/models/Primary_Detector/resnet10.caffemodel_b4_int8.cache crypto flags(0)
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:75>: Pipeline ready
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
…
nvcuvidh264dec0: Decode error result = 400
nvcuvidh264dec0: Decode error result = 400
Error from nvcuvidh264dec0: No valid frames decoded before end of stream
Debug info: gstvideodecoder.c(1167): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstNvcuvidH264Dec:nvcuvidh264dec0:
no valid frames found
Quitting
find dynamic link library for libgstnvvideocodecs.so, run this command under your DS package path,
if you install nvidia plugin to system path /usr/lib/x86_64-linux-gnu/gstreamer-1.0/, run by using
ldd /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstnvvideocodecs.so
Hi amycao,thank a lot for solve my question
I configured two servers.one have been able to run the program successfully.Another one has problems.
I am going to run DeepStream program first.Another problems Repositioning later~