前言
准备系统学习下deepstream的相关内容,先跑下示例,是基于docker的。
继续加油,还有很多内容哦~
1,deepstream的test4实例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| nvidia-docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -v/home/hello/code:/home/code --name=kafkads nvcr.io/nvidia/deepstream:5.1-21.02-samples
apt install python3-gi python3-gst-1.0 -y apt install python3-distutils cd /opt/nvidia/deepstream/deepstream-5.1/lib python3 setup.py install
apt-get install libglib2.0 libglib2.0-dev apt-get install libjansson4 libjansson-dev apt-get install librdkafka1=0.11.3-1build1
apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev apt-get install libgstrtspserver-1.0-dev libx11-dev
apt-get install nvidia-cuda-toolkit
deepstream-test4-app -i /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264 -p /opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so --conn-str="192.168.8.116;9092;test" -c cfg_kafka.txt -s 0 --no-display
python3 deepstream_test_4.py -i /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264 -p /opt/nvidia/deepstream/deepstream-5.1/lib/libnvds_kafka_proto.so --conn-str="192.168.8.116;9092;test" -c cfg_kafka.txt -s "0" --no-display
|
2,报错
python3.6m的动态库
1
| ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
|
解决方案参考
找不到cuda的runtime头文件
1
| fatal error: cuda_runtime.h: No such file or directory
|
解决方案参考
3,参考文献
nvidia论坛