1. 安装库
先按照这个文件\opt\nvidia\deepstream\deepstream-6.4\sources\libs\mqtt_protocol_adaptor\README安装一些依赖库。
整成一条命令就是:
sudo apt-get install libglib2.0 libglib2.0-dev libcjson-dev libssl-dev && \
wget https://mosquitto.org/files/source/mosquitto-2.0.15.tar.gz && tar -xvf mosquitto-2.0.15.tar.gz && cd mosquitto-2.0.15 && make && make install && \
cp /usr/local/lib/libmosquitto* /opt/nvidia/deepstream/deepstream/lib/ && ldconfig && adduser --system mosquitto && mosquitto -v
// mosquitto -v 就是启动程序的命令,-v可以打印啰嗦日志。
2. test_mqtt_proto_async 测试
3. deepstream-test5测试
到/opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-test5/configs下,
将test5_config_file_src_infer.yml拷贝一份成test5_config_file_src_infer_mqtt.yml,主要是蛇者如下红色部分。
sink1:
enable: 1
#Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvdrmvideosink 6=MsgConvBroker
type: 6
msg-conv-config: dstest5_msgconv_sample_config.yml
#(0): PAYLOAD_DEEPSTREAM - Deepstream schema payload
#(1): PAYLOAD_DEEPSTREAM_MINIMAL - Deepstream schema payload minimal
#(256): PAYLOAD_RESERVED - Reserved type
#(257): PAYLOAD_CUSTOM - Custom schema payload
msg-conv-payload-type: 1
./deepstream-test5-app -c configs/test5_config_file_src_infer_mqtt.yml
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务