Open ThinkWD opened 1 year ago
还是这个镜像 nvcr.io/nvidia/deepstream:6.1.1-devel
另起了一个容器,编译过程同上,区别是这次没有指定opencv。
这次出现了新的信息,不知道是否有用。
root@5f1f84c0c667:~/workspace/FastDeploy/streamer/examples/ppyoloe/cpp# ./streamer_demo
(gst-plugin-scanner:13411): GStreamer-WARNING **: 08:45:56.521: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstchromaprint.so': libavcodec.so.58: cannot open shared object file: No such file or directory
(gst-plugin-scanner:13411): GStreamer-WARNING **: 08:45:56.648: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory
(gst-plugin-scanner:13411): GStreamer-WARNING **: 08:45:56.663: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
app
nvurisrcbin_list
nvstreammux
nvinfer
nvtracker
nvmultistreamtiler
nvosdbin
nvvideoencfilesinkbin
[INFO] /root/workspace/FastDeploy/streamer/src/gstreamer/utils.cc(60)::CreatePipeline Trying to launch pipeline: nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_0 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_1 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_2 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_3 nvstreammux name=mux gpu-id=0 batch-size=4 width=1920 height=1080 batched-push-timeout=40000 ! nvinfer gpu-id=0 config-file-path=nvinfer_config.txt ! nvtracker gpu-id=0 tracker-width=640 tracker-height=640 ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml enable-batch-process=true ! nvmultistreamtiler gpu-id=0 rows=2 columns=2 ! nvosdbin gpu-id=0 ! nvvideoencfilesinkbin gpu-id=0 bitrate=4000 output-file=out.mp4
dsnvvideoencfilesinkbin0
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
gstnvtracker: Batch processing is ON
gstnvtracker: Past frame output is OFF
!![ERROR] yaml-cpp: error at line 25, column 26: bad conversion
An exception occurred. yaml-cpp: error at line 25, column 26: bad conversion
gstnvtracker: Failed to initialize tracker context!
gstnvtracker:: Failed to create batch context. Shutting down processing.
Running...
^C
ldd 看了下这几个加载失败的so, 一共缺四个依赖的so:
libavcodec.so.58
libavutil.so.56
librivermax.so.0
libtritonserver.so
两个是 ffmpeg 的库, 另外两个好像是 NVIDIA Triton Inference Server 的库
请问该问题解决了吗?我现在遇到了和你一样的问题?
请问该问题解决了吗?我现在遇到了和你一样的问题?
@HGD-ai 没有解决, 官方也没有任何回复, 所以我现在用deepstream。 另外,这个模块官方已经大半年没有任何更新和社区支持了,早点换吧
环境
nvcr.io/nvidia/deepstream:6.1.1-devel
cmake .. \ -D WITH_GPU=ON \ -D ENABLE_ORT_BACKEND=ON \ -D ENABLE_TRT_BACKEND=ON \ -D ENABLE_VISION=ON \ -D CUDA_DIRECTORY=/usr/local/cuda \ -D TRT_DIRECTORY=/root/workspace/TensorRT-8.4.1.5 \ -D OPENCV_DIRECTORY=/root/workspace/opencv/lib/cmake/opencv4 \ -D CMAKE_INSTALL_PREFIX=./install
make -j$(nproc) && make install
编译 fdstreamer
cd FastDeploy/streamer/ mkdir -p build && cd build
cmake ..\ -D ENABLE_DEEPSTREAM=ON \ -D FASTDEPLOY_INSTALL_DIR=../build/install
make -j$(nproc)
编译 ppyoloe example
cd FastDeploy/streamer/examples/ppyoloe/cpp/ mkdir -p build && cd build
cmake -D FASTDEPLOY_INSTALL_DIR=/root/workspace/FastDeploy/build/install ..
make -j$(nproc)
执行
cd FastDeploy/streamer/examples/ppyoloe/cpp/ mv ./build/streamer_demo . ./streamer_demo
root@c560e41fc7fc:~/workspace/FastDeploy/streamer/examples/ppyoloe/cpp# ./streamer_demo app nvurisrcbin_list nvstreammux nvinfer nvtracker nvmultistreamtiler nvosdbin nvvideoencfilesinkbin [INFO] /root/workspace/FastDeploy/streamer/src/gstreamer/utils.cc(60)::CreatePipeline Trying to launch pipeline: nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_0 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_1 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_2 nvurisrcbin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_ride_bike.mov gpu-id=0 ! mux.sink_3 nvstreammux name=mux gpu-id=0 batch-size=4 width=1920 height=1080 batched-push-timeout=40000 ! nvinfer gpu-id=0 config-file-path=nvinfer_config.txt ! nvtracker gpu-id=0 tracker-width=640 tracker-height=640 ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so ll-config-file=/opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml enable-batch-process=true ! nvmultistreamtiler gpu-id=0 rows=2 columns=2 ! nvosdbin gpu-id=0 ! nvvideoencfilesinkbin gpu-id=0 bitrate=4000 output-file=out.mp4 dsnvvideoencfilesinkbin0 gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so gstnvtracker: Batch processing is ON gstnvtracker: Past frame output is OFF
!![ERROR] yaml-cpp: error at line 25, column 26: bad conversion An exception occurred. yaml-cpp: error at line 25, column 26: bad conversion gstnvtracker: Failed to initialize tracker context! gstnvtracker:: Failed to create batch context. Shutting down processing. Running... ^C