Commit ce5b4294 authored by wufan3's avatar wufan3
Browse files

Update README.md

parent 091253a9
# deempstream-app
## 环境配置
### 1. pull image
```
docker pull image.sourcefind.cn:5000/dcu/admin/base/custom:deepstream-gstreamer1.24.0-ubuntu22.04-dtk25.04
用DeepStream进行视频推理的应用示例。
\ No newline at end of file
```
### 2. clone code
```
git clone https://developer.sourcefind.cn/codes/modelzoo/deempstream-app.git/
```
### 3. prepare environment
```
docker run -d -t -v $PWD/deepstream:/home/deepstream -v /public/opendas/DL_DATA/:/dataset:ro -v /opt/hyhal:/opt/hyhal:ro -v /public:/public:ro --privileged --shm-size=64g --device=/dev/kfd --device=/dev/dri/ --network=host --group-add video --name deepstream-app image.sourcefind.cn:5000/dcu/admin/base/custom:deepstream-gstreamer1.24.0-ubuntu22.04-dtk25.04
docker exec -it deepstream-app /bin/bash
source /opt/deepstream/env.sh
bash /opt/deepstream/install.sh
```
## 运行
```
cd /home/deepstream
gst-launch-1.0 filesrc location=./streams/cr7_1920x1080.h264 ! h264parse ! hyh264dec ! queue name=q1 ! mux.sink_0 nvstreammux name=mux batch-size=1 ! nvinferserver config-file-path=./sugon_apps/sample_apps/deepstream_test1_NV/dstest1_pgie_nvinferserver_config.txt ! nvdsosd ! hycudah264enc bitrate=4000 ! h264parse ! matroskamux ! filesink location=./streams/newresult.mkv
```
## 运行结果
推理结果保存在`/home/deepstream/streams/newresult.mkv`
## 备注
1. deepstream仅限于BW环境中运行
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment