config_deepstream.txt 1.3 KB

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