- nvcr.io/nvidia/deepstream:6.0-devel
/opt/nvidia/deepstream/deepstream-6.0/sources/apps/sample_apps/deepstream-test4
- Ubuntu 20.04.3 LTS (amd64)
- GeForce GTX 1070 Ti
- Driver Version: 510.47.03
- CUDA Version: 11.6
- Docker version 20.10.12, build e91ed57
- docker-compose version 1.29.2, build 5becea4c
-
Download this project
$ git clone https://github.com/KeitetsuWorks/deepstream-test4-c-redis.git $ cd deepstream-test4-c-redis/
-
Start the docker containers
$ docker-compose up -d Creating network "deepstream-test4-c-redis_frontend" with the default driver Creating volume "deepstream-test4-c-redis_redisinsight" with default driver Creating redis ... done Creating nvds ... done Creating redisinsight ... done
-
Check if Redis is working (Optional)
$ docker exec -it redis /bin/bash root@redis:/data# redis-cli 127.0.0.1:6379> set testKey testValue OK 127.0.0.1:6379> keys * 1) "testKey" 127.0.0.1:6379> get testKey "testValue" 127.0.0.1:6379> exit root@redis:/data# exit
-
Run
deepstream-test4-app
$ xhost + $ docker exec -it nvds /bin/bash # cd sources/apps/sample_apps/deepstream-test4/ # deepstream-test4-app -i ../../../../samples/streams/sample_720p.h264 -p /opt/nvidia/deepstream/deepstream-6.0/lib/libnvds_redis_proto.so --conn-str="redis;6379" -t ds-meta -s 0
-
Check Redis database
-
CUI
$ docker exec -it redis /bin/bash root@redis:/data# redis-cli 127.0.0.1:6379> keys * 1) "ds-meta" 2) "testKey"
-
RedisInsight
Visit
http://localhost:8001
in your web browser.
-