# deepstream-app 配置模板(单路 RTSP → nvinfer → 假 sink) # 用途:只验证“板子上 nvinfer 跑我们这个 ONNX 的输出对不对”(配合 --save 出检测框图对比)。 # 正式集成请看同目录 README.md 的三种桥接方式。 [application] enable-perf-measurement=1 perf-measurement-interval-sec=5 # 便于现场截图对比(不要在生产长期开启) # file-loop=0 [tiled-display] enable=0 rows=1 columns=1 width=1280 height=720 gpu-id=0 nvbuf-memory-type=0 [source0] enable=1 type=3 # 3 = RTSP uri=rtsp://admin:passwd@192.168.1.64:554/Streaming/Channels/101 num-sources=1 # 丢旧帧保新帧:低时延对吊装场景更重要 latency=100 # 断流重连(毫秒) rtsp-reconnect-interval=5 [streammux] gpu-id=0 batch-size=1 batched-push-timeout=33000 width=1920 height=1080 live-source=1 # 与 configs/*.json 的 source.width/height 保持一致,避免与 portcv 侧尺寸不同导致 letterbox 差异 nvbuf-memory-type=0 attach-sys-ts=1 [primary-gie] enable=1 gpu-id=0 batch-size=1 gie-unique-id=1 config-file=deploy/deepstream/config_infer_primary.txt [sink0] enable=1 # 1 = fakesink(不显示);调试时改 2 并在 [sink1] 用 nveglglessink type=1 sync=0 source-id=0 gpu-id=0 [osd] enable=0